/* ===== Variables ===== */
:root {
    --navy: #1b2a3a;
    --navy-2: #243649;
    --gold: #b08d57;
    --gold-light: #d4b98a;
    --cream: #f8f5f0;
    --white: #ffffff;
    --text: #3a4450;
    --muted: #6b7580;
    --border: #e6e0d6;
    --success: #2f7d55;
    --error: #b3413a;

    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius: 14px;
    --shadow: 0 10px 30px rgba(27, 42, 58, .08);
    --shadow-lg: 0 20px 50px rgba(27, 42, 58, .15);
    --header-h: 78px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 {
    font-family: var(--serif);
    color: var(--navy);
    line-height: 1.15;
    font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1rem; }
h3 { font-size: 1.55rem; margin-bottom: .75rem; }

p + p { margin-top: 1rem; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }

.section__head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section__head p { color: var(--muted); font-size: 1.08rem; }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold-light); }

.divider { width: 60px; height: 3px; background: var(--gold); margin-top: 1.5rem; border-radius: 2px; }

.lead { font-size: 1.2rem; color: var(--navy); font-weight: 500; }

.highlight {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--navy);
    border-left: 3px solid var(--gold);
    padding: .25rem 0 .25rem 1.25rem;
    margin: 1.75rem 0;
    line-height: 1.35;
}

/* ===== Botones ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .95rem 1.8rem;
    font-family: var(--sans);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--white);
    background: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50px;
    cursor: pointer;
    transition: background .25s, color .25s, transform .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { background: #9a7847; border-color: #9a7847; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(176, 141, 87, .35); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); box-shadow: none; }

.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }

.btn--small { padding: .6rem 1.3rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
    position: fixed;
    inset: 0 0 auto;
    height: var(--header-h);
    z-index: 100;
    transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(255,255,255,.97); box-shadow: 0 2px 20px rgba(0,0,0,.06); backdrop-filter: blur(8px); }

.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: .75rem; }
.logo__mark {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-light);
    border: 1.5px solid var(--gold-light);
    border-radius: 50%;
    transition: color .3s, border-color .3s;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { font-family: var(--serif); font-size: 1.25rem; color: var(--white); font-weight: 600; transition: color .3s; }
.logo__text small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.85); position: relative; transition: color .25s; }
.nav a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px; background: var(--gold); transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav a:not(.btn):hover { color: var(--white); }

.header.is-scrolled .logo__text strong { color: var(--navy); }
.header.is-scrolled .logo__mark { color: var(--gold); border-color: var(--gold); }
.header.is-scrolled .logo__text small { color: var(--gold); }
.header.is-scrolled .nav a:not(.btn) { color: var(--text); }
.header.is-scrolled .nav a:not(.btn):hover { color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 24px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.header.is-scrolled .nav-toggle span, .nav-open .nav-toggle span { background: var(--navy); }
.nav-open .nav-toggle span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 3rem) 0 5rem;
    background:
        radial-gradient(circle at 85% 20%, rgba(176,141,87,.18), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(176,141,87,.10), transparent 40%),
        linear-gradient(135deg, var(--navy) 0%, #14202d 100%);
    color: rgba(255,255,255,.82);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero__lead { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 300; max-width: 520px; }
.hero__lead em { font-style: normal; color: var(--gold-light); font-weight: 500; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.25rem 0 2.5rem; }

.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; font-size: .9rem; }
.hero__badges li { display: flex; align-items: center; gap: .5rem; }
.hero__badges li::before {
    content: ''; width: 18px; height: 18px; flex-shrink: 0;
    background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat;
    border-radius: 50%;
}

.hero__card {
    position: relative;
    padding: 12px;
    border: 1px solid rgba(212,185,138,.35);
    border-radius: 22px;
}
.hero__card-inner {
    background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    backdrop-filter: blur(6px);
}
.hero__icon { width: 70px; height: 70px; margin: 0 auto 1.75rem; color: var(--gold-light); }
.hero__card blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-style: italic; color: var(--white); line-height: 1.35; }
.hero__card-sign { display: block; margin-top: 1.5rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }

/* ===== Sobre mí ===== */
.about__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.about__title { position: sticky; top: calc(var(--header-h) + 2rem); }

/* ===== Valores ===== */
.values { background: var(--cream); }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.value {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold);
    transition: transform .3s, box-shadow .3s;
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value__num { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--gold-light); line-height: 1; margin-bottom: 1rem; }
.value p { color: var(--muted); }

/* ===== Áreas ===== */
.areas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.area {
    position: relative;
    padding: 2.25rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.area:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.area__icon {
    width: 58px; height: 58px;
    display: grid; place-items: center;
    background: var(--cream);
    border-radius: 14px;
    margin-bottom: 1.4rem;
    transition: background .3s;
}
.area__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.area:hover .area__icon { background: var(--navy); }
.area:hover .area__icon svg { stroke: var(--gold-light); }

.area ul li { position: relative; padding: .42rem 0 .42rem 1.4rem; font-size: .95rem; border-bottom: 1px dashed var(--border); }
.area ul li:last-child { border-bottom: 0; }
.area ul li::before { content: ''; position: absolute; left: 0; top: 1rem; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.area--cta {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    background: linear-gradient(145deg, var(--navy), var(--navy-2));
    border: 0;
    color: rgba(255,255,255,.8);
}
.area--cta h3 { color: var(--white); font-size: 1.8rem; }
.area--cta p { margin-bottom: 1.75rem; }

/* ===== Atención ===== */
.attention {
    background: linear-gradient(135deg, var(--navy) 0%, #14202d 100%);
    color: rgba(255,255,255,.8);
    position: relative;
    overflow: hidden;
}
.attention::after {
    content: ''; position: absolute; right: -150px; top: -150px;
    width: 450px; height: 450px; border-radius: 50%;
    border: 1px solid rgba(212,185,138,.15);
    box-shadow: 0 0 0 60px rgba(212,185,138,.03), 0 0 0 120px rgba(212,185,138,.02);
}
.attention h2 { color: var(--white); }
.attention__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.attention__text p { font-size: 1.05rem; }
.attention__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mode {
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    text-align: center;
    transition: background .3s, transform .3s;
}
.mode:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.mode__icon { width: 60px; height: 60px; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold); }
.mode__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode h3 { color: var(--white); margin-bottom: .35rem; }
.mode p { font-size: .92rem; }

/* ===== Contacto ===== */
.contact { background: var(--cream); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact__info > p:not(.highlight) { font-size: 1.05rem; }

.card-id {
    display: flex; flex-direction: column;
    padding: 1.5rem 1.75rem;
    background: var(--white);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
    box-shadow: var(--shadow);
    margin-bottom: 1.75rem;
    font-size: .95rem;
    color: var(--muted);
}
.card-id strong { font-family: var(--serif); font-size: 1.45rem; color: var(--navy); font-weight: 600; }

.contact__list { display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; }
.contact__list small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact__list a { font-weight: 600; color: var(--navy); transition: color .25s; word-break: break-all; }
.contact__list a:hover { color: var(--gold); }
.contact__icon { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; background: var(--navy); border-radius: 50%; }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Formulario ===== */
.form {
    background: var(--white);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}
.form h3 { font-size: 2rem; margin-bottom: .25rem; }
.form__sub { color: var(--muted); margin-bottom: 1.75rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__group { margin-bottom: 1.15rem; }
.form__group label { display: block; font-size: .85rem; font-weight: 500; color: var(--navy); margin-bottom: .4rem; }
.form input, .form select, .form textarea {
    width: 100%;
    padding: .85rem 1rem;
    font-family: inherit;
    font-size: .95rem;
    color: var(--text);
    background: #fcfbf9;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.form select {
    appearance: none;
    background: #fcfbf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08d57' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center/16px no-repeat;
    padding-right: 2.5rem;
    cursor: pointer;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none; border-color: var(--gold); background: var(--white);
    box-shadow: 0 0 0 4px rgba(176,141,87,.15);
}
.form__group.has-error input, .form__group.has-error textarea { border-color: var(--error); }
.form__error { display: block; font-size: .8rem; color: var(--error); min-height: 0; margin-top: .3rem; }
.form__error:empty { display: none; }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__msg { display: none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px; font-size: .92rem; }
.form__msg.is-success { display: block; background: #e8f4ed; color: var(--success); }
.form__msg.is-error { display: block; background: #f8e9e8; color: var(--error); }
.form__note { margin-top: 1rem; font-size: .8rem; color: var(--muted); text-align: center; }

.btn__loader { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .btn__loader { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Footer ===== */
.footer { background: #111b26; color: rgba(255,255,255,.6); padding: 2.75rem 0 1.5rem; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__inner strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--white); font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.footer__links a { transition: color .25s; }
.footer__links a:hover { color: var(--gold-light); }
.footer__copy { padding-top: 1.5rem; font-size: .8rem; text-align: center; }

/* ===== WhatsApp flotante ===== */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 58px; height: 58px;
    display: grid; place-items: center;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37,211,102,.4);
    transition: transform .25s;
    animation: pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== Animaciones reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .wa-float { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .areas__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__inner, .attention__inner, .contact__grid { gap: 3rem; }
}

@media (max-width: 900px) {
    .nav {
        position: fixed;
        top: 0; right: 0;
        width: min(320px, 85%); height: 100vh;
        flex-direction: column; align-items: flex-start; justify-content: center;
        gap: 1.75rem;
        padding: 2.5rem;
        background: var(--white);
        box-shadow: -10px 0 40px rgba(0,0,0,.15);
        transform: translateX(100%);
        transition: transform .35s ease;
    }
    .nav a:not(.btn) { color: var(--navy) !important; font-size: 1.1rem; }
    .nav-open .nav { transform: none; }
    .nav-toggle { display: block; z-index: 101; }

    .hero__inner, .about__grid, .attention__inner, .contact__grid { grid-template-columns: 1fr; }
    .about__title { position: static; }
    .values__grid { grid-template-columns: 1fr; }
    .hero__card { max-width: 480px; }
}

@media (max-width: 600px) {
    .areas__grid, .attention__cards, .form__row { grid-template-columns: 1fr; }
    .form__row { gap: 0; }
    .hero__actions .btn { flex: 1 1 100%; }
    .logo__text strong { font-size: 1.1rem; }
    .highlight { font-size: 1.35rem; }
    .footer__inner { flex-direction: column; }
}
