/* ===== BASE ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

:root {
    --ink: #30464D;
    --muted: #5E6E73;
    --cream: #EEF5F7;
    --paper: #F9FBFC;
    --sage: #DCEBF0;
    --sage-dark: #6F96A3;
    --accent: #4F7A88;   /* versión más oscura para texto/botón: mejor contraste */
    --line: #D5E2E6;
    --wrap: min(1160px, calc(100% - 48px));
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", sans-serif;
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-weight: 500;
    line-height: 1.15;
    text-wrap: balance;
}

.ico {
    width: 20px; height: 20px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.5;
    stroke-linecap: round; stroke-linejoin: round;
}
.ico.big { width: 34px; height: 34px; stroke-width: 1.2; color: var(--accent); }

/* ===== CABECERA ===== */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 10;
    height: 76px;
    padding: 0 max(24px, calc((100% - 1160px) / 2));
    display: flex; align-items: center; gap: 24px;
    background: rgba(249, 251, 252, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}
.brand { font-family: "Playfair Display", serif; font-size: 20px; font-weight: 600; white-space: nowrap; }
.nav-menu { display: flex; gap: 28px; margin-left: auto; }
.nav .social + .social { margin-left: -8px; }
.nav-menu a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav-menu a:hover { color: var(--ink); }
.social { display: grid; place-items: center; color: var(--muted); transition: color .2s; }
.social:hover { color: var(--accent); }
.nav-contact {
    padding: 9px 18px; border: 1px solid var(--ink); border-radius: 999px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    transition: background .2s, color .2s;
}
.nav-contact:hover { background: var(--ink); color: var(--paper); }

/* ===== HERO ===== */
.hero {
    width: var(--wrap); margin: 0 auto;
    min-height: 100vh; min-height: 100svh;
    padding: 140px 0 90px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center;
}
.kicker { margin: 0 0 22px; color: var(--accent); font-size: 14px; font-weight: 500; }
h1 { font-size: clamp(42px, 5.4vw, 72px); letter-spacing: -.02em; margin-bottom: 28px; max-width: 12em; }
.lead { max-width: 33em; margin: 0 0 36px; color: var(--muted); font-size: 18px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 13px 24px; border-radius: 999px;
    font-size: 15px; font-weight: 600;
    transition: background .2s, color .2s, border-color .2s;
}
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--ink); }
.secondary { border: 1px solid #A9BEC4; }
.secondary:hover { border-color: var(--ink); }

/* Foto: rectángulo suave con bloque de color desplazado detrás */
.hero-photo { margin: 0; justify-self: center; width: min(100%, 440px); }
.hero-photo img {
    position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 5;
    object-fit: cover; object-position: center 28%; border-radius: 6px; background: var(--sage);
    box-shadow: 24px 24px 0 var(--sage);
}
.hero-photo figcaption {
    position: relative; z-index: 1; margin-top: 44px;
    color: var(--muted); font-size: 12.5px;
}

/* ===== INTRO ===== */
.intro {
    background: var(--cream);
    padding: 100px max(24px, calc((100% - 1160px) / 2));
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
h2 { font-size: clamp(34px, 3.8vw, 52px); letter-spacing: -.015em; }
.intro p { margin: 0; max-width: 34em; color: var(--muted); font-size: 18px; }

/* ===== SERVICIOS: columnas separadas por líneas, sin tarjetas ===== */
.services {
    width: var(--wrap); margin: 0 auto; padding: 90px 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
}
.services article { padding: 8px 40px; border-left: 1px solid var(--line); }
.services article:first-child { padding-left: 0; border-left: 0; }
.services article:last-child { padding-right: 0; }
.services h3 { margin: 26px 0 12px; font-size: 26px; }
.services p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== ESPECIALIDADES: lista editorial ===== */
.specialties { background: var(--cream); padding: 100px max(24px, calc((100% - 1160px) / 2)); }
.specialties h2 { max-width: 14em; margin-bottom: 56px; }
.specialties dl { margin: 0; border-top: 1px solid var(--line); }
.specialties dl div {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px;
    padding: 28px 0; border-bottom: 1px solid var(--line);
}
.specialties dt { font-family: "Playfair Display", serif; font-size: 28px; line-height: 1.2; }
.specialties dd { margin: 0; max-width: 36em; color: var(--muted); font-size: 16px; }

/* ===== CONTACTO ===== */
.contact {
    width: var(--wrap); margin: 0 auto; padding: 100px 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.contact h2 { font-size: clamp(42px, 5vw, 64px); margin-bottom: 20px; }
.contact p { margin: 0; max-width: 28em; color: var(--muted); font-size: 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px;
}
.contact-list .ico { margin-top: 3px; color: var(--accent); }
.contact-list a { transition: color .2s; }
.contact-list a:hover { color: var(--accent); }

/* ===== PIE ===== */
footer {
    width: var(--wrap); margin: 0 auto; padding: 28px 0;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    color: var(--muted); font-size: 13px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a:hover { color: var(--accent); }

/* ===== PÁGINAS LEGALES ===== */
.legal { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 150px 0 90px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.legal .updated { margin: 0 0 40px; color: var(--muted); font-size: 14px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: 0; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal li strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ===== MÓVIL ===== */
@media (max-width: 900px) {
    .hero, .intro, .contact { grid-template-columns: 1fr; gap: 48px; }
    .hero { min-height: 0; padding: 110px 0 70px; }
    .hero-photo { order: -1; width: min(86%, 380px); justify-self: start; }
    .intro, .specialties { padding: 72px 24px; }
    .services { grid-template-columns: 1fr; padding: 64px 0; }
    .services article, .services article:first-child, .services article:last-child {
        padding: 28px 0; border-left: 0; border-top: 1px solid var(--line);
    }
    .services article:first-child { border-top: 0; padding-top: 0; }
    .specialties dl div { grid-template-columns: 1fr; gap: 8px; }
    .contact { padding: 72px 0; }
}
@media (max-width: 720px) {
    .nav { height: 66px; padding: 0 16px; gap: 16px; }
    .brand { font-size: 17px; margin-right: auto; }
    .nav-menu { display: none; }
    footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
