/* ============================================================
   Carlos Valdivia — Consultor de Vida Plena y Bienestar Financiero
   Paleta: azul marino, dorado, crema, neutros claros
   ============================================================ */

:root {
    --navy:        #1e3a5f;
    --navy-dark:   #152a44;
    --navy-deep:   #0f2036;
    --gold:        #b8923f;
    --gold-light:  #d4b568;
    --cream:       #f6f1e6;
    --cream-soft:  #fbf8f1;
    --white:       #ffffff;
    --gray-text:   #5c6470;
    --gray-line:   #e4ddcd;
    --font-serif:  "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans:   "Inter", "Segoe UI", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--gray-text);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

/* ============================================================
   HEADER / HERO
   ============================================================ */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: clamp(480px, 62vh, 640px);
    background: linear-gradient(100deg, var(--cream) 0%, var(--cream-soft) 55%, #efe7d5 100%);
    overflow: hidden;
}

/* ---- Columna de texto ---- */
.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 5rem);
}

.hero__eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.hero__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(2.4rem, 4.6vw, 4.1rem);
    line-height: 1.08;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--navy);
}

.hero__subtitle {
    margin-top: 0.85rem;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    color: #3d4756;
}

.hero__tagline {
    position: relative;
    margin-top: 1.8rem;
    padding-top: 1.4rem;
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2vw, 1.7rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
}

.hero__tagline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

.hero__tagline span {
    color: var(--gold);
}

/* ---- Pilares (iconos) ---- */
.hero__pillars {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 3.5vw, 3.2rem);
    margin-top: clamp(2rem, 4vh, 3.2rem);
}

.pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
}

.pillar__icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    color: var(--navy);
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f4ecdb 70%, #eadfc6 100%);
    border: 2px solid var(--gold-light);
    box-shadow: 0 6px 14px rgba(30, 58, 95, 0.14);
}

.pillar__icon svg {
    width: 44px;
    height: 44px;
}

.pillar__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--navy);
}

/* ---- Columna de imagen ---- */
.hero__media {
    position: relative;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;   /* mantiene al consultor visible al recortar */
}

/* Difumina el borde izquierdo de la foto para fundirla con el panel crema */
.hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, var(--cream-soft) 0%, rgba(251, 248, 241, 0) 24%);
    pointer-events: none;
}

/* ============================================================
   SECCIÓN DE PRODUCTOS
   ============================================================ */

.products {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background-color: var(--cream-soft);
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    text-align: center;
    color: var(--navy);
}

.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 1rem auto 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

.section-lead {
    margin-top: 1.1rem;
    text-align: center;
    font-size: 1rem;
    color: var(--gray-text);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.2rem, 2.5vw, 2rem);
    margin-top: clamp(2.5rem, 5vw, 3.8rem);
}

/* Tarjeta vacía: contenedor listo para rellenar */
.card {
    min-height: 280px;
    padding: 1.8rem;
    background-color: var(--white);
    border: 1px solid var(--gray-line);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-light);
    box-shadow: 0 12px 28px rgba(30, 58, 95, 0.12);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #cfd8e4;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.footer__name {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
}

.footer__role {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--gold-light);
    line-height: 1.5;
}

.footer__heading {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(212, 181, 104, 0.35);
}

.footer__list li {
    margin-bottom: 0.6rem;
    font-size: 0.93rem;
}

.footer__nav a,
.footer__list a {
    transition: color 0.2s ease;
}

.footer__nav a:hover,
.footer__list a:hover {
    color: var(--gold-light);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.3rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: #93a1b5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablets */
@media (max-width: 1024px) {
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets pequeñas / móviles grandes */
@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero__content {
        align-items: center;
        text-align: center;
        padding: 3rem 1.5rem 2.5rem;
    }

    .hero__tagline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero__pillars {
        justify-content: center;
    }

    .hero__media {
        height: clamp(260px, 45vw, 380px);
    }

    .hero__media::before {
        background: linear-gradient(180deg, var(--cream-soft) 0%, rgba(251, 248, 241, 0) 30%);
    }
}

/* Móviles */
@media (max-width: 600px) {
    .products__grid {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 220px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__heading {
        border-bottom: none;
    }

    .hero__pillars {
        gap: 1.4rem;
    }

    .pillar__icon {
        width: 64px;
        height: 64px;
    }

    .pillar__icon svg {
        width: 36px;
        height: 36px;
    }
}
