body {
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #1c1c1c;
    transition: background-color 0.3s ease, color 0.3s ease;
    
}

/*Boton arriba*/

#myBtn {
    display: none; /* oculto por defecto */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    padding: 10px 15px;
    background-color: #005393;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#myBtn:hover {
    background-color: #003d6b;
}


/*HEADER*/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Asegura que esté por encima de la imagen */
    background-color: transparent; /* Empieza transparente */
    transition: background-color 0.3s ease;
}
header .header {
    width: 100%;
    height: 95px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
}
    
.header-nav{
    margin: 6px;
}
.header-nav a{
    text-decoration: none;
    color: #faf9f6;
    margin: 9px;
    /* font-size: 10px !important; */
}
.header-nav a:hover{
    font-weight: 700;
    border-bottom: solid 1px #faf9f6;
}
.header-actions a{
    text-decoration: none;
    margin: 9px;
    color: #005393;
    font-size: 14px;
}
.header-actions a:hover{
    text-decoration: none;
    color: #e40681;
}



/*FLYER CONTACTO*/

.flyer-contacto{
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #05668d, #028090, #00a896, #02c39a);
    background-size: 400% 400%;
    animation: gradientBG 8s ease infinite;
    grid-template-columns: 1fr auto 1fr;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7.9rem 6rem;
}
.flyer-img{
    width: 38%;
    height: auto;
    margin-top: 6rem;
}

.flyer-img img {
    transition: transform 1s ease, box-shadow 1s ease;
}

.flyer-img img:hover {
    transform: translateY(-6px);
}

.text-contacto{
    margin: 60px 100px 0 100px;
    transition: transform 1s ease, box-shadow 1s ease;
}
.text-contacto a{
    text-decoration: none;
    color: #faf9f6;
    font-weight: 700;
    display: inline-block;
    /* Animación al cargar */
    animation: slideUp 1s ease forwards;
}

/*FORMULARIO CONTACTO*/
.btn-env{
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: auto;
    background-color: #1c1c1c;
}
.btn-env:hover{
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #333333;
    color: #faf9f6;
}

.informacion-contacto h1{
    font-size: 40px;
}
.informacion-contacto p{
    font-size: 18px;
    line-height: 1.6;
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item a { 
    text-decoration: underline;
    color: #005393;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item a:hover {
    color: #003d6b; 
}

.contact-item i {
    font-size: 24px;
    /* color: #005393; */
    margin-right: 10px;

}

/*animacion de fondo gradiante*/
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/*animacion texto contacto*/
@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =============================================
   BLOQUE EXCLUSIVO RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .flyer-contacto {
        padding: 4rem 2rem; /* Reduce el padding excesivo de 7.9rem */
    }
    .text-contacto {
        margin: 20px 20px 0 20px; /* Reduce los márgenes de 100px */
    }
}

@media (max-width: 768px) {
    /* HEADER */
    .header {
        justify-content: space-between;
        padding: 0 20px;
        height: 70px; /* Altura más compacta para móvil */
    }

    /* FLYER CONTACTO */
    .flyer-contacto {
        flex-direction: column; /* Apila los elementos */
        padding: 2rem 1rem;
        height: auto;
        min-height: 250px;
        justify-content: center;
    }

    .flyer-img1, .flyer-img2 {
        display: none !important; /* Oculta las imágenes laterales para que el texto respire */
    }

    .text-contacto {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .text-contacto a {
        font-size: 2.2rem !important; /* Ajusta el tamaño del título principal */
        padding-top: 50px;
    }

    /* MAIN CONTENT */
    main {
        padding: 2rem 1.5rem !important;
    }

    h1#contacto {
        font-size: 2.5rem !important;
        text-align: center;
    }

    /* GRID (Formulario e Información) */
    .grid-cols-1.md\:grid-cols-2 {
        display: flex !important;
        flex-direction: column !important; /* Asegura que el formulario y la info se apilen */
        gap: 2rem;
    }

    /* AJUSTES DE INFORMACIÓN DE CONTACTO */
    .informacion-contacto {
        padding: 1.5rem !important;
    }

    .informacion-contacto h1 {
        font-size: 28px !important; /* Título "Tienes alguna pregunta" más pequeño */
    }

    .informacion-contacto p {
        font-size: 16px !important;
        margin-top: 15px;
    }

    .contact-item span {
        font-size: 14px;
        word-break: break-word; /* Evita que el email largo rompa el diseño */
    }

    /* BOTÓN ENVIAR */
    .btn-env {
        height: 50px; /* Más fácil de tocar en pantallas táctiles */
    }
}


@media (max-width: 480px) {
    .horariosAtencion {
        max-width: 90%;
        padding: 36px 24px 48px;
        border-radius: 28px;
    }

    .horariosAtencion h2 {
        font-size: 22px;
    }

    .horariosAtencion li {
        font-size: 18px;
    }
}


.font-orbitron { 
    font-family: 'Orbitron', sans-serif; 
}
.font-poppins { 
    font-family: 'Poppins', sans-serif; 
}
.text-glow { 
    text-shadow: 0 0 10px rgba(0, 83, 147, 0.3); 
}
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(0, 83, 147, 0.05);
}
.clip-path-slant {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Asegurar que las fuentes y suavizados se vean bien */
html {
    scroll-behavior: smooth;
}
.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}