:root{
    --verde:#1f8f63;
    --verde-vivo:#2db34a;
    --verde-oscuro:#146346;
    --charcoal:#3d3d3d;
    --azul:#0f3d56;
    --celeste:#eaf7f8;
    --gris:#666;
    --gris-claro:#f5f6f7;
    --blanco:#ffffff;
    --sombra:0 10px 30px rgba(0,0,0,.12);
    --radio:18px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Outfit", "Segoe UI", sans-serif;
    color:#222;
    background:#fff;
    line-height:1.5;
}

a{
    text-decoration:none;
    color:inherit;
}

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

.container{
    width:min(1180px, 92%);
    margin:0 auto;
}

/* HEADER / NAVBAR */

.site-header{
    background:rgba(255,255,255,.96);
    border-bottom:1px solid #e8eef0;
    position:sticky;
    top:0;
    z-index:999;
    backdrop-filter:blur(10px);
}

.navbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    min-height:78px;
    padding:10px 0;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    flex-shrink:0;
    min-width:0;
}

.brand img{
    width:52px;
    height:52px;
    object-fit:contain;
    border-radius:50%;
    background:#fff;
    box-shadow:0 4px 14px rgba(0,0,0,.08);
    padding:4px;
}

.brand-text{
    display:flex;
    flex-direction:column;
    line-height:1.15;
}

.brand-text strong{
    font-size:1.2rem;
    color:var(--charcoal);
    font-weight:700;
    letter-spacing:-.01em;
}

.brand-text strong span{
    color:var(--verde-vivo);
}

.brand-text small{
    font-size:.78rem;
    color:#7a8680;
    font-weight:500;
}

.menu{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:1;
    gap:8px 28px;
    flex-wrap:nowrap;
}

.menu a{
    position:relative;
    padding:8px 2px;
    color:#1f3b4d;
    font-weight:600;
    font-size:.98rem;
    letter-spacing:.01em;
    transition:color .2s ease;
    white-space:nowrap;
}

.menu a::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:2px;
    background:var(--verde-vivo);
    transform:scaleX(0);
    transform-origin:left center;
    transition:transform .22s ease;
}

.menu a:hover,
.menu a.active{
    color:var(--verde-oscuro);
    background:transparent;
}

.menu a:hover::after,
.menu a.active::after{
    transform:scaleX(1);
}

.navbar-aside{
    display:flex;
    align-items:center;
    gap:18px;
    flex-shrink:0;
}

.header-contact{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:2px;
    text-align:right;
    font-size:.78rem;
    color:#5a6b64;
    line-height:1.3;
}

.header-contact a{
    color:var(--verde-oscuro);
    font-weight:600;
}

.header-contact a:hover{
    color:var(--verde-vivo);
}

.menu-admin{
    display:inline-flex;
    align-items:center;
    padding:9px 14px;
    border-radius:999px;
    font-weight:700;
    font-size:.84rem;
    color:#fff !important;
    background:#c0392b;
    border:1px solid #a93226;
    box-shadow:0 6px 14px rgba(192,57,43,.2);
    transition:.2s ease;
    white-space:nowrap;
}

.menu-admin:hover{
    background:#a93226;
    color:#fff !important;
    transform:translateY(-1px);
}

/* Buscador en header */
.header-search{
    display:flex;
    align-items:center;
    gap:0;
    min-width:0;
    max-width:220px;
    background:#f4f7f5;
    border:1px solid #d8e4de;
    border-radius:999px;
    overflow:hidden;
    transition:border-color .2s ease, box-shadow .2s ease;
}

.header-search:focus-within{
    border-color:var(--verde);
    box-shadow:0 0 0 3px rgba(31,143,99,.15);
    background:#fff;
}

.header-search input{
    flex:1;
    min-width:0;
    border:0;
    background:transparent;
    padding:9px 4px 9px 14px;
    font:inherit;
    font-size:.86rem;
    color:var(--charcoal);
    outline:none;
}

.header-search input::placeholder{
    color:#8a9690;
}

.header-search button{
    flex-shrink:0;
    width:38px;
    height:36px;
    border:0;
    background:transparent;
    color:var(--verde-oscuro);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.header-search button:hover{
    color:var(--verde-vivo);
}

.header-search button svg{
    width:18px;
    height:18px;
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

/* Página de búsqueda */
.search-page{
    padding:42px 0 56px;
}

.search-page-head{
    max-width:720px;
    margin:0 auto 36px;
    text-align:center;
}

.search-page-form{
    margin-top:22px;
}

.search-page-field{
    display:flex;
    align-items:center;
    gap:10px;
    background:#fff;
    border:1px solid #d8e4de;
    border-radius:16px;
    padding:8px 8px 8px 16px;
    box-shadow:0 10px 28px rgba(20,40,30,.06);
}

.search-page-field:focus-within{
    border-color:var(--verde);
    box-shadow:0 0 0 3px rgba(31,143,99,.14), 0 10px 28px rgba(20,40,30,.06);
}

.search-page-ico{
    color:var(--verde);
    display:inline-flex;
}

.search-page-ico svg,
.af-search-ico,
.af-search-ico svg{
    width:22px;
    height:22px;
    display:block;
}

.search-page-field input{
    flex:1;
    min-width:0;
    border:0;
    background:transparent;
    font:inherit;
    font-size:1.05rem;
    padding:10px 4px;
    outline:none;
    color:var(--charcoal);
}

.search-page-field .btn{
    flex-shrink:0;
    border-radius:12px;
    padding:12px 20px;
}

.search-type-filters{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    margin-top:18px;
}

.search-count{
    margin:0 0 22px;
    color:var(--gris);
    font-weight:600;
    text-align:center;
}

.search-empty{
    max-width:560px;
    margin:0 auto;
    text-align:center;
}

.search-empty h2{
    margin:0 0 10px;
    color:var(--verde-oscuro);
}

.search-empty p{
    margin:0;
    color:var(--gris);
}

.year-filters{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    margin:0 auto 28px;
}

.year-filter{
    display:inline-flex;
    align-items:center;
    padding:9px 16px;
    border-radius:999px;
    border:1px solid #d9e3dc;
    background:#fff;
    color:var(--verde-oscuro);
    font-weight:700;
    font-size:.92rem;
    transition:.2s ease;
}

.year-filter:hover,
.year-filter.is-active{
    background:var(--verde);
    border-color:var(--verde);
    color:#fff;
}

.card-year{
    display:inline-block;
    margin-bottom:8px;
    padding:4px 10px;
    border-radius:999px;
    background:#e8f5ec;
    color:var(--verde-oscuro);
    font-size:.75rem;
    font-weight:700;
    letter-spacing:.04em;
}

.footer-admin{
    text-align:center;
    margin-top:14px;
}

.footer-admin a{
    color:#8a949c;
    font-size:.85rem;
    text-decoration:underline;
    text-underline-offset:3px;
}

/* LOADER INDEX */
.af-loader{
    position:fixed;
    inset:0;
    z-index:10000;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(circle at 50% 40%, #f7fbf8 0%, #e8f2eb 55%, #dce9e0 100%);
    transition:opacity .55s ease, visibility .55s ease;
}

.af-loader.is-done{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

.af-loader-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:22px;
    animation:af-loader-enter .7s ease both;
}

.af-loader-logo-wrap{
    position:relative;
    width:120px;
    height:120px;
    display:grid;
    place-items:center;
}

.af-loader-ring{
    position:absolute;
    inset:0;
    border-radius:50%;
    border:2px dashed rgba(45,179,74,.55);
    animation:af-spin 2.4s linear infinite;
}

.af-loader-logo{
    width:88px;
    height:88px;
    object-fit:contain;
    border-radius:50%;
    background:#fff;
    padding:10px;
    box-shadow:0 10px 28px rgba(20,99,70,.18);
    animation:af-pulse 1.6s ease-in-out infinite;
}

.af-loader-text{
    font-family:"Outfit", sans-serif;
    color:var(--charcoal);
    font-weight:600;
    letter-spacing:.02em;
}

.af-loader-text span{
    color:var(--verde-vivo);
}

@keyframes af-spin{
    to{ transform:rotate(360deg); }
}

@keyframes af-pulse{
    0%,100%{ transform:scale(1); }
    50%{ transform:scale(1.04); }
}

@keyframes af-loader-enter{
    from{ opacity:0; transform:translateY(10px); }
    to{ opacity:1; transform:translateY(0); }
}

/* BOTONES */

.btn{
    display:inline-block;
    padding:14px 24px;
    border-radius:999px;
    font-weight:700;
    transition:.25s ease;
}

.btn-primary{
    background:var(--verde);
    color:#fff;
    box-shadow:var(--sombra);
}

.btn-primary:hover{
    background:var(--verde-oscuro);
    transform:translateY(-2px);
}

.btn-secondary{
    background:rgba(255,255,255,.16);
    color:#fff;
    border:1px solid rgba(255,255,255,.35);
}

.btn-secondary:hover{
    background:#fff;
    color:var(--azul);
}

/* SECCIONES */

section{
    padding:72px 0;
}

.section-title{
    text-align:center;
    margin-bottom:16px;
    color:var(--azul);
    font-size:clamp(1.9rem, 3vw, 2.8rem);
}

.section-text{
    text-align:center;
    color:var(--gris);
    max-width:760px;
    margin:0 auto 42px;
    font-size:1.05rem;
}

/* SERVICES */

.services{
    background:var(--gris-claro);
}

.services.novedades{
    background:var(--gris-claro);
}

.novedades .card-year{
    background:#dff3e6;
    color:var(--verde-oscuro);
}

.cards{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:22px;
    align-items:stretch;
}

.cards.cards-4{
    grid-template-columns:repeat(4, 1fr);
    gap:18px;
}

.cards.cards-4 .card-image{
    height:180px;
}

.cards.cards-4 .card-body{
    padding:18px;
}

.cards.cards-4 .card-body h3{
    font-size:1.15rem;
}

.card-link{
    display:flex;
    color:inherit;
}

.card{
    background:#fff;
    border-radius:var(--radio);
    box-shadow:var(--sombra);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    width:100%;
    height:100%;
    transition:.25s ease;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 34px rgba(0,0,0,.14);
}

.card-image{
    height:220px;
    overflow:hidden;
}

.card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.card-body{
    padding:24px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.card-body h3{
    font-size:1.35rem;
    color:var(--verde-oscuro);
    margin-bottom:12px;
}

.card-body p{
    color:#555;
    margin-bottom:14px;
}

.card-body ul{
    padding-left:18px;
    color:#444;
    margin-top:auto;
}

.card-body li{
    margin-bottom:8px;
}

/* EMPRESAS */

.logos-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:22px;
}

.logo-card{
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:18px;
    padding:26px;
    min-height:150px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:14px;
    box-shadow:0 8px 22px rgba(0,0,0,.05);
    transition:.25s ease;
}

.logo-card:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 28px rgba(0,0,0,.09);
}

.logo-card img{
    max-height:54px;
    width:auto;
    object-fit:contain;
}

.logo-card span{
    font-weight:700;
    color:var(--azul);
    text-align:center;
}

/* QUIENES SOMOS */

.about-wrap{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:34px;
    align-items:center;
}

.about-box{
    background:linear-gradient(135deg, #f7fffb 0%, #eef8ff 100%);
    border-radius:24px;
    padding:34px;
    box-shadow:var(--sombra);
}

.about-box h3{
    color:var(--verde-oscuro);
    font-size:1.8rem;
    margin-bottom:16px;
}

.about-box p{
    color:#444;
    margin-bottom:15px;
}

.about-list{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:14px;
    margin-top:22px;
}

.about-item{
    background:#fff;
    border-radius:16px;
    padding:16px;
    border:1px solid #e8efec;
    font-weight:700;
    color:var(--azul);
    text-align:center;
}

.about-image{
    border-radius:24px;
    overflow:hidden;
    min-height:420px;
    box-shadow:var(--sombra);
}

.about-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.about-image img{
    max-width: 220px;   /* ajustá el tamaño que quieras */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* CONTACTO */

.contact{
    background:linear-gradient(135deg, #0d364d 0%, #185e4e 100%);
    color:#fff;
}

.contact .section-title,
.contact .section-text{
    color:#fff;
}

.contact-boxes{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:22px;
}

.contact-box{
    background:rgba(255,255,255,.1);
    border:1px solid rgba(255,255,255,.12);
    border-radius:20px;
    padding:26px;
    backdrop-filter:blur(5px);
}

.contact-box h3{
    margin-bottom:10px;
    font-size:1.2rem;
}

.contact-box p,
.contact-box a{
    color:#eef7ff;
}

.contact-cta{
    text-align:center;
    margin-top:34px;
}

/* ASISTENCIA */

.assist-partners{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:22px;
    max-width:920px;
    margin:0 auto 48px;
}

.assist-partner-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:12px;
    padding:28px 22px;
    border-radius:20px;
    background:#111;
    color:#eee;
    box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.assist-partner-logo{
    width:100%;
    min-height:110px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:4px;
}

.assist-partner-logo img{
    max-width:220px;
    max-height:90px;
    width:auto;
    height:auto;
    object-fit:contain;
}

.assist-partner-card h3{
    margin:0;
    font-size:1.25rem;
    color:#fff;
}

.assist-partner-card p{
    margin:0 0 8px;
    color:#b8c0c8;
    font-size:.95rem;
    line-height:1.5;
    flex:1;
}

.asistencia-grid{
    margin-bottom:28px;
}

.asistencia-nota{
    max-width:820px;
    margin:0 auto;
}

.asistencia-cta{
    margin-top:20px;
}

@media(max-width:700px){
    .assist-partners{
        grid-template-columns:1fr;
    }
}

/* MAPA */

.map-section{
    padding:70px 0;
    background:
        radial-gradient(ellipse at top, rgba(45,179,74,.08), transparent 50%),
        #f3f7f4;
}

.map-frame-wrap{
    border-radius:22px;
    overflow:hidden;
    border:1px solid rgba(20,99,70,.12);
    box-shadow:0 14px 34px rgba(16,40,28,.08);
    background:#fff;
}

.map-frame{
    display:block;
    width:100%;
    height:min(420px, 55vh);
    border:0;
}

.map-actions{
    text-align:center;
    margin-top:22px;
}

/* FOOTER */

footer{
    background:#101418;
    color:#d9dee3;
    padding:28px 0;
}

.footer-main{
    text-align:center;
    margin-bottom:12px;
    color:#fff;
    font-weight:700;
}

.footer-small{
    font-size:.85rem;
    line-height:1.7;
    text-align:center;
    color:#b5bcc3;
}

/* WHATSAPP */

.whatsapp-float{
    position:fixed;
    right:18px;
    bottom:18px;
    width:62px;
    height:62px;
    background:#25D366;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 12px 28px rgba(0,0,0,.28);
    z-index:9999;
    transition:.25s ease;
}

.whatsapp-float:hover{
    transform:scale(1.08);
}

.whatsapp-float svg{
    width:30px;
    height:30px;
    fill:#fff;
}

/* ===== Separadores modernos de sección ===== */
.af-sep{
    display:grid;
    grid-template-columns:minmax(72px,1fr) minmax(240px,560px) minmax(72px,1fr);
    align-items:center;
    gap:10px 18px;
    margin:0 auto 40px;
    max-width:1100px;
}

.af-sep-center{
    text-align:center;
}

.af-sep-topline{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    margin-bottom:14px;
}

.af-sep-line{
    width:min(88px, 18vw);
    height:2px;
    background:repeating-linear-gradient(
        90deg,
        currentColor 0 3px,
        transparent 3px 9px
    );
    color:var(--verde);
    opacity:.55;
}

.af-sep-badge{
    width:54px;
    height:54px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--verde);
    color:#fff;
    box-shadow:0 10px 24px rgba(31,143,99,.25);
}

.af-sep-ico,
.af-sep-ico svg{
    width:22px;
    height:22px;
    display:block;
}

.af-sep-title{
    margin:0 0 8px;
    color:var(--verde-oscuro);
    font-size:clamp(1.65rem, 3.2vw, 2.45rem);
    letter-spacing:.04em;
    text-transform:uppercase;
    font-weight:800;
    line-height:1.15;
}

.af-sep-sub{
    margin:0 auto 14px;
    max-width:460px;
    color:var(--gris);
    font-size:.98rem;
    line-height:1.5;
}

.af-sep-rule{
    display:block;
    width:48px;
    height:4px;
    margin:0 auto;
    border-radius:999px;
    background:var(--verde);
}

.af-sep-rail{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.af-sep-rail--left{ justify-content:flex-end; }
.af-sep-rail--right{ justify-content:flex-start; }

.af-sep-chip{
    width:42px;
    height:42px;
    border-radius:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    color:var(--verde-oscuro);
    border:1px solid rgba(31,143,99,.18);
    box-shadow:0 8px 18px rgba(20,40,30,.06);
}

.af-sep-chip--soft{
    background:rgba(31,143,99,.08);
    border-color:transparent;
    color:var(--verde);
}

.af-sep-dash{
    flex:1;
    height:2px;
    min-width:24px;
    max-width:90px;
    background:repeating-linear-gradient(90deg, rgba(31,143,99,.45) 0 4px, transparent 4px 10px);
}

/* Variantes por sección */
.af-sep--novedades .af-sep-badge{
    background:linear-gradient(145deg, #2db34a, #146346);
}
.af-sep--novedades .af-sep-title{ color:#146346; }

.af-sep--servicios .af-sep-badge{ background:var(--azul); }
.af-sep--servicios .af-sep-title{ color:var(--azul); }
.af-sep--servicios .af-sep-rule{ background:var(--azul); }
.af-sep--servicios .af-sep-line{
    background:repeating-linear-gradient(90deg, var(--azul) 0 3px, transparent 3px 9px);
}
.af-sep--servicios .af-sep-dash{
    background:repeating-linear-gradient(90deg, rgba(15,61,86,.45) 0 4px, transparent 4px 10px);
}
.af-sep--servicios .af-sep-chip{
    color:var(--azul);
    border-color:rgba(15,61,86,.16);
}
.af-sep--servicios .af-sep-chip--soft{
    background:rgba(15,61,86,.08);
    color:var(--azul);
}

.af-sep--empresas .af-sep-badge{ background:#0f3d56; }
.af-sep--empresas .af-sep-title{ color:#0f3d56; }
.af-sep--empresas .af-sep-rule{ background:#0f3d56; }
.af-sep--empresas .af-sep-line{
    background:repeating-linear-gradient(90deg, #0f3d56 0 3px, transparent 3px 9px);
}
.af-sep--empresas .af-sep-dash{
    background:repeating-linear-gradient(90deg, rgba(15,61,86,.4) 0 4px, transparent 4px 10px);
}
.af-sep--empresas .af-sep-chip{ color:#0f3d56; }

.af-sep--contacto .af-sep-badge{ background:#25D366; }
.af-sep--contacto .af-sep-title{ color:#146346; }
.af-sep--contacto .af-sep-rule{ background:#25D366; }
.af-sep--contacto .af-sep-line{
    background:repeating-linear-gradient(90deg, #25D366 0 3px, transparent 3px 9px);
}
.af-sep--contacto .af-sep-dash{
    background:repeating-linear-gradient(90deg, rgba(37,211,102,.5) 0 4px, transparent 4px 10px);
}
.af-sep--contacto .af-sep-chip{ color:#146346; }

@media (max-width: 900px){
    .af-sep{
        grid-template-columns:1fr;
        gap:8px;
        margin-bottom:28px;
    }
    .af-sep-rail{ display:none; }
    .af-sep-line{ width:56px; }
}

@media (max-width: 600px){
    .af-sep-title{ font-size:1.45rem; letter-spacing:.02em; }
    .af-sep-badge{ width:46px; height:46px; }
    .af-sep-sub{ font-size:.92rem; }
}
