/* ===================================================================
   Sara Carvajal · Abogada de Familia
   Paleta inspirada en la tarjeta de presentación (dorado / tierra)
   =================================================================== */

:root {
    --brown-deep: #5b4636;
    --brown: #6f5744;
    --mocha: #a98a6d;
    --mocha-light: #bda087;
    --gold: #c6a86b;
    --gold-soft: #d8bd8c;
    --gold-bright: #e6cf9f;
    --cream: #f6efe6;
    --cream-2: #efe6d8;
    --ink: #3a2e24;
    --text: #4a3d31;
    --muted: #8a7a68;
    --white: #ffffff;

    --shadow-sm: 0 4px 14px rgba(74, 55, 40, 0.08);
    --shadow-md: 0 12px 34px rgba(74, 55, 40, 0.14);
    --shadow-lg: 0 24px 60px rgba(74, 55, 40, 0.22);

    --radius: 16px;
    --radius-sm: 10px;

    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Montserrat', -apple-system, "Segoe UI", sans-serif;

    --maxw: 1180px;
    --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.15; }

a { color: inherit; text-decoration: none; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: .92rem;
    letter-spacing: .3px;
    padding: 14px 30px;
    border-radius: 50px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .3s ease;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--brown) 130%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(139, 105, 60, .32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(139, 105, 60, .42); }
.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-lg { padding: 17px 40px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all .35s ease;
    background: transparent;
}
.site-header.scrolled {
    background: rgba(246, 239, 230, .92);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(139,105,60,.12);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-soft), var(--brown));
    box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.brand-text small { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

.site-header:not(.scrolled) .brand-text strong { color: #fff; }
.site-header:not(.scrolled) .brand-text small { color: rgba(255,255,255,.82); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
    font-size: .9rem;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 40px;
    color: var(--white);
    transition: all .25s ease;
    letter-spacing: .3px;
}
.site-header.scrolled .nav-link { color: var(--text); }
.nav-link:hover { color: var(--gold-bright); }
.site-header.scrolled .nav-link:hover { color: var(--brown); background: rgba(198,168,107,.14); }
.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--brown));
    color: #fff !important;
    padding: 10px 24px;
    box-shadow: 0 8px 18px rgba(139,105,60,.3);
}
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s ease; }
.site-header.scrolled .nav-toggle span { background: var(--brown); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 60px;
    background:
        radial-gradient(circle at 78% 30%, rgba(230,207,159,.35), transparent 45%),
        linear-gradient(135deg, #8a6d52 0%, #a98a6d 42%, #7c6047 100%);
    overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 12% 88%, rgba(255,255,255,.10), transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.08), transparent 35%);
    pointer-events: none;
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(230,207,159,.5), rgba(139,105,60,.15));
    filter: blur(6px);
}
.hero::before { width: 520px; height: 520px; top: -220px; left: -160px; opacity: .5; }
.hero::after  { width: 480px; height: 480px; bottom: -240px; right: -140px; opacity: .45; }

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}
.eyebrow {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-bright);
    font-weight: 500;
    margin-bottom: 20px;
}
.hero-text h1 {
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    color: #fff;
    font-weight: 600;
    margin-bottom: 22px;
    text-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.hero-text h1 span {
    font-style: italic;
    color: var(--gold-bright);
    font-weight: 500;
}
.hero-lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,.92);
    max-width: 540px;
    margin-bottom: 34px;
    font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.logo-medallion {
    width: 300px; height: 300px;
    border-radius: 50%;
    display: grid; place-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 40%, #b6997c 0%, #9a7c5f 60%, #7c6047 100%);
    border: 3px solid rgba(230,207,159,.6);
    box-shadow: 0 22px 50px rgba(50,32,18,.45), inset 0 0 0 10px rgba(255,255,255,.06);
    position: relative;
}
.logo-medallion::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    box-shadow: inset 0 -30px 50px rgba(50,32,18,.35);
    pointer-events: none;
}
.logo-medallion img {
    width: 84%;
    transform: translateY(4%);
    mix-blend-mode: multiply;
    filter: contrast(1.08) brightness(1.05);
}
.logo-name { text-align: center; }
.logo-name-main {
    display: block;
    font-family: var(--serif);
    font-size: 2.1rem;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold-bright);
    text-shadow: 0 2px 14px rgba(0,0,0,.25);
    line-height: 1.1;
}
.logo-name-sub {
    display: block;
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
    margin-top: 6px;
}

.scroll-down {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 44px;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 20px;
    z-index: 3;
}
.scroll-down span {
    position: absolute; top: 8px; left: 50%;
    width: 4px; height: 8px; margin-left: -2px;
    background: #fff; border-radius: 4px;
    animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(14px)} 100%{opacity:0} }

/* ---------- Trust strip ---------- */
.trust-strip {
    background: var(--brown-deep);
    color: var(--cream);
    padding: 26px 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { display: flex; flex-direction: column; text-align: center; gap: 2px; position: relative; }
.trust-item:not(:last-child)::after {
    content: ""; position: absolute; right: -10px; top: 10%; height: 80%;
    width: 1px; background: rgba(255,255,255,.15);
}
.trust-item strong { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-bright); }
.trust-item span { font-size: .82rem; color: rgba(246,239,230,.75); }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-eyebrow {
    font-size: .78rem; text-transform: uppercase; letter-spacing: 3px;
    color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 620px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .section-sub { margin: 0 auto; }

/* ---------- Sobre mí ---------- */
.about { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.about-media { display: grid; place-items: center; }
.about-photo {
    position: relative;
    width: 320px; height: 400px;
    border-radius: 210px 210px 22px 22px;
    padding: 8px;
    background: linear-gradient(160deg, var(--gold-soft), var(--brown) 90%);
    box-shadow: var(--shadow-lg);
}
.about-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    border-radius: 202px 202px 16px 16px;
    display: block;
}
.about-photo::before {
    content: ""; position: absolute; inset: 16px;
    border: 1.5px solid rgba(255,255,255,.45);
    border-radius: 196px 196px 10px 10px;
    pointer-events: none; z-index: 2;
}
.about-photo-tag {
    position: absolute;
    bottom: 22px; left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(6px);
    padding: 10px 22px;
    border-radius: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    z-index: 3;
    white-space: nowrap;
}
.about-photo-tag strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.about-photo-tag small { font-size: .66rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); }

.about-text p { margin-bottom: 16px; }
.about-values { list-style: none; margin: 24px 0 30px; display: grid; gap: 12px; }
.about-values li { position: relative; padding-left: 30px; font-size: .98rem; }
.about-values li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--brown));
    color: #fff; font-size: .7rem; display: grid; place-items: center;
}

/* ---------- Servicios ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 34px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(139,105,60,.08);
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--gold-soft), var(--brown));
    transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 60px; height: 60px; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.7rem;
    background: linear-gradient(135deg, var(--cream-2), #e4d3b6);
    margin-bottom: 20px;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-card p { font-size: .95rem; color: var(--muted); }

/* ---------- Proceso ---------- */
.process { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
    background: #fff;
    border-radius: var(--radius);
    padding: 34px 26px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(139,105,60,.08);
}
.step-num {
    font-family: var(--serif); font-size: 2.6rem; font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--gold);
    display: block; margin-bottom: 8px; line-height: 1;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
    padding: 80px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(230,207,159,.3), transparent 50%),
        linear-gradient(135deg, var(--brown-deep), var(--brown) 70%, var(--mocha));
    color: #fff;
    text-align: center;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,.88); font-size: 1.1rem; margin-bottom: 28px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.contact-list a, .contact-list li > span {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(139,105,60,.08);
    transition: all .3s ease;
}
.contact-list a:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.ci-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.3rem;
    background: linear-gradient(135deg, var(--cream-2), #e4d3b6);
}
.contact-list strong { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: .95rem; }

.contact-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(139,105,60,.08);
}
.form-row { margin-bottom: 18px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
    display: flex; flex-direction: column; gap: 7px;
    font-size: .85rem; font-weight: 500; color: var(--ink); letter-spacing: .3px;
}
.contact-form input, .contact-form select, .contact-form textarea {
    font-family: var(--sans); font-size: .95rem; font-weight: 300;
    padding: 13px 16px;
    border: 1.5px solid rgba(139,105,60,.2);
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--text);
    transition: all .25s ease;
    width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--gold);
    background: #fff; box-shadow: 0 0 0 4px rgba(198,168,107,.15);
}
.contact-form textarea { resize: vertical; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-deep); color: var(--cream); padding: 54px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 1fr auto auto; gap: 40px;
    align-items: center; padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.footer-brand small { color: rgba(246,239,230,.7); font-size: .8rem; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a, .footer-social a { font-size: .9rem; color: rgba(246,239,230,.82); transition: color .25s ease; }
.footer-nav a:hover, .footer-social a:hover { color: var(--gold-bright); }
.footer-social { display: flex; gap: 20px; }
.footer-bottom { text-align: center; padding: 22px 0; }
.footer-bottom p { font-size: .82rem; color: rgba(246,239,230,.6); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed; bottom: 26px; right: 26px; z-index: 900;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 10px 26px rgba(37,211,102,.5);
    transition: transform .3s ease;
    animation: waPulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
    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); }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-text { order: 2; }
    .hero-logo { order: 1; }
    .logo-medallion { width: 220px; height: 220px; }
    .logo-name-main { font-size: 1.7rem; letter-spacing: 4px; }
    .hero-actions { justify-content: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-media { order: 2; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
    .trust-item:nth-child(2)::after { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; justify-items: center; }
}

@media (max-width: 720px) {
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch;
        background: rgba(246,239,230,.98);
        backdrop-filter: blur(12px);
        padding: 20px 24px 28px; gap: 4px;
        box-shadow: var(--shadow-md);
        transform: translateY(-140%);
        transition: transform .38s cubic-bezier(.4,0,.2,1);
    }
    .nav.open { transform: translateY(0); }
    .nav-link { color: var(--text); padding: 14px 16px; border-radius: 10px; }
    .nav-cta { text-align: center; margin-top: 6px; }
    .nav-toggle { display: flex; }
    .site-header:not(.scrolled) .nav-toggle span { background: #fff; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
    .section { padding: 68px 0; }
    .form-two { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item::after { display: none !important; }
    .contact-form { padding: 28px 22px; }
    .about-photo { width: 260px; height: 330px; }
    .brand-text small { display: none; }
}
