*{

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}


body{

    background-image: url(../img/fondo.png);
    font-family: 'Century Gothic';
    background-size: cover;

}

header{
    
    background-color: rgb(22, 32, 66);
    margin-right: 35px;
    margin-left: 35px;
    min-height: 100px;
    padding: 15px 30px;
    border-radius: 20px 20px 0 0;

    display: flex;
    align-items: center;
    
}

/* ======================================================
   HEADER
   ====================================================== */



.head-logo{
    flex-shrink: 0;
}

.head-logo a{
    display: block;
}

.head-logo img{
    width: 85px;
    height: 85px;

    display: block;
    object-fit: cover;

    border-radius: 50%;
}

.nv{
    flex: 1;
}

.menu{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.menu li{
    margin: 0;
}

.menu a{
    display: block;

    padding: 10px 5px;

    color: white;

    font-size: 16px;
    text-align: center;
    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.menu a:hover{
    color: #a9c4ff;
    transform: translateY(-2px);
}

.perfil{
    flex-shrink: 0;
}

.perfil-enlace{
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid white;
    border-radius: 50%;

    color: white;
    font-size: 23px;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.perfil-enlace:hover{
    background-color: white;
    color: #172345;
    transform: scale(1.06);
}

/* Oculto en escritorio */

.menu-toggle{
    display: none;

    width: 48px;
    height: 48px;

    align-items: center;
    justify-content: center;

    margin-left: auto;

    border: 2px solid white;
    border-radius: 12px;

    background-color: transparent;
    color: white;

    font-size: 22px;
    cursor: pointer;
}

@media (max-width: 950px){

    .header{
        flex-wrap: wrap;
        gap: 12px;

        min-height: auto;
        padding: 12px 18px;
    }

    .head-logo img{
        width: 68px;
        height: 68px;
    }

    .menu-toggle{
        display: flex;
    }

    .perfil{
        margin-left: 0;
    }

    .perfil-enlace{
        width: 46px;
        height: 46px;
    }

    .nv{
        width: 100%;
        flex-basis: 100%;

        max-height: 0;
        overflow: hidden;

        opacity: 0;

        transition:
            max-height 0.4s ease,
            opacity 0.3s ease;
    }

    .nv.activo{
        max-height: 420px;
        opacity: 1;
    }

    .menu{
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding-top: 8px;
    }

    .menu li{
        width: 100%;
    }

    .menu a{
        width: 100%;

        padding: 14px 12px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.16);

        text-align: left;
    }

    .menu li:last-child a{
        border-bottom: none;
    }
}

@media (max-width: 480px){

    .header{
        width: calc(100% - 16px);
        padding: 10px 12px;

        border-radius: 16px 16px 0 0;
    }

    .head-logo img{
        width: 57px;
        height: 57px;
    }

    .menu-toggle,
    .perfil-enlace{
        width: 42px;
        height: 42px;
    }

    .menu-toggle{
        font-size: 19px;
    }

    .perfil-enlace{
        font-size: 19px;
    }

    .menu a{
        padding: 12px 10px;
        font-size: 14px;
    }
}

/* ======================================================
   SECCIÓN DE DONACIONES
   ====================================================== */

.donaciones{
    margin-right: 35px;
    margin-left: 35px;
    color: #172345;
    background-color: rgba(200, 217, 230, 0.918)
}

.encabezado-donaciones{
    max-width: 820px;
    margin: 0 auto 45px;
    text-align: center;
}

.encabezado-donaciones h1{
    margin: 0 0 15px;
    font-size: clamp(34px, 5vw, 50px);
}

.encabezado-donaciones p{
    margin: 0;

    color: #4f5f78;
    font-size: 17px;
    line-height: 1.7;
}

.contenedor-tarjetas-donacion{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.tarjeta-donacion{
    display: flex;
    flex-direction: column;
    overflow: hidden;

    border-radius: 25px;
    background-color: rgba(210, 226, 240, 0.96);

    box-shadow: 0 14px 35px rgba(23, 35, 69, 0.16);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.tarjeta-donacion:hover{
    transform: translateY(-7px);

    box-shadow: 0 20px 45px rgba(23, 35, 69, 0.22);
}

.imagen-donacion{
    position: relative;
    height: 260px;
    overflow: hidden;
}

.imagen-donacion::after{
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(12, 28, 70, 0.65),
        transparent 55%
    );
}

.imagen-donacion img{
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    transition: transform 0.45s ease;
}

.tarjeta-donacion:hover .imagen-donacion img{
    transform: scale(1.06);
}

.tipo-donacion{
    position: absolute;
    left: 24px;
    bottom: 20px;

    z-index: 2;

    padding: 8px 14px;

    border-radius: 20px;

    background-color: rgba(255, 255, 255, 0.9);
    color: #172345;

    font-size: 13px;
    font-weight: 700;
}

.contenido-donacion{
    position: relative;

    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 34px;
}

.icono-donacion{
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: -65px;
    margin-bottom: 22px;

    border: 5px solid #d2e2f0;
    border-radius: 50%;

    background-color: #172345;
    color: white;

    font-size: 25px;

    z-index: 3;
}

.contenido-donacion h2{
    margin: 0 0 14px;
    font-size: 27px;
}

.contenido-donacion > p{
    margin: 0 0 22px;

    color: #465875;
    line-height: 1.65;
}

.contenido-donacion h3{
    margin: 0 0 14px;
    font-size: 18px;
}

.lista-beneficios{
    margin: 0 0 25px;
    padding: 0;

    list-style: none;
}

.lista-beneficios li{
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 12px;

    color: #344665;
    line-height: 1.4;
}

.lista-beneficios i{
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background-color: #172345;
    color: white;

    font-size: 11px;
}

.beneficio-donante{
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-top: auto;
    margin-bottom: 24px;
    padding: 17px;

    border-left: 5px solid #315eae;
    border-radius: 11px;

    background-color: rgba(255, 255, 255, 0.68);
}

.beneficio-donante > i{
    margin-top: 3px;

    color: #315eae;
    font-size: 20px;
}

.beneficio-donante strong{
    display: block;
    margin-bottom: 5px;
}

.beneficio-donante p{
    margin: 0;

    color: #465875;
    font-size: 14px;
    line-height: 1.5;
}

.boton-apoyar{
    width: 100%;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 14px 20px;

    border-radius: 13px;

    background-color: #172345;
    color: white;

    font-weight: 700;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.boton-apoyar:hover{
    background-color: #315eae;
    transform: translateY(-2px);
}

.aviso-donaciones{
    display: flex;
    align-items: flex-start;
    gap: 13px;

    max-width: 1000px;

    margin: 35px auto 0;
    padding: 18px 22px;

    border-radius: 14px;

    background-color: rgba(210, 226, 240, 0.95);
    color: #344665;
}

.aviso-donaciones i{
    margin-top: 3px;

    color: #315eae;
    font-size: 20px;
}

.aviso-donaciones p{
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 900px){

    .contenedor-tarjetas-donacion{
        grid-template-columns: 1fr;
    }

    .tarjeta-donacion{
        max-width: 680px;
        margin: 0 auto;
    }
}

@media (max-width: 520px){

    .donaciones{
        width: 92%;
    }

    .contenido-donacion{
        padding: 27px 21px;
    }

    .imagen-donacion{
        height: 220px;
    }

    .contenido-donacion h2{
        font-size: 23px;
    }

    .aviso-donaciones{
        padding: 16px;
    }
}

/* ======================================================
   PIE DE PÁGINA
   ====================================================== */

.boton-chat{
    position: fixed;
    right: 30px;
    bottom: 30px;

    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #172345;
    color: white;

    border-radius: 50%;
    text-decoration: none;
    font-size: 28px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);

    z-index: 1000;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.boton-chat:hover{
    background-color: #2b427a;
    transform: scale(1.1);
}

.notificacion-chat{
    position: absolute;
    top: -3px;
    right: -3px;

    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #e63946;
    color: white;

    border: 2px solid white;
    border-radius: 50%;

    font-size: 12px;
    font-weight: bold;
}

.texto-chat{
    position: absolute;
    right: 78px;

    width: max-content;
    padding: 8px 13px;

    background-color: #172345;
    color: white;

    border-radius: 8px;

    font-size: 14px;

    opacity: 0;
    visibility: hidden;

    transition: 0.3s ease;
}

.boton-chat:hover .texto-chat{
    opacity: 1;
    visibility: visible;
}

.chat-burbuja{
    position: fixed;
    right: 28px;
    bottom: 28px;

    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background-color: #172345;
    color: white;

    font-size: 27px;
    cursor: pointer;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);

    z-index: 1100;

    transition: 0.3s ease;
}

.chat-burbuja:hover{
    transform: scale(1.08);
    background-color: #294077;
}

.chat-ventana{
    position: fixed;
    right: 28px;
    bottom: 105px;

    width: 380px;
    height: 540px;

    display: none;
    flex-direction: column;

    overflow: hidden;

    border-radius: 18px;
    background-color: #f4f8fc;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);

    z-index: 1099;
}

.chat-ventana.activo{
    display: flex;
}

.chat-header{
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 18px;

    background-color: #172345;
    color: white;
}

.chat-identidad{
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar{
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background-color: white;
    color: #172345;

    font-size: 21px;
}

.chat-identidad h3{
    margin: 0;
    font-size: 17px;
}

.chat-identidad span{
    font-size: 12px;
    opacity: 0.8;
}

.cerrar-chat{
    border: none;
    background: transparent;
    color: white;

    font-size: 22px;
    cursor: pointer;
}

.chat-mensajes{
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 18px;
    overflow-y: auto;
}

.mensaje{
    max-width: 80%;
    padding: 11px 14px;

    border-radius: 14px;

    font-size: 14px;
    line-height: 1.4;
}

.mensaje.recibido{
    align-self: flex-start;

    background-color: white;
    color: #252525;

    border-bottom-left-radius: 4px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mensaje.enviado{
    align-self: flex-end;

    background-color: #93b4ff;
    color: #10204d;

    border-bottom-right-radius: 4px;
}

.mensaje img{
    width: 100%;
    max-width: 220px;

    display: block;

    border-radius: 10px;
    margin-top: 8px;
}

.chat-herramientas{
    display: flex;
    gap: 10px;

    padding: 8px 15px 0;
}

.chat-opcion{
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background-color: #dce8ff;
    color: #172345;

    font-size: 17px;
    cursor: pointer;

    transition: 0.2s ease;
}

.chat-opcion:hover{
    background-color: #bfd2ff;
}

.chat-formulario{
    display: flex;
    align-items: flex-end;
    gap: 10px;

    padding: 12px 15px 15px;
}

.chat-formulario textarea{
    flex: 1;
    min-height: 45px;
    max-height: 100px;

    resize: none;

    padding: 12px 14px;

    border: 1px solid #ccd5e0;
    border-radius: 14px;

    font-family: inherit;
    font-size: 14px;

    outline: none;
}

.chat-formulario textarea:focus{
    border-color: #6c96ef;
}

.enviar-mensaje{
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background-color: #172345;
    color: white;

    font-size: 18px;
    cursor: pointer;
}

.vista-previa,
.ubicacion-seleccionada{
    display: none;
    align-items: center;
    gap: 10px;

    margin: 8px 15px 0;
    padding: 8px 10px;

    border-radius: 10px;
    background-color: #e8f0ff;
}

.vista-previa.activo,
.ubicacion-seleccionada.activo{
    display: flex;
}

.vista-previa img{
    width: 60px;
    height: 60px;

    object-fit: cover;
    border-radius: 8px;
}

.vista-previa button,
.ubicacion-seleccionada button{
    margin-left: auto;

    border: none;
    background: transparent;

    color: #a00000;
    cursor: pointer;
}

@media (max-width: 480px){

    .chat-ventana{
        right: 10px;
        bottom: 90px;

        width: calc(100% - 20px);
        height: 70vh;
    }

    .chat-burbuja{
        right: 18px;
        bottom: 18px;
    }
}

.pie{

    background-color: rgb(22, 32, 66);
    margin-right: 35px;
    margin-left: 35px;
    min-height: 100px;
    padding: 15px 30px;
    border-radius: 0 0 20px 20px;
    color: #fff;

    display: flex;
    align-items: center;

}

.solo-admin{
    display: none;
}

.solo-admin.visible{
    display: block;
}