/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e2a3a;
    background-color: #f9fbfd;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(26, 59, 92, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-menu {
    flex: 1;
}

.nav-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.3rem 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    flex: 0 0 auto;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #f1c40f;
    border-bottom-color: #f1c40f;
}

/* ========== MÓVIL ========== */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0 1rem;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        width: 100%;
        order: 3;
        flex: 1 0 100%;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 30px;
    }
}
/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #1a3b5c 0%, #2a5f7a 100%);
    color: #fff;
    padding: 6rem 0 4rem;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.4rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #f1c40f;
    color: #1a3b5c;
}

.btn-primary:hover {
    background-color: #e0b50b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(241, 196, 15, 0.3);
}
/*botones
.btn-small {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-status {
    background: #4a90e2;
    color: #fff;
}
.btn-status:hover {
    background: #357abd;
}
.btn-delete {
    background: #e74c3c;
    color: #fff;
}
.btn-delete:hover {
    background: #c0392b;
}

/* ===== SECCIONES ===== */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1a3b5c;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #f1c40f;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.bg-light {
    background-color: #f0f4f8;
}

.valores-justificados li {
    text-align: justify;
    text-justify: inter-word;
}

/* ===== CARDS ===== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.8rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #1a3b5c;
}

.card p, .card li {
    font-size: 0.95rem;
    color: #3d4f60;
    
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid #f1c40f;
    overflow: hidden;
}

.team-card-a img {
    max-width: 65%; /* No permite que la imagen sea más ancha que el contenedor */
    max-height: 65%; /* No permite que la imagen sea más alta que el contenedor (opcional, ver abajo) */
    height: auto;     /* Mantiene la proporción de aspecto original al cambiar el ancho */
    display: block;    /* Elimina espacios blancos extraños debajo de la imagen */
    margin: 0 auto 1rem;
    border: 4px solid #f1c40f;
    overflow: hidden;
}

.news-card img {
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

.news-card .date {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* ===== CONTENIDO TEXTO ===== */
.content-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #2d4055;
}

.content-text ul {
    margin: 1.5rem 0;
}

.content-text ul li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.content-text ul li i {
    color: #27ae60;
    font-size: 1.2rem;
}

/* ===== RECURSOS ===== */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.resource-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.resource-item i {
    font-size: 2.2rem;
    color: #4a90e2;
    min-width: 40px;
    text-align: center;
}

.resource-item h4 {
    font-size: 1rem;
    color: #1a3b5c;
}

.resource-item p {
    font-size: 0.9rem;
    color: #5d6f80;
}

.resource-item .btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* ===== FORMULARIO AFILIACIÓN ===== */
.form-afiliacion {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.7rem 1rem;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* ===== DONACIONES ===== */
.donation-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.icon-donation {
    font-size: 3.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.donation-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.btn-donate {
    background: #ecf0f1;
    color: #1a3b5c;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.btn-donate:hover {
    background: #f1c40f;
    border-color: #f1c40f;
    transform: scale(1.05);
}

.donation-message {
    font-size: 1.1rem;
    font-weight: 500;
    color: #27ae60;
    min-height: 2rem;
}

/* ===== ÁREA MIEMBROS ===== */
.member-card {
    text-align: center;
}

.member-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.member-form input[type="text"],
.member-form input[type="file"] {
    padding: 0.6rem 1rem;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    font-size: 0.95rem;
}

.member-form .btn {
    align-self: flex-start;
}

#certResult,
#uploadResult {
    font-size: 0.95rem;
    color: #2d4055;
}

/* ===== CONTACTO Y MAPA ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #1a3b5c;
}

.contact-info p,
.contact-info li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.contact-info i {
    width: 1.6rem;
    color: #4a90e2;
}

.contact-info h4 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
    color: #1a3b5c;
}

.contact-info ul {
    padding-left: 0.5rem;
}

.contact-map {
    height: 100%;
    min-height: 400px;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a3b5c;
    color: #cfddee;
    padding: 2.5rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo i {
    color: #f1c40f;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-icons a {
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    color: #fff;
}

.social-icons a:hover {
    background: #f1c40f;
    color: #1a3b5c;
}


/* ===== zoom  ===== */

.zoom {
    width: 150%;
    height: 150%;
    object-fit: cover;      /* Asegura que cubra el contenedor sin deformarse */
    transition: transform 0.3s ease;
    display: block;
}

/* Zoom al pasar el mouse (sobre la imagen) */
.zoom:hover {
    transform: scale(1.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        width: 100%;
        background: rgba(26, 59, 92, 0.98);
        padding: 1rem 0;
        position: absolute;
        top: 100%;
        left: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .resource-item {
        flex-wrap: wrap;
    }
    .resource-item .btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .donation-options {
        flex-direction: column;
        align-items: center;
    }
    .btn-donate {
        width: 100%;
        max-width: 200px;
    }
    
    /* Botón de WhatsApp */
.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: #fff;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebe5a;
    transform: scale(1.03);
    color: #fff;
}

.btn-whatsapp i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* WhatsApp flotante */
.btn-whatsapp-flotante {
    position:fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    background-color: #25D366;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp-flotante:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.6);
    color: #f0f4f8;
}
  
  /* ============================================
   CARRUSEL DE DESTACADOS
   ============================================ */
.swiper-slide {
    height: auto !important;
}

.swiper-slide .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.swiper-slide .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.swiper-slide .card img {
    border-radius: 12px 12px 0 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: #1a3b5c;
    background: rgba(255,255,255,0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
}

.swiper-pagination-bullet-active {
    background: #f1c40f;
}

@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}
/* ============================================
   FONDO CON IMAGEN PARA TODA LA PÁGINA
   ============================================ */
/* ============================================
   FONDO CON IMAGEN - VERSIÓN DEFINITIVA
   ============================================ */
/* ============================================
   FONDO CON IMAGEN (raíz del sitio)
   ============================================ */
/* ============================================
   FONDO CON IMAGEN - RUTA ABSOLUTA
   ============================================ */
.background-static {
    background-image: url('/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Fondo semitransparente para las secciones */
.section {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);  /* Efecto de desenfoque (opcional) */
    padding: 4rem 0;
    margin: 1rem 0;
    border-radius: 0;
}

/* Si usas secciones con bg-light */
.section.bg-light {
    background: rgba(240, 244, 248, 0.92);
}

/* Para el hero (si lo tienes) */
.hero {
    background: rgba(26, 59, 92, 0.85);
    backdrop-filter: blur(4px);
}

.btn-active {
    background: #f1c40f !important;
    color: #1a3b5c !important;
    font-weight: bold;
    border: 2px solid #d4ac0d;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-grid iframe,
.video-grid video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== RELOJES MUNDIALES - VERSIÓN FUERTE ===== */
#relojesContainer.relojes-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 1.5rem !important;
    justify-items: center !important;
    align-items: start !important;
    width: 100% !important;
}

.reloj-card {
    background: #ffffff;
    padding: 1rem 0.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
    width: 100%;
    max-width: 200px;
    transition: 0.3s;
}

.reloj-card canvas {
    display: block;
    width: 100%;
    max-width: 140px;
    height: auto;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.reloj-card .pais {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a3b5c;
    margin-top: 0.3rem;
}

.reloj-card .hora-texto {
    font-size: 0.8rem;
    color: #5d6f80;
    font-weight: 500;
}
/* medias */
@media (max-width: 480px) {
    #relojesContainer.relojes-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 1rem !important;
    }
    .reloj-card {
        max-width: 150px;
    }
    .reloj-card canvas {
        max-width: 100px;
    }
}

/*mails*/
}

#certEmailContainer {
    margin-top: 0.5rem;
}

#certEmailContainer .btn {
    margin-left: 0.5rem;
}

#certEmailList {
    animation: fadeIn 0.3s ease;
}

/* ===== CARRUSEL DE EQUIPO ===== */
.equipoSwiper .swiper-slide {
    height: auto !important;
}

.equipo-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.equipo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.equipo-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.equipo-card h3 {
    margin: 0.3rem 0;
    font-size: 1.2rem;
    color: #1a3b5c;
}

.equipo-card p {
    margin: 0.2rem 0;
}

.equipo-card .bio {
    flex: 1;
    text-align: left;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #3d4f60;
}

.equipo-card .bio p {
    margin: 0.2rem 0;
    padding-left: 0.5rem;
    border-left: 3px solid #4a90e2;
}

.equipoSwiper .swiper-button-next,
.equipoSwiper .swiper-button-prev {
    color: #1a3b5c;
    background: rgba(255,255,255,0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.equipoSwiper .swiper-button-next::after,
.equipoSwiper .swiper-button-prev::after {
    font-size: 1.2rem;
}

.equipoSwiper .swiper-pagination-bullet-active {
    background: #f1c40f;
}

@media (max-width: 768px) {
    .equipoSwiper .swiper-button-next,
    .equipoSwiper .swiper-button-prev {
        display: none;
    }
}