:root {
    --teal: #0A4B5B;
    --teal-oscuro: #07343F;
    --coral: #EF6C4E;
    --coral-oscuro: #C4472B;
    --tinta: #1A333B;
    --suave: #51666D;
    --linea: #D8E1E4;
    --tinte: #F3F6F6;
    --borde-radio: 6px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font: 400 1.0625rem/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--tinta);
    background: #fff;
}

main { flex: 1; }

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

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    color: var(--teal);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.015em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; margin-bottom: .25em; }
p { margin: 0 0 1em; }

a { color: var(--teal); }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.envoltura { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.envoltura--angosta { width: min(760px, 100% - 2.5rem); }

.seccion { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.seccion--tinte { background: var(--tinte); }
section[id] { scroll-margin-top: 1rem; }

.intro { font-size: 1.2rem; color: var(--suave); max-width: 40em; margin-bottom: 2.5rem; }

.aviso-borrador {
    margin: 0;
    padding: .4rem 1rem;
    background: #FFF3D1;
    color: #5A4300;
    font-size: .875rem;
    text-align: center;
}

/* Botones */
.boton {
    display: inline-block;
    padding: .8rem 1.5rem;
    border: 2px solid var(--teal);
    border-radius: var(--borde-radio);
    background: var(--teal);
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.boton:hover { background: var(--teal-oscuro); border-color: var(--teal-oscuro); }

.boton--chico { padding: .5rem 1.1rem; font-size: 1rem; }

.boton--borde { background: transparent; color: var(--teal); }
.boton--borde:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Texto oscuro sobre coral: el blanco no alcanza el contraste mínimo. */
.boton--coral { background: var(--coral); border-color: var(--coral); color: var(--teal-oscuro); }
.boton--coral:hover { background: #F4876D; border-color: #F4876D; }

/* Cabecera */
.cabecera { border-bottom: 1px solid var(--linea); background: #fff; }
.cabecera__fila { display: flex; align-items: center; gap: 2rem; padding: .9rem 0; }

.marca {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: "Quicksand", "Figtree", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--teal);
    text-decoration: none;
}
.marca b { color: var(--coral); font-weight: 700; }
.marca--clara { color: #fff; }

.menu { display: flex; gap: 1.5rem; margin-left: auto; }
.menu a { color: var(--tinta); font-weight: 500; text-decoration: none; }
.menu a:hover { color: var(--coral-oscuro); }

/* Hero */
.hero { background: var(--teal); color: #fff; overflow: hidden; }
.hero__grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.hero h1 { color: #fff; }
.hero__bajada { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 32em; color: #DCE9EC; margin-bottom: 2rem; }
.hero__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.enlace-claro { display: inline-block; padding: .5rem 0; color: #fff; font-weight: 600; text-underline-offset: .2em; }
.hero__simbolo { width: 100%; }

/* Tres oficios: las tres barras del logo */
.oficios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.oficios p { margin: 0; color: var(--suave); }

.barra {
    display: block;
    width: 44px;
    margin-bottom: 1rem;
    background: var(--teal);
    clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
}
.barra--1 { height: 26px; margin-top: 22px; }
.barra--2 { height: 36px; margin-top: 12px; }
.barra--3 { height: 48px; background: var(--coral); }

/* Packs */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }

.pack {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border-top: 4px solid var(--teal);
    border-radius: 0 0 var(--borde-radio) var(--borde-radio);
    background: #fff;
}
.pack--destacado { border-top-color: var(--coral); box-shadow: 0 0 0 1px var(--linea); }
.pack__resumen { color: var(--suave); min-height: 3.2em; }
.pack__base { margin: 0 0 .5rem; font-weight: 600; }
.pack .boton { margin-top: auto; text-align: center; }
.pack .lista { margin-bottom: 1.75rem; }
/* La place de « desde » est réservée sur chaque pack : les montants restent alignés. */
.pack .precio { display: flex; flex-direction: column; justify-content: flex-end; min-height: 3.9rem; }

.precio {
    margin: 0 0 1.25rem;
    color: var(--teal);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}
.precio__desde { display: block; color: var(--suave); font-size: .95rem; font-weight: 500; letter-spacing: 0; }
.precio--chico { margin: 0; font-size: 1.5rem; white-space: nowrap; }
.precio__periodo { color: var(--suave); font-size: .95rem; font-weight: 500; letter-spacing: 0; }

.lista { margin: 0; padding: 0; list-style: none; }
.lista li { padding: .45rem 0; border-bottom: 1px solid var(--linea); }

.mensuales__titulo { margin: 3.5rem 0 1rem; font-size: 1.5rem; }
.mensuales { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.mensual {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--borde-radio);
    background: #fff;
}
.mensual p { margin: 0; }
.mensual__items { margin-top: .4rem !important; color: var(--suave); font-size: .95rem; }

.oferta { margin: 2rem 0 0; color: var(--teal); font-size: 1.15rem; font-weight: 600; }

/* Para quién */
.publicos { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2.5rem, 6vw, 5rem); }
.publicos article { display: flex; flex-direction: column; }
.publicos .boton { align-self: flex-start; margin-top: auto; }
.publicos__precio { margin: 1.25rem 0 1.5rem; font-weight: 600; color: var(--teal); }

/* Pasos */
.pasos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: paso;
}
.pasos li { counter-increment: paso; }
.pasos li::before {
    content: counter(paso);
    display: block;
    margin-bottom: .5rem;
    color: var(--coral-oscuro);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
.pasos h3 { margin-bottom: .3em; }
.pasos p { margin: 0; color: var(--suave); }

/* Quiénes somos */
.equipo { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.persona { text-align: center; }
.persona img { width: min(200px, 100%); margin: 0 auto 1.1rem; border-radius: 50%; }
.persona h3 { margin-bottom: .15em; }
.persona__titulo { margin: 0 0 .6rem; color: var(--coral-oscuro); font-weight: 600; line-height: 1.35; }
.persona__texto { margin: 0; color: var(--suave); }

/* Preguntas */
details { border-bottom: 1px solid var(--linea); }
details:first-of-type { border-top: 1px solid var(--linea); margin-top: 1.5rem; }
summary { padding: 1.1rem 0; color: var(--teal); font-weight: 600; cursor: pointer; }
details p { color: var(--suave); }

/* Contacto */
.contacto { background: var(--teal); color: #DCE9EC; }
.contacto h2 { color: #fff; }
.contacto__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }

.formulario { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.25rem; }
.campo { display: flex; flex-direction: column; min-width: 0; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { margin-bottom: .3rem; color: #fff; font-weight: 500; }

.campo input, .campo select, .campo textarea {
    width: 100%;
    padding: .7rem .8rem;
    border: 1px solid transparent;
    border-radius: var(--borde-radio);
    background: #fff;
    color: var(--tinta);
    font: inherit;
}
.campo textarea { resize: vertical; }

.error { margin-top: .3rem; color: #FFD2C6; font-size: .95rem; }
.error:empty { display: none; }

.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nota { margin: .9rem 0 0; font-size: .9rem; }

.confirmacion {
    margin: 0;
    padding: 1.5rem 1.75rem;
    border-radius: var(--borde-radio);
    background: #fff;
    color: var(--teal);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Pie */
.pie { background: var(--teal-oscuro); color: #DCE9EC; }
.pie__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem 0; }
.pie p { margin: 0; }
.pie a { display: inline-block; padding: .5rem 0; color: #DCE9EC; text-underline-offset: .2em; }

.nota a { color: #fff; text-underline-offset: .2em; }

/* Páginas de texto */
.titulo-pagina { font-size: clamp(2rem, 4.5vw, 3rem); }
.texto-legal h2 { margin: 2rem 0 .4rem; font-size: 1.25rem; letter-spacing: -.01em; }

/* Menú móvil: hamburguesa hasta 940 px. Sin JavaScript, los enlaces quedan a la vista. */
.menu-boton, .menu__contacto { display: none; }
.menu-boton .icono-cerrar, .menu-boton[aria-expanded="true"] .icono-abrir { display: none; }
.menu-boton[aria-expanded="true"] .icono-cerrar { display: inline; }

@media (max-width: 940px) {
    .cabecera { position: relative; z-index: 10; }
    .cabecera__fila { flex-wrap: wrap; gap: .6rem 1rem; }
    .cabecera .boton--chico { order: 1; margin-left: auto; }
    .menu { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: .2rem 1.25rem; font-size: .95rem; }

    .js .menu-boton {
        order: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--linea);
        border-radius: var(--borde-radio);
        background: #fff;
        color: var(--teal);
        cursor: pointer;
    }

    .js .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        padding: .25rem 1.25rem .5rem;
        border-bottom: 1px solid var(--linea);
        background: #fff;
        box-shadow: 0 10px 18px rgb(7 52 63 / .14);
        font-size: 1.0625rem;
    }
    .js .menu.menu--abierto { display: flex; }
    .js .menu a { padding: .8rem 0; }
    .js .menu a + a { border-top: 1px solid var(--linea); }
}

/* Tablette : on garde les colonnes, en plus compact. */
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1.5fr 1fr; gap: 2rem; }
    .oficios { gap: 1.5rem; }
    .packs, .mensuales { gap: 1rem; }
    .pack { padding: 1.25rem 1.1rem; }
    .pack .boton { padding-inline: .5rem; }
    .pack__resumen { min-height: 5.2em; font-size: 1rem; }
    .pack .precio { min-height: 3.4rem; font-size: 1.6rem; }
    .mensual { flex-direction: column; gap: .75rem; padding: 1.25rem; }
    .precio--chico { font-size: 1.4rem; }
    .contacto__grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .pasos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .packs, .mensuales, .publicos { grid-template-columns: 1fr; }
    .pack { padding: 1.75rem; }
    .pack .boton { padding-inline: 1.5rem; }
    .pack__resumen { min-height: 0; font-size: inherit; }
    .pack .precio { min-height: 0; font-size: 2rem; }
    .mensual { flex-direction: row; gap: 1.5rem; padding: 1.5rem 1.75rem; }
    .publicos .boton { margin-top: .25rem; }
}

@media (max-width: 640px) {
    .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero__simbolo { width: min(200px, 55%); }
    .oficios { grid-template-columns: 1fr; gap: 2rem; }
    .formulario { grid-template-columns: 1fr; }
    .equipo { grid-template-columns: 1fr; }
    .persona { display: grid; grid-template-columns: 96px 1fr; column-gap: 1rem; align-items: start; text-align: left; }
    .persona img { width: 100%; margin: 0; }
}

/* Petit téléphone : le bouton passe dans le menu pour que l'en-tête tienne sur une ligne. */
@media (max-width: 430px) {
    .js .cabecera .boton--chico { display: none; }
    .js .menu-boton { margin-left: auto; }
    .js .menu .menu__contacto { display: block; color: var(--teal); font-weight: 600; }
}

@media (max-width: 460px) {
    .pasos { grid-template-columns: 1fr; }
    .mensual { flex-direction: column; gap: .75rem; }
}
