﻿@import url("../../_Shared/Styles/theme.tokens.css");

/* ================================================================
   Landing Template CSS (tla)
   Estética HubSpot — hero split, feature rows alternadas, testimonios.
   Requiere: theme.tokens.css
   ================================================================ */

/* ----------------------------------------------------------------
   0) Scope + tipografía de sección
   ---------------------------------------------------------------- */
.landing-template {
    color: var(--color-text);
}

.landing-template--flow {
    scroll-behavior: smooth;
}

.landing-template--flow .lt-flow-step {
    scroll-margin-top: 0;
}

.landing-template--flow .lt-mobile-form-slot {
    display: none;
}

.landing-template .lt-section-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
}

.landing-template .lt-section-title {
    margin: 0 0 1rem;
    color: var(--color-dark);
    font-size: clamp(1.7rem, 2.5vw, 2.6rem);
    line-height: 1.2;
    font-weight: 800;
}

.landing-template .lt-section-subtitle {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 680px;
}

/* ----------------------------------------------------------------
   1) Hero
   ---------------------------------------------------------------- */
.landing-template .lt-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border-subtle);
    min-height: 100svh;
}

/* Full / Reduced height modifiers */
.landing-template .lt-hero--full {
    min-height: 100svh;
}

.landing-template .lt-hero--reduced {
    min-height: auto;
}

.landing-template .lt-hero--with-image {
    background-image: var(--lt-hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: inherit;
    display: flex;
    align-items: center;
}

.landing-template .lt-hero--reduced.lt-hero--with-image {
    min-height: auto;
}

.landing-template .lt-hero--plain {
    background: linear-gradient(135deg, var(--color-dark) 0%, #005472 60%, var(--color-primary) 100%);
    min-height: clamp(360px, 55vh, 680px);
    display: flex;
    align-items: center;
}

.landing-template .lt-hero--plain-dark {
    background: linear-gradient(135deg, var(--color-dark) 0%, #005472 60%, var(--color-primary) 100%);
}

.landing-template .lt-hero--plain-light {
    background: linear-gradient(135deg, #f5fbff 0%, #e6f5fd 52%, #d7eef9 100%);
}

.landing-template .lt-hero--plain-light .lt-hero__text-col,
.landing-template .lt-hero--plain-light .lt-hero__title {
    color: var(--color-dark);
    text-shadow: none;
}

.landing-template .lt-hero--plain-light .lt-hero__synopsis {
    color: var(--color-text);
}

.landing-template .lt-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(104deg, rgba(0, 53, 71, 0.88) 0%, rgba(0, 53, 71, 0.5) 52%, rgba(0, 53, 71, 0.22) 100%);
}

.landing-template .lt-hero > .container {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: clamp(2.5rem, 6vw, 5.5rem);
    padding-bottom: clamp(2.5rem, 6vw, 5.5rem);
}

.landing-template .lt-hero--reduced > .container {
    min-height: auto;
}

/* Hero grid: columna texto + opcional columna formulario */
.landing-template .lt-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.landing-template .lt-hero__grid--with-form {
    grid-template-columns: 1fr 480px;
    gap: clamp(5.5rem, 7vw, 7.5rem);
}

/* Columna de texto */
.landing-template .lt-hero__text-col {
    color: var(--color-white);
}

.landing-template .lt-hero__title {
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 4rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.landing-template .lt-hero__synopsis {
    margin-top: 1.25rem;
    max-width: 620px;
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.94);
}

.landing-template .lt-hero__synopsis p {
    margin-bottom: 0;
}

.landing-template .lt-hero__actions {
    margin-top: 1.75rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Columna de formulario */
.landing-template .lt-hero__form-col {
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.landing-template .lt-hero__form-card {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--ss-radius-lg, 12px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.35s ease, transform 0.35s ease, box-shadow var(--ss-transition-fast);
    width: 100%;
}

.landing-template .lt-hero__form-card.is-form-ready {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.landing-template .lt-hero__form-card.is-form-ready:hover {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.landing-template .lt-hero__form-card.is-form-ready:hover::before,
.landing-template .lt-hero__form-card.is-form-ready:focus-within::before {
    opacity: 0.7;
    transform: scale(1);
}

/* FORM: Overrides delegated to _Shared/Styles/dynamic-form.enhance.css */

/* Form container spacing */
.lt-hero__form-card .dynamic-form-block__container {
    margin: 0 !important;
    padding: 1rem 1.3rem !important;
}

/* ----------------------------------------------------------------
   2) Feature rows (ParagraphList)
   ---------------------------------------------------------------- */
.landing-template .lt-paragraph-list {
    padding: clamp(3.5rem, 8vw, 7rem) 0;
    background: var(--color-surface);
}

.landing-template .lt-paragraph-list__header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.landing-template .lt-feature-rows {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 5rem);
}

/* Feature row: dos columnas, alternadas via --reversed */
.landing-template .lt-paragraph {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
}

.landing-template .lt-paragraph--reversed .lt-paragraph__media-col {
    order: 2;
}

.landing-template .lt-paragraph--reversed .lt-paragraph__body {
    order: 1;
}

/* Columna multimedia */
.landing-template .lt-paragraph__media-col {
    display: flex;
    justify-content: center;
}

.landing-template .lt-paragraph__image-frame {
    width: 100%;
    border-radius: var(--ss-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card-lg);
    background: var(--color-surface-media);
    aspect-ratio: 5 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-template .lt-paragraph__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Columna de contenido */
.landing-template .lt-paragraph__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.landing-template .lt-paragraph__body--full {
    grid-column: 1 / -1;
}

.landing-template .lt-paragraph__title {
    margin: 0;
    color: var(--color-dark);
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
    line-height: 1.3;
    font-weight: 700;
}

.landing-template .lt-paragraph__text {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.landing-template .lt-paragraph__text p:last-child {
    margin-bottom: 0;
}

.landing-template .lt-paragraph__actions {
    margin-top: 0.25rem;
}

/* ----------------------------------------------------------------
   3) Testimonials (QuoteList)
   ---------------------------------------------------------------- */
.landing-template .lt-quote-list {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
    background: linear-gradient(180deg, var(--color-surface-alt) 0%, #edf7fb 100%);
}

.landing-template .lt-quote-list__header {
    text-align: center;
    margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}

.landing-template .lt-quote-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.landing-template .lt-quote-list__grid > .lt-quote:only-child {
    width: min(100%, 760px);
    justify-self: center;
}

.landing-template .lt-quote {
    background: var(--color-white);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--ss-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform var(--ss-transition), box-shadow var(--ss-transition);
}

.landing-template .lt-quote:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.landing-template .lt-quote__mark {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-primary);
}

.landing-template .lt-quote__text {
    margin: 0;
    color: var(--color-text);
    line-height: 1.75;
    font-size: 0.98rem;
    flex: 1;
    font-style: italic;
}

.landing-template .lt-quote__text p {
    margin: 0;
}

.landing-template .lt-quote__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border-subtle);
}

.landing-template .lt-quote__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--color-surface-chip);
    flex-shrink: 0;
}

.landing-template .lt-quote__author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.landing-template .lt-quote__author {
    margin: 0;
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.landing-template .lt-quote__position {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ----------------------------------------------------------------
   4) Customers (CustomerList)
   ---------------------------------------------------------------- */
.landing-template .lt-customer-list {
    padding: clamp(2.25rem, 5vw, 3.5rem) 0;
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border-subtle);
}

.landing-template .lt-customer-list__top {
    display: block;
    margin-bottom: 1rem;
}

.landing-template .lt-customer-list__header {
    text-align: left;
    margin: 0;
}

.landing-template .lt-customer-list__header .lt-section-title {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.landing-template .lt-customer-list__nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.landing-template .lt-customer-list__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border-subtle);
    background: var(--color-white);
    color: var(--color-dark);
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-template .lt-customer-list__nav.is-scrollable .lt-customer-list__btn:not(.is-dimmed) {
    opacity: 0.95;
    border-color: var(--color-border-medium);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.landing-template .lt-customer-list__btn.is-dimmed {
    opacity: 0.14 !important;
    border-color: var(--color-border-subtle);
    box-shadow: none;
    pointer-events: none !important;
    cursor: default;
}

.landing-template .lt-customer-list__slider {
    width: 100%;
}

.landing-template .lt-customer-list__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    gap: 0.9rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
}

.landing-template .lt-customer-list__track::-webkit-scrollbar {
    display: none;
}

.landing-template .lt-customer {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--ss-radius-md);
    padding: 0.9rem;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.landing-template .lt-customer__logo-wrap {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-template .lt-customer__logo {
    max-width: 100%;
    max-height: 92px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.landing-template .lt-customer__name,
.landing-template .lt-customer__caption {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.3;
}

/* ----------------------------------------------------------------
   5) Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .landing-template .lt-hero__grid--with-form {
        grid-template-columns: 1fr 360px;
    }
}

@media (max-width: 1000px) {
    .landing-template .lt-hero--full,
    .landing-template .lt-hero--with-image,
    .landing-template .lt-hero > .container {
        min-height: auto;
    }

    .landing-template .lt-hero__grid--with-form {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .landing-template .lt-hero__form-col {
        display: none;
    }

    .landing-template--flow .lt-mobile-form-slot {
        display: block;
        margin: 0;
        padding: 0.5rem 1rem 1.25rem;
        background: transparent;
    }

    .landing-template--flow .lt-mobile-form-slot .lt-hero__form-col.is-detached {
        display: flex !important;
        width: min(100%, 520px);
        max-width: 520px;
        margin: 0 auto;
        padding: 0;
    }

    .landing-template--flow .lt-mobile-form-slot .lt-hero__form-card {
        width: 100%;
        max-width: none;
        border-radius: var(--ss-radius-lg, 12px);
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
        border: 1px solid var(--color-border-subtle);
        transform: none;
    }
}

@media (max-width: 767px) {
    .landing-template .lt-hero__grid--with-form,
    .landing-template .lt-hero__grid {
        grid-template-columns: 1fr;
    }

    .landing-template .lt-paragraph {
        grid-template-columns: 1fr;
    }

    .landing-template .lt-paragraph--reversed .lt-paragraph__media-col,
    .landing-template .lt-paragraph--reversed .lt-paragraph__body {
        order: unset;
    }

    .landing-template .lt-quote-list__grid {
        grid-template-columns: 1fr;
    }

    .landing-template .lt-customer-list__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-template .lt-customer-list__track {
        grid-auto-columns: minmax(140px, 66%);
    }
}
