:root {
    --tinta: #173028;
    --tinta-suave: #4a5c54;
    --papel: #f4f8f5;
    --papel-2: #fbfdfb;
    --blanco: #ffffff;
    --verde: #1a9b48;
    --verde-oscuro: #126736;
    --turquesa: #4d8482;
    --linea: #d5e3da;
    --error: #8d2e2a;
    --error-fondo: #f8e8e4;
    --ok: #126736;
    --ok-fondo: #e5f6eb;
    --aviso-fondo: #e7f3f2;
    --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --sombra: 0 18px 40px rgba(18, 103, 54, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--tinta);
    background: var(--papel);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.55;
}

h1, h2, h3 {
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 0 0 0.6rem; }

h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 0.6rem; }

h3 { font-size: 1.35rem; margin: 0.4rem 0; }

p { margin: 0 0 0.8rem; }

a { color: var(--verde-oscuro); }

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

.logo {
    display: block;
    height: 3.35rem;
    width: auto;
}

.logo-claro { height: 2.7rem; }

.logo-vertical { height: 8.5rem; }

.barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 6vw;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 3px solid var(--verde);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.barra-marca { text-decoration: none; }

.barra-nav { display: flex; align-items: center; gap: 1.1rem; }

.barra-nav a { text-decoration: none; color: var(--tinta); }

.boton, button.boton {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    background: var(--verde-oscuro);
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.2rem;
    font: inherit;
    cursor: pointer;
}

.boton-secundario, .boton-fantasma {
    background: transparent;
    color: var(--verde-oscuro);
    border: 1px solid var(--verde-oscuro);
}

.boton-chico { padding: 0.45rem 0.9rem; }

.boton:hover, button.boton:hover { background: var(--verde); color: white; }

.boton-secundario:hover, .boton-fantasma:hover { background: var(--verde-oscuro); color: white; }

.hero, .bloque, .franja { padding: 3.5rem 6vw; }

.hero { max-width: 62rem; padding-top: 4.5rem; }

.hero-corto { padding-top: 4rem; padding-bottom: 5rem; }

.sobrelinea {
    margin: 0 0 0.7rem;
    color: var(--verde);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bajada { max-width: 40rem; font-size: 1.15rem; color: var(--tinta-suave); }

.hero-acciones { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

.franja {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--verde-oscuro);
    color: #f4fbf6;
}

.franja h2 { color: #ffffff; }

.bloque {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.bloque-invertido { background: var(--blanco); }

.fichas, .pasos, .campos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fichas li, .campos li, .pasos li {
    background: var(--blanco);
    border: 1px solid var(--linea);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
}

.bloque-invertido .pasos { display: grid; gap: 0.7rem; }

.bloque-invertido .pasos li {
    border-radius: 0.8rem;
    counter-increment: paso;
}

.pasos { counter-reset: paso; }

.pasos li::before {
    content: counter(paso) ". ";
    color: var(--verde);
    font-weight: 700;
}

.pie {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding: 2rem 6vw 2.5rem;
    background: #171717;
    color: #e8e8e8;
}

.pie a { color: #ffffff; }

.pie { padding-bottom: 5.2rem; }

.whatsapp {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 40;
    width: 3.7rem;
    height: 3.7rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.whatsapp svg { width: 1.9rem; height: 1.9rem; display: block; }

.whatsapp:hover { background: #1ebe5b; color: #ffffff; }

.acceso {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(26, 155, 72, 0.16), transparent 28rem),
        var(--papel);
}

.acceso-marco { max-width: 68rem; margin: 0 auto; padding: 1.5rem 1.2rem 3rem; }

.acceso-volver { color: var(--tinta-suave); }

.acceso-tarjeta {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    margin-top: 1.5rem;
    background: var(--blanco);
    border: 1px solid var(--linea);
    border-radius: 1.4rem;
    box-shadow: var(--sombra);
    overflow: hidden;
}

.acceso-presentacion {
    padding: 2rem;
    background: var(--verde-oscuro);
    color: #ffffff;
}

.acceso-presentacion h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

.acceso-presentacion .logo-vertical { margin-bottom: 1.2rem; }

.formulario { display: grid; gap: 0.35rem; padding: 2rem; }

.formulario label { font-size: 0.92rem; margin-top: 0.45rem; }

.formulario input {
    width: 100%;
    border: 1px solid var(--linea);
    background: var(--papel-2);
    border-radius: 0.7rem;
    padding: 0.75rem 0.8rem;
    font: inherit;
    color: var(--tinta);
}

.formulario input:focus {
    outline: 2px solid var(--verde);
    border-color: var(--verde);
}

.ayuda { color: var(--tinta-suave); font-size: 0.92rem; }

.nota { border-radius: 0.7rem; padding: 0.7rem 0.8rem; }

.nota-error { background: var(--error-fondo); color: var(--error); }

.nota-ok { background: var(--ok-fondo); color: var(--ok); }

.nota-aviso, .nota-ok.nota-aviso { background: var(--aviso-fondo); color: #6a4b12; }

.captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.8rem;
    margin: 0.6rem 0 0.8rem;
}

.captcha img {
    display: block;
    width: 308px;
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
    border-radius: 0.7rem;
    border: 1px solid var(--linea);
    background: #ffffff;
}

.captcha a { font-size: 0.9rem; }

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

.admin { background: var(--papel); }

.admin-marco { display: grid; grid-template-columns: 17rem 1fr; min-height: 100vh; }

.lado {
    background: var(--verde-oscuro);
    color: #f4fbf6;
    padding: 1.2rem 0.9rem;
}

.lado a { color: #f4fbf6; text-decoration: none; }

.lado-marca { display: block; padding: 0.35rem 0.55rem 1rem; }

.menu { display: grid; gap: 0.15rem; }

.menu a { border-radius: 0.6rem; padding: 0.38rem 0.65rem; }

.menu a.activo, .menu a:hover { background: rgba(255, 255, 255, 0.1); }

.menu-grupo {
    margin: 0.9rem 0 0.2rem;
    padding: 0 0.65rem;
    color: #b7e0c8;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lado-movil { display: none; }

.admin-cuerpo { min-width: 0; }

.tope {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.tope span { display: block; color: var(--tinta-suave); font-size: 0.9rem; }

.hoja { padding: 0.5rem 1.5rem 3rem; }

.grupo { margin-top: 1.8rem; }

.grilla {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 0.8rem;
}

.tarjeta {
    display: block;
    background: var(--blanco);
    border: 1px solid var(--linea);
    border-radius: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    min-height: 11rem;
}

.tarjeta:hover { border-color: var(--verde); }

.etiqueta {
    display: inline-block;
    border-radius: 999px;
    background: #e5f6eb;
    color: var(--verde-oscuro);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
}

.formulario-angosto { max-width: 28rem; padding: 0; }

body.sitio { background: #f3f3f3; color: #1c1c1c; }

body.sitio .barra {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e4e4e4;
}

body.sitio .barra-nav a { font-size: 0.95rem; }

body.sitio .barra-nav a:hover { color: var(--verde-oscuro); }

.portada {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    min-height: 78vh;
    background: #171717;
    color: #f5f5f5;
}

.portada-foto {
    width: 100%;
    height: 78vh;
    min-height: 28rem;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.portada-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: -7%;
    padding: 3rem 7vw 3rem 1.5rem;
}

.portada-logo { height: 7.5rem; width: auto; }

.portada-rubro {
    margin: 1rem 0 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: #d7d7d7;
}

.portada-frase {
    max-width: 22rem;
    margin-bottom: 1.3rem;
    color: #ececec;
}

.pilares { display: grid; grid-template-columns: repeat(3, 1fr); }

.pilar { padding: 3.2rem 1.8rem 2.8rem; }

.pilar h2 {
    margin: 1.1rem 0 0.7rem;
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pilar p { margin: 0; font-size: 0.98rem; }

.pilar-oscuro { background: #171717; color: #f3f3f3; }

.pilar-verde {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff;
    background:
        linear-gradient(rgba(10, 48, 28, 0.62), rgba(10, 48, 28, 0.74)),
        url("../img/textura.jpg") center / cover no-repeat;
}

.pilar-verde h2 { color: #ffffff; }

.pilar-caja {
    margin-top: 1.2rem;
    background: #1a1a1a;
    color: #f4f4f4;
    text-align: left;
    padding: 1.15rem 1.1rem 1.25rem;
}

.pilar-claro { background: #f3f3f3; color: #1c1c1c; }

.hex-icono { width: 4.6rem; height: auto; display: block; }

.servicios { background: #f3f3f3; }

.banda {
    background: #171717;
    text-align: center;
    padding: 1.7rem 1rem 3.1rem;
    clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
}

.banda h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.banda-verde h2 { color: #1a9b48; }

.servicio-grilla {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.2rem 1.2rem;
    max-width: 70rem;
    margin: 0 auto;
    padding: 2.2rem 6vw 4rem;
}

.servicio { grid-column: span 2; text-align: center; }

.servicio:nth-child(4) { grid-column: 2 / span 2; }

.servicio:nth-child(5) { grid-column: 4 / span 2; }

.servicio h3 {
    margin: 0.85rem 0 0.35rem;
    font-size: 0.98rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.servicio p {
    margin: 0 auto;
    max-width: 16rem;
    color: #3d3d3d;
    font-size: 0.92rem;
}

.hex-num {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 4rem;
    margin: 0 auto;
    background: #171717;
    color: #ffffff;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hex-num-verde { color: #1a9b48; }

.equipo {
    display: grid;
    grid-template-columns: 20rem 20rem;
    justify-content: center;
    align-items: stretch;
    column-gap: 1rem;
    padding: 1.5rem 4vw;
    background: #f7f7f7;
}

.equipo-caja {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 1.2rem 1.25rem;
    background: #171717;
    color: #f4f4f4;
}

.equipo-caja h2 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: none;
}

.equipo-caja p { margin: 0.5rem 0 0; line-height: 1.35; }

.equipo-caja ol {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
    counter-reset: equipo;
}

.equipo-caja li {
    position: relative;
    padding: 0.2rem 0 0.2rem 1.6rem;
    line-height: 1.3;
    counter-increment: equipo;
}

.equipo-caja li::before {
    content: counter(equipo) ".";
    position: absolute;
    left: 0;
    color: #1a9b48;
    font-weight: 700;
}

.equipo figure {
    margin: 0;
    padding: 0;
}

.equipo img {
    display: block;
    width: 100%;
    height: auto;
}

.registro {
    position: relative;
    overflow: hidden;
    padding: 3.2rem 6vw 4.2rem;
    background: #f3f3f3;
}

.registro::after {
    content: "";
    position: absolute;
    top: -5rem;
    right: -4rem;
    width: 16rem;
    height: 18rem;
    background: #171717;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.registro-cabeza, .mosaico { position: relative; z-index: 1; }

.registro-cabeza { max-width: 36rem; margin-bottom: 1.6rem; }

.registro-cabeza h2 {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 1.45rem;
}

.mosaico {
    display: grid;
    grid-template-columns: 0.9fr 0.75fr 1.15fr 0.85fr;
    gap: 1rem;
    align-items: start;
}

.mosaico figure { margin: 0; background: #ffffff; padding: 0.45rem; }

.mosaico figure:nth-child(2) { margin-top: 2.4rem; }

.mosaico figure:nth-child(4) { margin-top: 3.2rem; }

.mosaico img {
    display: block;
    width: 100%;
    height: 18rem;
    object-fit: cover;
}

.contacto {
    padding: 1.25rem 3vw 1.4rem;
    background: #f3f3f3;
}

.contacto-grilla {
    display: grid;
    grid-template-columns: minmax(16rem, 0.62fr) minmax(0, 1.55fr);
    gap: 1.25rem;
    align-items: stretch;
    max-width: 96rem;
    margin: 0 auto;
}

.contacto-datos {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    padding: 1rem 1.1rem 1.05rem;
}

.contacto h2 {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin: 0 0 0.7rem;
}

.vias {
    list-style: none;
    margin: 0 0 0.65rem;
    padding: 0;
}

.vias li { margin: 0.2rem 0; }

.vias a { text-decoration: none; font-weight: 600; }

.hex-fila {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hex-ficha {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 15.5rem;
    height: 17rem;
    margin: 0 -1.1rem;
    padding: 2.6rem 2.3rem;
    background: #ffffff;
    color: #1c1c1c;
    text-decoration: none;
    text-align: center;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
}

.hex-ficha:nth-child(odd) { transform: translateY(1.1rem); }

.hex-ficha-oscura {
    background: #171717;
    color: #f5f5f5;
    z-index: 1;
}

.hex-ficha strong {
    display: block;
    margin-bottom: 0.45rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.92rem;
}

.hex-ficha span { font-size: 0.86rem; line-height: 1.35; max-width: 11rem; }

.hex-ficha:hover { color: var(--verde-oscuro); }

.hex-ficha-oscura:hover { color: #b7e7c8; }

.correo {
    margin: 0;
    padding: 0;
    background: transparent;
    text-align: left;
    border: 0;
}

.correo h3 {
    margin: 0 0 0.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1rem;
}

.correo label { display: block; margin: 0.4rem 0 0.15rem; font-weight: 600; }

.correo input, .correo textarea {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
    padding: 0.4rem 0.6rem;
    font: inherit;
    color: inherit;
}

.correo .boton { margin-top: 0.65rem; }

.correo .nota { margin-top: 0.55rem; }

.correo .captcha {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.45rem;
    margin: 0.45rem 0 0;
}

.correo .captcha img {
    width: 7.4rem;
    max-width: 7.4rem;
    height: auto;
    flex: 0 0 auto;
    border-radius: 0.2rem;
}

.correo .captcha div { flex: 1; min-width: 0; }

.correo .captcha label { margin: 0 0 0.15rem; }

.correo .captcha a {
    flex: 0 0 auto;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
}

.campo-error { margin: 0.25rem 0 0; color: var(--error); font-size: 0.9rem; }

.mapa {
    display: flex;
    flex-direction: column;
    background: #171717;
    color: #f4f4f4;
    padding: 1.1rem 0 0;
    min-height: 100%;
}

.mapa h2 {
    margin: 0 0 0.8rem;
    text-align: center;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 1.05rem;
    color: #ffffff;
}

.mapa-marco {
    flex: 1;
    min-height: 0;
}

.mapa-marco iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 16rem;
    border: 0;
}

.mapa p { margin: 0; padding: 0.9rem 1rem 1.2rem; text-align: center; }

.mapa a { color: #ffffff; }

@media (max-width: 860px) {
    .barra { align-items: flex-start; flex-direction: column; }
    .franja, .bloque, .acceso-tarjeta, .admin-marco { grid-template-columns: 1fr; }
    .captcha { align-items: stretch; }
    .lado-fijo { display: none; }
    .lado-movil { display: block; }
    .lado { padding-bottom: 0.4rem; }
    .lado-movil summary { cursor: pointer; padding: 0.4rem 0.6rem 0.8rem; }
    .pie { flex-direction: column; align-items: flex-start; }
    .portada { grid-template-columns: 1fr; }
    .portada-foto { min-height: 16rem; max-height: 22rem; clip-path: none; }
    .portada-panel { margin-left: 0; padding: 2rem 1.4rem 2.5rem; }
    .portada-logo { height: 5.5rem; }
    .pilares, .equipo { grid-template-columns: 1fr; }
    .servicio-grilla { grid-template-columns: 1fr; padding-top: 1.4rem; }
    .servicio, .servicio:nth-child(4), .servicio:nth-child(5) { grid-column: auto; }
    .equipo { grid-template-columns: 1fr; padding: 1.2rem 1rem 1.4rem; }
    .equipo-caja { min-height: 0; margin: 0; }
    .equipo figure { min-height: 0; padding: 0; }
    .equipo img {
        position: static;
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 24rem;
        margin: 0 auto;
    }
    .mosaico { grid-template-columns: 1fr 1fr; }
    .mosaico figure:nth-child(2), .mosaico figure:nth-child(4) { margin-top: 0; }
    .mosaico img { height: 12rem; }
    .registro::after { width: 7rem; height: 8rem; top: -2.2rem; right: -2rem; }
    .contacto-grilla { grid-template-columns: 1fr; }
    .hex-fila { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .correo .captcha { flex-wrap: wrap; }
    .mapa-marco, .mapa-marco iframe { min-height: 16rem; }
    .mapa-marco iframe { height: 16rem; }
    .hex-ficha, .hex-ficha:nth-child(odd) {
        width: auto;
        height: auto;
        margin: 0;
        transform: none;
        clip-path: none;
        border-radius: 0.35rem;
        padding: 1.15rem 1rem;
    }
}

@media (max-width: 560px) {
    .mosaico { grid-template-columns: 1fr; }
    .mosaico img { height: 16rem; }
}
