/* ===== Tokens ===== */
:root {
    --ink: #16302A;
    --ink-soft: #1D3D34;
    --parchment: #F1EBDD;
    --cream: #FBF8F2;
    --brass: #A9772F;
    --brass-light: #C79B52;
    --charcoal: #2B2620;
    --seal-red: #7A2A2A;
    --line: rgba(43, 38, 32, 0.14);
    --line-light: rgba(251, 248, 242, 0.22);

    --font-display: 'Fraunces', serif;
    --font-body: 'Work Sans', sans-serif;

    --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--parchment);
    color: var(--charcoal);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0 0 0.5em;
    line-height: 1.15;
    font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 32ch; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.kicker {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--brass);
    margin: 0 0 0.6em;
}
.kicker-light { color: var(--brass-light); }

.section { padding: 84px 0; }
.section-ink { background: var(--ink); color: var(--cream); }
.section-ink p { color: rgba(251, 248, 242, 0.82); }
.section-title-light { color: var(--cream); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}
.btn-primary:hover { background: var(--ink-soft); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--charcoal);
}
.btn-ghost:hover { background: rgba(43, 38, 32, 0.06); }

.section-ink .btn-ghost {
    color: var(--cream);
    border-color: var(--line-light);
}
.section-ink .btn-ghost:hover { background: rgba(251, 248, 242, 0.08); }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--parchment);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}
.brand:hover { text-decoration: none; }

.seal { color: var(--brass); display: inline-flex; }

.brand-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.1;
}
.brand-text em {
    display: block;
    font-style: normal;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass);
    margin-top: 2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.site-nav a {
    color: var(--charcoal);
    font-size: 0.95rem;
}
.site-nav a:hover { color: var(--brass); text-decoration: none; }

.nav-cta {
    padding: 8px 18px;
    border: 1px solid var(--ink);
    color: var(--ink) !important;
}
.nav-cta:hover { background: var(--ink); color: var(--cream) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
}

/* ===== Hero ===== */
.hero { padding: 72px 0 96px; }

.hero-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-lead {
    max-width: 42ch;
    font-size: 1.05rem;
    color: #4a443c;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hero-art { color: var(--brass); opacity: 0.9; }

.hero-copy { animation: hero-in 0.7s ease-out both; }
.hero-art { animation: hero-in 0.9s 0.15s ease-out both; }

@keyframes hero-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-copy, .hero-art { animation: none; }
}

/* ===== Nosotros ===== */
.about-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    margin: 0;
}
.about-stats div {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 16px;
}
.about-stats dt {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--ink);
}
.about-stats dd {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #5a5348;
}

/* ===== Ledger (servicios) ===== */
.ledger { border-top: 1px solid var(--line-light); margin-top: 28px; }
.ledger-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line-light);
}
.ledger-row h3 { color: var(--cream); margin: 0; }
.ledger-row p { margin: 0; max-width: 58ch; }

/* ===== Equipo ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 32px;
}
.team-photo {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--brass);
    padding: 4px;
    margin-bottom: 16px;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.team-card h3 { margin-bottom: 2px; }
.team-role { font-size: 0.88rem; color: var(--brass); margin: 0; }

/* ===== Testimonios ===== */
.testimonial-wrap { text-align: center; max-width: 720px; }
.seal-big { margin-bottom: 20px; }

.testimonial-slider { position: relative; min-height: 160px; }
.testimonial {
    display: none;
    margin: 0;
}
.testimonial.is-active { display: block; }
.testimonial p {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    color: var(--cream);
    line-height: 1.45;
}
.testimonial footer {
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--brass-light);
}
.testimonial footer span { color: rgba(251, 248, 242, 0.7); }

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}
.testimonial-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--brass-light);
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.testimonial-dots button.is-active { background: var(--brass-light); }

/* ===== Contacto ===== */
.contact-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
}

.contact-lead { color: #4a443c; max-width: 50ch; }

.contact-form { display: grid; gap: 16px; max-width: 480px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; color: #5a5348; }

.field input, .field select, .field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 11px 12px;
    border: 1px solid var(--line);
    background: var(--cream);
    color: var(--charcoal);
    border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--brass);
}
.field.has-error input, .field.has-error textarea { border-color: var(--seal-red); }
.field-error {
    font-size: 0.8rem;
    color: var(--seal-red);
    min-height: 1em;
}

.contact-form .btn { justify-self: start; margin-top: 6px; }

.alert {
    padding: 14px 16px;
    border-radius: 2px;
    font-size: 0.92rem;
    margin-bottom: 18px;
}
.alert-success { background: rgba(169, 119, 47, 0.12); border: 1px solid var(--brass); }
.alert-error { background: rgba(122, 42, 42, 0.08); border: 1px solid var(--seal-red); color: var(--seal-red); }
.alert-error ul { margin: 0; padding-left: 18px; }
.alert-note { display: block; margin-top: 6px; font-size: 0.8rem; color: #6a6357; }

.contact-info-col {
    border-left: 1px solid var(--line);
    padding-left: 40px;
}
.contact-info-col h3 { margin-top: 12px; }
.contact-hours { color: #5a5348; font-size: 0.9rem; }

/* ===== Footer ===== */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding: 40px 0;
}
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand p { margin: 0; font-family: var(--font-display); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: rgba(251, 248, 242, 0.8); font-size: 0.9rem; }
.footer-note { margin: 0; font-size: 0.8rem; color: rgba(251, 248, 242, 0.55); width: 100%; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-row, .about-row, .contact-row { grid-template-columns: 1fr; }
    .hero-art { order: -1; max-width: 220px; margin: 0 auto; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .ledger-row { grid-template-columns: 1fr; gap: 6px; }
    .contact-info-col { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
}

@media (max-width: 720px) {
    .site-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--parchment);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px 24px;
        gap: 16px;
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .nav-toggle { display: flex; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
}
