/* =========================================================
   AGESINFO — hoja de estilos
   Paleta: azul oscuro · naranja · blanco
   ========================================================= */

:root {
    --navy:        #12324f;
    --navy-deep:   #0d2740;
    --teal:        #2bc4c4;
    --teal-dark:   #1f9a9a;
    --orange:      #f28527;
    --orange-dark: #d96f14;
    --ink:         #1f2a37;
    --muted:       #5b6b7b;
    --line:        #e4e8ee;
    --bg:          #ffffff;
    --bg-alt:      #f5f7fa;
    --white:       #ffffff;

    --radius:      14px;
    --radius-sm:   10px;
    --shadow:      0 10px 30px rgba(18, 50, 79, 0.08);
    --shadow-lg:   0 20px 50px rgba(18, 50, 79, 0.14);
    --maxw:        1140px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Segoe UI", Roboto, Georgia, serif;
}

/* ---------- Reset ligero ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); letter-spacing: -0.01em; }
h3 { font-size: 1.16rem; }
p  { margin: 0 0 1rem; }

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

/* ---------- Elementos comunes ---------- */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .74rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin: 0 0 .6rem;
}
.eyebrow-light { color: #6fe0e0; }

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .98rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242,133,39,.28); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { color: var(--navy); border-color: rgba(18,50,79,.22); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-block { width: 100%; }

.section { padding: 82px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-lead-light { color: #c4d2df; }

/* =========================================================
   CABECERA
   ========================================================= */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; gap: 20px;
    min-height: 70px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 54px; width: auto; display: block; }
.logo-svg { height: 32px; width: auto; }
@media (max-width: 720px) { .logo img { height: 44px; } }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
    display: block; padding: 8px 14px; color: var(--navy);
    font-weight: 500; font-size: .96rem; border-radius: 8px;
}
.main-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-cta { color: var(--teal-dark) !important; font-weight: 600; }

.header-contact { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.header-email { font-weight: 600; color: var(--navy); font-size: .92rem; }
.header-phone { color: var(--muted); font-size: .86rem; }

.nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 40px; background: none; border: 0; cursor: pointer;
    flex-direction: column; justify-content: center; gap: 5px; padding: 8px;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    background:
        radial-gradient(1100px 480px at 88% -8%, rgba(43,196,196,.12), transparent 60%),
        linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
    padding: 74px 0 78px;
    border-bottom: 1px solid var(--line);
}
.hero-inner {
    display: grid; grid-template-columns: 1.15fr .85fr;
    gap: 56px; align-items: center;
}
.hero-text h1 { margin-bottom: .55rem; }
.hero-sub { font-size: 1.14rem; color: var(--muted); max-width: 40ch; margin-bottom: 1.7rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.9rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-points li { position: relative; padding-left: 28px; color: var(--ink); font-size: .97rem; }
.hero-points li::before {
    content: "✓"; position: absolute; left: 0; top: -1px;
    color: var(--teal); font-weight: 800;
}

/* Foto del hero */
.hero-visual { display: flex; justify-content: center; }
.hero-photo {
    margin: 0; width: 100%; max-width: 480px;
    position: relative;
}
.hero-photo img { width: 100%; height: auto; display: block; }

/* =========================================================
   TARJETAS DE SERVICIOS
   ========================================================= */
.cards {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.cards article:last-child:nth-child(4n+1) { grid-column: 2 / span 2; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3dbe4; }
.card-icon {
    width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center; color: var(--teal-dark);
    background: linear-gradient(160deg, #eef3f8, #e3ebf3);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* =========================================================
   PRECIOS
   ========================================================= */
.price-block { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.price-text p { color: var(--muted); }
.price-text .btn { margin-top: 8px; }
.price-card {
    background: var(--navy); color: #fff; border-radius: 18px; padding: 34px 32px;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.price-card::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(43,196,196,.38), transparent 70%);
}
.price-card-label { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: #9db3c7; margin: 0; }
.price-card-amount { font-size: 3rem; font-weight: 800; color: #fff; margin: 2px 0 18px; }
.price-card-amount::first-line { color: #fff; }
.price-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 11px; }
.price-list li { position: relative; padding-left: 26px; color: #dce6ef; font-size: .97rem; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.price-note { font-size: .82rem; color: #90a6ba; margin: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }

/* =========================================================
   BLOQUE DIVIDIDO (tienda online)
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split-text p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

.split-visual { position: relative; min-height: 240px; display: flex; justify-content: center; align-items: center; }
.shop-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; width: 210px; box-shadow: var(--shadow);
}
.shop-card--offset { position: absolute; transform: translate(60px, 60px) rotate(3deg); z-index: -1; opacity: .85; }
.shop-thumb {
    height: 96px; border-radius: 9px; background: linear-gradient(160deg,#eef3f8,#dbe4ee); margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center; color: var(--teal-dark);
}
.shop-thumb svg { width: 34px; height: 34px; }
.shop-line { height: 10px; border-radius: 5px; background: #e9edf3; margin-bottom: 9px; }
.shop-price { font-weight: 800; color: var(--teal-dark); margin-top: 6px; }

/* =========================================================
   POR QUÉ ELEGIR (sección oscura)
   ========================================================= */
.section-dark { background: var(--navy-deep); color: #dce6ef; }
.section-dark h2, .section-dark h3 { color: #fff; }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.reason {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius); padding: 26px 22px;
}
.reason-num {
    display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .05em;
    color: var(--teal); margin-bottom: 12px;
}
.reason p { color: #b4c5d4; font-size: .95rem; margin: 0; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: start; }
.contact-intro p { color: var(--muted); }
.contact-details { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.contact-details li { display: flex; flex-direction: column; }
.contact-label { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--muted); font-weight: 700; }
.contact-details a { color: var(--navy); font-weight: 600; }

.contact-form-wrap {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 30px 30px 26px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.req { color: var(--teal-dark); }
.opt { color: var(--muted); font-weight: 400; font-size: .85em; }
.field input, .field textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: .97rem; color: var(--ink); background: #fdfefe; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,196,196,.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.has-error { border-color: #dc4a3d !important; }
.field-error { display: block; color: #c9392d; font-size: .84rem; margin-top: 5px; }

.field-check { margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: auto; margin-top: 3px; accent-color: var(--teal-dark); }
.form-foot { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* Honeypot oculto */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 22px; font-size: .95rem; }
.alert-ok { background: #e9f7ef; border: 1px solid #b6e3c8; color: #1c6b3f; }
.alert-error { background: #fdeceb; border: 1px solid #f4c3bd; color: #a5312a; }
.alert strong { display: block; margin-bottom: 2px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-deep); color: #b4c5d4; padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { font-size: 1.35rem; font-weight: 800; letter-spacing: .08em; color: #fff; font-family: var(--font-head); }
.footer-brand p { margin: 8px 0 0; font-size: .92rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: #b4c5d4; font-size: .93rem; }
.footer-col a:hover { color: var(--teal); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; }
.footer-bottom p { margin: 0; font-size: .84rem; color: #8299ab; }

/* Botón volver arriba */
.to-top {
    position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
    background: var(--navy); color: #fff; border-radius: 50%; display: none;
    align-items: center; justify-content: center; font-size: 1.2rem; z-index: 90;
    box-shadow: var(--shadow); text-decoration: none;
}
.to-top:hover { background: var(--teal-dark); text-decoration: none; }
.to-top.show { display: flex; }

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */
.legal { padding: 60px 0 80px; }
.legal .container { max-width: 800px; }
.legal h1 { margin-bottom: .3em; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink); }
.legal .back { display: inline-block; margin-bottom: 24px; font-weight: 600; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 940px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .mock-window { max-width: 340px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .cards article:last-child { grid-column: auto; }
    .reasons { grid-template-columns: repeat(2, 1fr); }
    .price-block, .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .split-visual { min-height: 200px; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .header-contact { display: none; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 70px 0 auto 0; margin: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .28s ease; box-shadow: var(--shadow);
    }
    .main-nav.open { max-height: 380px; }
    .main-nav ul { flex-direction: column; padding: 12px 16px; gap: 2px; }
    .main-nav a { padding: 12px 14px; font-size: 1rem; border-bottom: 1px solid var(--bg-alt); }
    .section { padding: 58px 0; }
    .hero { padding: 48px 0 54px; }
}

@media (max-width: 480px) {
    .cards, .reasons, .footer-inner { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .contact-form-wrap { padding: 22px 18px; }
    .price-card-amount { font-size: 2.4rem; }
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
    .mock-window { transform: none; }
}
