*{

    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;
    }
}

.pagina-donacion-economica{
    background-color: rgba(200, 217, 230, 0.918);
    margin-right: 35px;
    margin-left: 35px;
    padding: 12px 10px;
    color: #172345;
}

.encabezado-donacion{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 25px;
}

.subtitulo-donacion{
    display: inline-block;
    margin-bottom: 7px;

    color: #315eae;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.encabezado-donacion h1{
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 50px);
}

.encabezado-donacion p{
    max-width: 720px;
    margin: 0;

    color: #52627c;
    line-height: 1.6;
}

.aviso-pago-demostracion{
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-bottom: 25px;
    padding: 17px 20px;

    border-left: 5px solid #315eae;
    border-radius: 13px;

    background-color: rgba(210, 226, 240, 0.96);
    color: #40516f;
}

.aviso-pago-demostracion i{
    margin-top: 3px;

    color: #315eae;
    font-size: 20px;
}

.aviso-pago-demostracion strong{
    display: block;
    margin-bottom: 4px;
}

.aviso-pago-demostracion p{
    margin: 0;
    line-height: 1.5;
}

.formulario-donacion-economica{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.montos-donacion{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    margin-bottom: 22px;
}

.boton-monto{
    padding: 15px 10px;

    border: 2px solid #172345;
    border-radius: 12px;

    background-color: transparent;
    color: #172345;

    font-family: inherit;
    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.25s ease;
}

.boton-monto:hover,
.boton-monto.activo{
    background-color: #172345;
    color: white;
}

.campo-monto-personalizado{
    max-width: 430px;
    margin: 0 auto;
}

.entrada-monto{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;

    padding: 0 14px;

    border: 2px solid transparent;
    border-radius: 12px;

    background-color: white;
}

.entrada-monto:focus-within{
    border-color: #315eae;

    box-shadow: 0 0 0 4px rgba(49, 94, 174, 0.13);
}

.entrada-monto input{
    border: none;
    box-shadow: none !important;
    padding-left: 0;
    padding-right: 0;
}

.entrada-monto span{
    color: #60718b;
    font-weight: 700;
}

.contenedor-tarjeta-pago{
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) 1.1fr;
    align-items: center;
    gap: 32px;
}

.vista-tarjeta{
    min-height: 230px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 25px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #172345,
            #315eae
        );

    color: white;

    box-shadow: 0 15px 35px rgba(23, 35, 69, 0.27);
}

.encabezado-vista-tarjeta,
.pie-vista-tarjeta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.encabezado-vista-tarjeta{
    font-weight: 700;
    letter-spacing: 1px;
}

.encabezado-vista-tarjeta i{
    font-size: 28px;
}

.numero-vista-tarjeta{
    margin: 32px 0;

    font-size: clamp(21px, 3vw, 29px);
    letter-spacing: 2px;
}

.pie-vista-tarjeta > div{
    min-width: 0;
}

.pie-vista-tarjeta span,
.pie-vista-tarjeta strong{
    display: block;
}

.pie-vista-tarjeta span{
    margin-bottom: 4px;

    font-size: 10px;
    opacity: 0.75;
}

.pie-vista-tarjeta strong{
    overflow: hidden;

    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.campos-tarjeta{
    min-width: 0;
}

.cuadricula-tarjeta{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.resumen-donacion{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;

    padding: 23px;

    border-radius: 18px;

    background-color: #172345;
    color: white;
}

.resumen-donacion > div{
    padding: 4px 12px;
}

.resumen-donacion span,
.resumen-donacion strong{
    display: block;
}

.resumen-donacion span{
    margin-bottom: 6px;

    color: #bcd0ff;
    font-size: 12px;
}

.resumen-donacion strong{
    font-size: 18px;
}

.confirmaciones-donacion{
    padding: 20px;

    border-radius: 15px;

    background-color: rgba(210, 226, 240, 0.96);
}

.confirmacion-donacion{
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: #40516f;
    line-height: 1.5;

    cursor: pointer;
}

.confirmacion-donacion input{
    margin-top: 4px;
    accent-color: #172345;
}

.acciones-formulario-donacion{
    display: flex;
    justify-content: flex-end;
    gap: 13px;
}

.boton-cancelar-donacion,
.boton-confirmar-donacion{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 13px 22px;

    border-radius: 12px;

    font-family: inherit;
    font-weight: 700;
    text-decoration: none;

    cursor: pointer;
}

.boton-cancelar-donacion{
    border: 2px solid #172345;

    color: #172345;
}

.boton-confirmar-donacion{
    border: none;

    background-color: #172345;
    color: white;
}

@media (max-width: 780px){

    .encabezado-donacion{
        align-items: stretch;
        flex-direction: column;
    }

    .contenedor-tarjeta-pago{
        grid-template-columns: 1fr;
    }

    .vista-tarjeta{
        width: min(500px, 100%);
        margin: 0 auto;
    }

    .resumen-donacion{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px){

    .montos-donacion{
        grid-template-columns: repeat(2, 1fr);
    }

    .cuadricula-tarjeta{
        grid-template-columns: 1fr;
    }

    .acciones-formulario-donacion{
        flex-direction: column-reverse;
    }
}

/* ======================================================
   CHAT
   ====================================================== */

.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;

}

/* ======================================================
   BASE DE FORMULARIOS
   ====================================================== */

.bloque-formulario{
    padding: 30px;
    border-radius: 22px;
    background-color: rgba(210, 226, 240, 0.96);
    box-shadow: 0 10px 28px rgba(23, 35, 69, 0.12);
}

.titulo-bloque-formulario{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

.icono-bloque{
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;
    background-color: #172345;
    color: white;

    font-size: 20px;
}

.titulo-bloque-formulario h2{
    margin: 0 0 4px;
    color: #172345;
    font-size: 25px;
}

.titulo-bloque-formulario p{
    margin: 0;
    color: #60708b;
    font-size: 14px;
}

.cuadricula-formulario{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.grupo-campo{
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.grupo-campo label{
    display: block;
    margin-bottom: 7px;

    color: #172345;
    font-size: 14px;
    font-weight: 700;
}

.grupo-campo input,
.grupo-campo select,
.grupo-campo textarea{
    width: 100%;
    min-height: 46px;

    padding: 11px 14px;

    border: 2px solid transparent;
    border-radius: 11px;

    background-color: white;
    color: #172345;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.grupo-campo textarea{
    min-height: 110px;
    resize: vertical;
}

.grupo-campo input:focus,
.grupo-campo select:focus,
.grupo-campo textarea:focus{
    border-color: #315eae;
    box-shadow: 0 0 0 4px rgba(49, 94, 174, 0.13);
}

.campo-completo{
    grid-column: 1 / -1;
}

.mensaje-error{
    display: block;
    min-height: 17px;
    margin-top: 5px;

    color: #b3261e;
    font-size: 12px;
}

.campo-error{
    border-color: #b3261e !important;
    box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.11) !important;
}

@media (max-width: 700px){

    .cuadricula-formulario{
        grid-template-columns: 1fr;
    }

    .campo-completo{
        grid-column: auto;
    }

    .bloque-formulario{
        padding: 22px;
    }
}

/* =======================
   BOTÓN REGRESAR
======================= */

.boton-regresar{

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 22px;

    background: #172345;
    color: white;

    border: 2px solid #172345;
    border-radius: 12px;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    transition: .3s;

    cursor: pointer;
}

.boton-regresar:hover{

    background: white;
    color: #172345;

    transform: translateY(-2px);

}

.solo-admin{
    display: none;
}

.solo-admin.visible{
    display: block;
}