/* =========================================================================
   MAR EN CALMA — estilos
   Paleta marina tomada del logo. Edita las variables de :root para recolorear.
   ========================================================================= */

:root {
    --navy:   #0f3b7d;   /* azul marino profundo: textos fuertes */
    --navy-2: #1f5aa8;   /* azul medio */
    --blue:   #2472b8;   /* azul enlaces */
    --teal:   #2bbcd6;   /* turquesa: acento, botones */
    --teal-d: #1f9fb8;   /* turquesa hover */
    --aqua:   #8fdbe8;   /* aqua claro */
    --paper:  #ffffff;   /* fondo blanco */
    --paper-2:#f1f9fb;   /* fondo alterno (aqua muy claro) */
    --ink:    #14314f;   /* texto principal */
    --muted:  #5f7488;   /* texto secundario */
    --line:   #dce8ee;   /* líneas / bordes */
    --white:  #ffffff;

    --display: 'Fraunces', Georgia, serif;
    --body: 'Inter', system-ui, -apple-system, sans-serif;

    --maxw: 1140px;
    --radius: 16px;
    --shadow: 0 18px 45px -22px rgba(15,59,125,0.35);
}

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

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.14; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); }

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

.eyebrow {
    font-family: var(--body);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .74rem;
    font-weight: 600;
    color: var(--teal-d);
    margin-bottom: 1rem;
    display: inline-block;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.6rem; border-radius: 999px;
    font-weight: 600; font-size: .95rem; text-decoration: none;
    border: 1.5px solid transparent; cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-d); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-mark { display: flex; align-items: center; text-decoration: none; }
.brand-mark img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
    text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; position: relative;
}
.nav-links a.active { color: var(--teal-d); }
.nav-links a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--teal); transition: width .2s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active:not(.btn)::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Wave divider ---------- */
.wave-divider { line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; display: block; }

/* ---------- Hero portada ---------- */
.hero {
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    background: linear-gradient(180deg, #f6fdff 0%, var(--paper) 100%);
}
.hero .hero-logo { width: min(260px, 62vw); height: auto; margin: 0 auto 1.5rem; display: block; }
.hero h1 { color: var(--navy); }
.hero h1 em { font-style: italic; color: var(--teal-d); }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    background: linear-gradient(180deg, #eef9fc 0%, var(--paper) 100%);
}
.page-hero h1 { color: var(--navy); margin-bottom: .4rem; }
.page-hero p { color: var(--muted); max-width: 52ch; margin: 0 auto; }

/* ---------- Banda de intención ---------- */
.band { background: var(--navy); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.band h2 { color: #fff; max-width: 22ch; margin-left: auto; margin-right: auto; }
.band p { color: rgba(255,255,255,.85); max-width: 62ch; margin-left: auto; margin-right: auto; }
.band.center { text-align: center; }
.band .btn-primary { margin-top: 1rem; }
.band .eyebrow { color: var(--aqua); }

/* ---------- Secciones ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); }

/* ---------- Teasers de portada ---------- */
.teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.teaser {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem 1.6rem; text-align: center; text-decoration: none; color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.teaser:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--aqua); }
.teaser .t-icon {
    width: 48px; height: 48px; margin: 0 auto 1rem; border-radius: 50%;
    background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--teal-d);
}
.teaser h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.teaser p { font-size: .9rem; color: var(--muted); margin: 0; }
.teaser .t-link { display: inline-block; margin-top: 1rem; color: var(--teal-d); font-weight: 600; font-size: .88rem; }

/* Sobre mí */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.photo-slot {
    aspect-ratio: 3/4; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; color: var(--muted);
    font-size: .8rem; text-align: center; overflow: hidden;
}
.photo-slot:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }

/* Servicios */
.svc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h4 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 .5rem; color: var(--navy); }
.card p { font-size: .92rem; color: var(--muted); margin: 0; }
.svc-note { margin-top: 2rem; font-size: .85rem; color: var(--muted); font-style: italic; text-align: center; }

/* Testimonios */
.testimonials { text-align: center; }
.quote {
    max-width: 760px; margin: 0 auto; font-family: var(--display); font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem); line-height: 1.42; color: var(--navy);
}
.quote-author { margin-top: 1.4rem; font-family: var(--body); font-style: normal; font-weight: 600; color: var(--teal-d); font-size: .95rem; }
.quote-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.quote-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.quote-dots button.active { background: var(--teal); }

/* Formularios */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.field input, .field textarea {
    width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px;
    font-family: var(--body); font-size: .95rem; background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: .8rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* Guía (captura) */
.guia { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(2rem,4vw,3rem); }
.guia h2 { color: #fff; }
.guia p { color: rgba(255,255,255,.82); }
.guia .eyebrow { color: var(--aqua); }
.guia .field label { color: rgba(255,255,255,.9); }
.guia .field input { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.guia .field input::placeholder { color: rgba(255,255,255,.55); }

/* Alerts (flash) */
.flash-wrap { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 100; width: min(92%, 520px); }
.alert { padding: .9rem 1.1rem; border-radius: 10px; font-size: .92rem; margin-bottom: .6rem; box-shadow: var(--shadow); }
.alert-success { background: #e2f5f0; color: #0f5c4e; border: 1px solid #b6e3d7; }
.alert-danger  { background: #f6e4e2; color: #8a2f24; border: 1px solid #e2b7b0; }
.alert-info    { background: #e2eef7; color: #1f4e79; border: 1px solid #b6d2ea; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid h4 { font-family: var(--display); color: #fff; margin-bottom: 1rem; font-size: 1.1rem; }
.footer-grid a { color: rgba(255,255,255,.72); text-decoration: none; display: block; margin-bottom: .5rem; font-size: .9rem; }
.footer-grid a:hover { color: var(--aqua); }
.footer-brand { font-family: var(--display); font-size: 1.3rem; color: #fff; margin-bottom: .5rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { color: rgba(255,255,255,.72); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Responsive */
@media (max-width: 860px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-photos { max-width: 480px; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links {
        position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start;
        background: var(--paper); padding: 1.5rem 24px; gap: 1.1rem; border-bottom: 1px solid var(--line);
        transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow);
    }
    .nav-links.open { transform: translateY(0); }
    .nav-toggle { display: block; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; transition: none !important; }
}
