/* Hero Parallax */
/* PORTADA DEL INICION - FUNDACIÓN */
.hero {
    min-height: 75svh;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    /*background: linear-gradient(180deg, #fff9ed 0%, #eaf4fb 100%);*/
}

/*
.hero .wrap {
    position: relative;
    z-index: 2;
}
    */

.hero p {
    margin: 1.2rem 0 2rem;
}

/*

.layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    will-change: transform;
    z-index: 1;
}

.l1 {
    width: 46vw;
    height: 46vw;
    right: -8vw;
    top: 8vh;
    background: radial-gradient(circle at 30% 30%, #9fd8ee, var(--cielo));
    opacity: .35;
}

.l2 {
    width: 22vw;
    height: 22vw;
    right: 16vw;
    bottom: 6vh;
    background: var(--dorado);
    opacity: .45;
}

.l3 {
    width: 12vw;
    height: 12vw;
    left: 6vw;
    bottom: 10vh;
    background: var(--amarillo);
    opacity: .5;
}

*/

/* LOGO DE LA CASA DE LA DIABETES */
.house {
    position: absolute;
    right: 8vw;
    top: 16vw;
    width: min(30vw, 320px);
    z-index: 1;
    will-change: transform;
}


.chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Galería */
.gal {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 16/8;
    background: #cfe6f2;
    box-shadow: var(--sombra);
}

/* Color base por defecto para todas las provincias del mapa al cargar */
#ecuador-map path {
    fill: #e2e8f0; /* Un gris muy claro o #ffffff para blanco total */
    stroke: #ffffff; /* Borde blanco entre provincias para que se distingan */
    stroke-width: 1px;
    transition: fill 0.3s ease; /* Transición suave si usas interactividad */
}

.gal .bg {
    position: absolute;
    inset: -30px;
    filter: blur(28px) saturate(1.2);
    opacity: .9;
    transition: background .6s;
}

.gal .slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.gal .photo {
    width: min(46%, 420px);
    aspect-ratio: 1;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(5, 69, 117, .3);
    display: grid;
    place-items: center;
    font-weight: 800;
    text-align: center;
    padding: 16px;
    color: #fff;
}

.gal .cap {
    position: absolute;
    left: 28px;
    bottom: 22px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
    font-weight: 800;
}

.gal .count {
    position: absolute;
    right: 28px;
    top: 22px;
    background: rgba(255, 255, 255, .85);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.gal button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--sombra);
    color: var(--marino);
}

.gal .prev {
    left: 18px;
}

.gal .next {
    right: 18px;
}

@media (max-width: 700px) {
    .gal {
        aspect-ratio: 4/5;
    }
    
    .gal .photo {
        width: 70%;
    }
}

/* Calendario */
.cal {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 26px;
}

@media (max-width: 860px) {
    .cal {
        grid-template-columns: 1fr;
    }
}

.calhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.calhead button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #e9f3fa;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--marino);
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.dow {
    text-align: center;
    font-weight: 800;
    font-size: .8rem;
    opacity: .7;
    padding: 4px 0;
}

.day {
    aspect-ratio: 1;
    border-radius: 14px;
    border: 0;
    background: #faf5e8;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    color: var(--marino);
}

.day:hover {
    background: #e9f3fa;
}

.day.today {
    outline: 2px solid var(--azul);
}

.day.sel {
    background: var(--azul);
    color: #fff;
}



.day.sel.has::after {
    background: var(--amarillo);
}

.day.empty {
    visibility: hidden;
}

.ev {
    border-left: 6px solid var(--dorado);
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

/* Mapa y Segmentos */
.map {
    aspect-ratio: 4/3;
    border-radius: var(--r);
    background: linear-gradient(135deg, #dff0f8, #eaf4fb);
    position: relative;
    overflow: hidden;
}

.seg {
    display: inline-flex;
    background: #e9f3fa;
    border-radius: 999px;
    padding: 4px;
}

.seg button {
    border: 0;
    background: transparent;
    padding: 8px 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    color: var(--marino);
}

.seg button[aria-pressed=true] {
    background: var(--azul);
    color: #fff;
}

/* Catálogo: Panel flotante de pedidos */
#order {
    position: fixed;
    right: 18px;
    bottom: 76px;
    z-index: 90;
    width: min(360px, 92vw);
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--sombra);
    padding: 20px;
    display: none;
}

#order.open {
    display: block;
}

#order .ev {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.aud {
    border-top: 6px solid var(--azul);
}

.aud.pro {
    border-top-color: var(--amarillo);
}