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

:root {
    --cream:    #F2EFE9;
    --cream-dk: #E8E3DB;
    --gold:     #B8963E;
    --gold-lt:  #D4AF60;
    --ink:      #181614;
    --ink-mid:  #3D3730;
    --muted:    #8A7F74;
    --white:    #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
}

/* ─────────────────────────────
   HEADER / NAV
───────────────────────────── */
.site-header {
    background: var(--cream);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: relative;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem 2rem;
    flex-wrap: wrap;
    position: relative;
}

.header-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 2px;
    transition: color 0.2s;
    opacity: 0.6;
}
.header-nav a:hover { opacity: 1; color: var(--gold); }

.nav-logo {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 1; }
.nav-logo img { height: 36px; width: auto; display: block; }

.nav-actions {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-actions a {
    color: var(--ink);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.nav-actions a:hover { opacity: 1; }

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    border-top: 1px solid rgba(0,0,0,0.07);
    padding: 1rem 0;
    gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    opacity: 0.7;
    transition: opacity 0.2s, padding-left 0.2s;
}
.mobile-nav a:hover { opacity: 1; padding-left: 2.5rem; }

@media (max-width: 640px) {
    .header-nav .nav-link { display: none; }
    .burger { display: flex; }
}

/* ─────────────────────────────
   HERO — split layout
───────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 90px);
    min-height: calc(100svh - 90px);
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2.5rem 4rem 2rem;
}

.hero-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 2rem;
}

.hero-title em {
    font-style: italic;
    color: var(--gold);
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    background: transparent;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: background 0.22s, color 0.22s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}
.btn-pill:hover { background: var(--gold); color: var(--white); }

.btn-pill-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    background: transparent;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: background 0.22s, color 0.22s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    opacity: 0.55;
}
.btn-pill-dark:hover { background: var(--ink); color: var(--white); opacity: 1; }

.hero-photo {
    position: relative;
    overflow: hidden;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 700px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-photo {
        height: 55vw;
        min-height: 240px;
        order: -1;
    }
    .hero-text {
        padding: 2.5rem 1.5rem;
        align-items: center;
        text-align: center;
    }
    .hero-title {
        font-size: clamp(2.5rem, 11vw, 4rem);
    }
    .hero-cta-row {
        width: 100%;
        flex-wrap: nowrap;
    }
    .btn-pill,
    .btn-pill-dark {
        flex: 1;
        justify-content: center;
        padding: 0.85rem 0.5rem;
        white-space: normal;
        text-align: center;
    }
}

/* ─────────────────────────────
   DIVIDER
───────────────────────────── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.12), transparent);
    margin: 0;
}

/* ─────────────────────────────
   FACTURACIÓN
───────────────────────────── */
#facturacion {
    background: var(--cream-dk);
    padding: 5rem 2rem;
}

.factura-layout {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 3rem;
    align-items: start;
}

.factura-copy .eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.factura-copy h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.factura-copy p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.75;
}

.factura-form { display: flex; flex-direction: column; gap: 0.85rem; }

.factura-form input[type="text"] {
    width: 100%;
    background: var(--cream);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}
.factura-form input[type="text"]::placeholder { color: var(--muted); }
.factura-form input[type="text"]:focus {
    border-color: var(--gold);
    background: var(--white);
}

.factura-form input[type="submit"] {
    width: 100%;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 100px;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.factura-form input[type="submit"]:hover { background: var(--gold-lt); }

.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}
.toggle-row input[type="checkbox"] { accent-color: var(--gold); width: 15px; height: 15px; cursor: pointer; }
.toggle-row label {
    font-size: 0.78rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1.4;
}

.aviso-extranjero {
    display: none;
    font-size: 0.78rem;
    color: var(--gold-lt);
    background: rgba(184,150,62,0.12);
    border: 1px solid rgba(184,150,62,0.25);
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    line-height: 1.5;
}

.sin-folio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 1.25rem;
}

.sin-folio h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
}

.sin-folio p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
}

.btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1rem 1.5rem;
    background: #22C55E;
    color: var(--white);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: opacity 0.2s;
}
.btn-wa:hover { opacity: 0.88; }

.factura-divider {
    width: 1px;
    background: rgba(0,0,0,0.08);
    align-self: stretch;
}

@media (max-width: 640px) {
    .factura-layout { grid-template-columns: 1fr; gap: 2rem; }
    .factura-divider { display: none; }
}

/* ─────────────────────────────
   SERVICIOS
───────────────────────────── */
#servicios {
    background: var(--cream);
    padding: 5rem 2rem;
}

.section-head {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-head .eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.section-head h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
}

.services-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

.svc {
    background: var(--cream);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: background 0.2s;
}
.svc:hover { background: var(--cream-dk); }

.svc-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(0,0,0,0.07);
    line-height: 1;
}

.svc h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.svc p {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.65;
}

@media (min-width: 700px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
    .svc { padding: 1.75rem 1.25rem; }
}

/* ─────────────────────────────
   NOSOTROS
───────────────────────────── */
#nosotros {
    background: var(--cream);
    padding: 4rem 2rem;
}

.stats-grid {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(0,0,0,0.09);
    border: 1px solid rgba(0,0,0,0.09);
}

.stat-cell {
    background: var(--cream);
    padding: 2rem 1.5rem;
    text-align: center;
}

.stat-cell-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--ink);
    line-height: 1;
}

.stat-cell-num span { color: var(--gold); }

.stat-cell-label {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 0.4rem;
}

/* ─────────────────────────────
   CONTACTO
───────────────────────────── */
#contacto {
    background: var(--cream-dk);
    padding: 5rem 2rem;
}

.contact-layout {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-left h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--ink);
}

.contact-left p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-highlight a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    transition: color 0.2s;
}
.contact-highlight a:hover { color: var(--gold); }
.contact-highlight a i { color: var(--gold); width: 16px; text-align: center; font-size: 0.85rem; }

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 100px;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-pill:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 12px rgba(184,150,62,0.12);
}

.pill-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}
.pill-icon.green { color: #22C55E; }

.pill-text span {
    display: block;
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pill-text strong { font-size: 0.88rem; }

.map-wrap {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.07);
    margin-top: 0.5rem;
}
.map-wrap iframe { width: 100%; height: 180px; border: none; display: block; }

@media (max-width: 640px) {
    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ─────────────────────────────
   FOOTER
───────────────────────────── */
footer {
    background: var(--ink);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

footer p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

footer a { color: var(--gold-lt); text-decoration: none; }

.footer-skyporte {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.footer-skyporte:hover { opacity: 1; }
.footer-skyporte img { height: 40px; width: auto; display: block; }
