/* ========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
======================================== */
:root {
    --color-primary: #4F17A8;
    --color-secondary: #3FC0F0;
    --color-accent: #FF610F;
    --gradient-morado: linear-gradient(135deg, #4F17A8 0%, #2a0c5a 50%, #15062b 100%);
    --gradient-morado-suave: linear-gradient(135deg, #4F17A8 0%, #2a0c5a 100%);
    --gradient-celeste: linear-gradient(135deg, #3FC0F0 0%, #1a6c8c 50%, #0b2e3a 100%);
    --gradient-celeste-suave: linear-gradient(135deg, #3FC0F0 0%, #1a6c8c 100%);
    --gradient-naranja: linear-gradient(135deg, #FF610F 0%, #993707 50%, #3d1603 100%);
    --gradient-primary: linear-gradient(45deg, #4F17A8 0%, #2a0c5a 100%);
    --gradient-accent-highlight: linear-gradient(135deg, #FF610F 0%, #4F17A8 100%);
    --gradient-dark: linear-gradient(to bottom, #15062b, #2a0c5a);
    --color-white: #ffffff;
    --color-light-bg: #f8f9fa;
    --color-text-dark: #040404;
    --color-text-medium: #555555;
    --color-text-light: #d5d5d5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(79, 23, 168, 0.15);
    --shadow-lg: 0 10px 25px rgba(79, 23, 168, 0.2);
    --shadow-xl: 0 15px 35px rgba(79, 23, 168, 0.25);
    --shadow-celeste: 0 8px 20px rgba(63, 192, 240, 0.3);
    --shadow-naranja: 0 8px 20px rgba(255, 97, 15, 0.4);
    --spacing-xs: 8px;
    --spacing-sm: 15px;
    --spacing-md: 30px;
    --spacing-lg: 50px;
    --spacing-xl: 80px;
    --spacing-2xl: 100px;
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.4s ease;
}

/* ========================================
   ESTILOS GENERALES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   BARRA SUPERIOR
======================================== */
.topbar {
    background: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-lg);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: var(--shadow-sm);
}

.topbar-left a {
    color: var(--color-text-dark);
    text-decoration: none;
    margin-right: 10px;
    font-size: 1.2em;
    transition: var(--transition-fast);
}

.topbar-left a:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.topbar-right {
    display: flex;
    align-items: center;
    font-size: 0.95em;
}

.topbar-right .separator {
    margin: 0 var(--spacing-xs);
    color: #777;
}

.topbar-right .contact-link {
    color: #3FC0F0;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.topbar-right .contact-link:hover {
    color: #1a6c8c;
    text-decoration: underline;
}

/* ========================================
   NAVBAR PRINCIPAL
======================================== */
.menu-toggle {
    display: none;
}

.navbar {
    background: var(--gradient-primary);
    padding: 12px var(--spacing-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 50px;
    vertical-align: middle;

}

.a-img-nav {
    padding: 0;
    margin: 0;
    align-items: center;
}

.menu-icon {
    display: none;
    font-size: 2em;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: var(--transition-fast);
}

.menu a:hover {
    color: #3FC0F0;
}

.menu li a.active,
.menu li.active>.dropdown-toggle {
    color: var(--color-secondary);
    font-weight: 700;
    border-bottom: 2px solid var(--color-secondary);
}

.btn-hazte {
    background: #3FC0F0;
    color: var(--color-white);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    transition: var(--transition-base);
}

.btn-hazte:hover {
    background: #FF610F;
    color: var(--color-white);
    box-shadow: var(--shadow-naranja);
    transform: translateY(-2px);
}

/* ========================================
   HERO PRINCIPAL
======================================== */
.hero {
    color: #EAF6FB;
    position: relative;
    overflow: hidden;
    background: radial-gradient(1000px 600px at -10% -10%, rgba(108, 190, 222, .28) 0%, transparent 60%),
        radial-gradient(700px 500px at 110% 20%, rgba(68, 120, 155, .35) 0%, transparent 55%),
        linear-gradient(135deg, #0B1A24 0%, #0E2531 40%, #0C3442 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    opacity: 0.6;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    filter: saturate(110%) contrast(105%);
    z-index: 0;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1;
}

.decor {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.decor--tri-1 {
    right: -120px;
    top: -80px;
    width: 360px;
    height: 360px;
    transform: rotate(18deg);
    background: linear-gradient(135deg, rgba(108, 190, 222, .22), rgba(255, 255, 255, .06));
    clip-path: polygon(0 0, 100% 0, 0 100%);
    filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, .12);
    animation: float 8s ease-in-out infinite;
}

.decor--tri-2 {
    left: -160px;
    bottom: -120px;
    width: 420px;
    height: 420px;
    transform: rotate(-22deg);
    background: linear-gradient(135deg, rgba(68, 120, 155, .22), rgba(255, 255, 255, .04));
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    animation: float 10s ease-in-out infinite reverse;
}

.hero-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-copy h1 {
    margin: 0.25rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
}

.eyebrow {
    display: inline-block;
    font-weight: 900px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 30px;
    color: var(--color-secondary, #3FC0F0);
    margin-bottom: 0.5rem;
}

.txt-gradient {
    background: linear-gradient(90deg, #BFE9F7, #6CBEDE);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 1.15rem;
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn--primary {
    background: var(--color-primary, #4F17A8);
    color: #fff;
}

.btn--primary:hover {
    background: #50A7C8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(63, 192, 240, 0.3);
}

.btn--secondary {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, .22);
    transform: translateY(-2px);
}

.counter {
    display: flex;
    gap: 20px;
    padding: 20px 32px;
    border-radius: 14px;
    margin-top: 28px;
    justify-content: center;
}

.counter>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.counter .num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-secondary, #3FC0F0);
}

.counter small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #B9D6E3;
    margin-top: 6px;
    font-weight: 600;
}

.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.hero-card {
    padding: 16px;
    border-radius: 14px;
    margin-left: 50px;

    /* Centrado con Flexbox */
    display: flex;
    flex-direction: column;
    /* Para que los elementos se apilen verticalmente */
    justify-content: center;
    /* Centra verticalmente */
    align-items: center;
    /* Centra horizontalmente */
    text-align: center;
    /* Centra el texto y otros contenidos inline */
}


.hero-card figure {
    margin: 0;
}

.hero-card img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.hero-card-body {
    padding: 14px;
}

.hero-card-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.hero-card-body .muted {
    color: #B9D6E3;
    font-size: 0.9rem;
}

.hero-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
    padding: 0 14px 14px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(18deg);
    }

    50% {
        transform: translateY(-20px) rotate(18deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   QUIÉNES SOMOS
======================================== */
.quienes-somos {
    background: var(--color-light-bg);
    text-align: center;
    padding: var(--spacing-xl) 20px;
}

.quienes-somos h2 {
    color: #3FC0F0;
    font-size: 2.5em;
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.quienes-somos h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #3FC0F0 0%, #1a6c8c 100%);
    margin: var(--spacing-xs) auto 0;
    border-radius: 3px;
}

.quienes-somos .descripcion {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-dark);
    font-size: 1.1em;
    line-height: 1.8;
}

.cards {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--gradient-dark);
    color: var(--color-white);
    border-radius: 20px;
    width: 300px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(63, 192, 240, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(63, 192, 240, 0.4);
}

.icono-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    transition: var(--transition-base);
}

.card:hover .icono-img {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--color-white);
    font-weight: 700;
}

.card p {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* ========================================
   ESTILOS COMPARTIDOS PARA SECCIONES
======================================== */
.eventos,
.noticias {
    background: var(--color-light-bg);
    padding: var(--spacing-2xl) 20px;
}

.container-eventos,
.container-noticias,
.container-formacion {
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-eventos,
.titulo-noticias,
.formacion-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: 40px;
}

.titulo-eventos h2,
.titulo-noticias h2,
.formacion-header h2 {
    font-size: 2.5em;
    font-weight: 800;
    line-height: 1.2;
    border-right: 4px solid;
    padding-right: 20px;
}

.titulo-eventos h2,
.titulo-noticias h2 {
    color: #4F17A8;
    border-color: #4F17A8;
}

.formacion-header h2 {
    color: #3FC0F0;
    border-color: #3FC0F0;
}

.titulo-eventos span,
.titulo-noticias span {
    display: block;
}

.titulo-eventos p,
.titulo-noticias p,
.formacion-header p {
    flex: 1;
    min-width: 300px;
    font-size: 1.05em;
    line-height: 1.7;
    color: #040404;
    padding-left: 18px;
    text-align: justify;
}

/* ========================================
   FILTROS COMPARTIDOS
======================================== */
.filtros,
.filtros-noticias,
.filtros-formacion {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
    justify-content: center;
}

.filtros button {
    background: var(--gradient-morado-suave);
    color: var(--color-white);
    border: none;
    border-radius: 25px;
    padding: 12px 28px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.filtros button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 97, 15, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filtros button:hover::before {
    width: 300px;
    height: 300px;
}

.filtros button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-naranja);
}

.filtros-noticias button,
.filtros-formacion button {
    background: var(--gradient-celeste-suave);
    color: var(--color-white);
    border: none;
    border-radius: 25px;
    padding: 12px 28px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow-celeste);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.filtros-noticias button::before,
.filtros-formacion button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 97, 15, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filtros-noticias button:hover::before,
.filtros-formacion button:hover::before {
    width: 300px;
    height: 300px;
}

.filtros-noticias button:hover,
.filtros-formacion button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-naranja);
}

.filtros button.activo {
    background: var(--gradient-naranja);
    box-shadow: var(--shadow-naranja);
    transform: scale(1.05);
}

/* ========================================
   TARJETAS COMPARTIDAS
======================================== */
.cards-eventos,
.cards-noticias,
.cards-formacion {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.card-evento,
.card-noticia,
.card-formacion {
    background: var(--gradient-dark);
    border-radius: 25px;
    padding: 20px;
    color: var(--color-white);
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    width: 100%;
    max-width: 350px;
    flex: 0 0 auto;
}

.card-evento:hover,
.card-noticia:hover,
.card-formacion:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(63, 192, 240, 0.4);
}

.card-evento .fecha,
.card-noticia .fecha,
.card-formacion .fecha {
    display: inline-block;
    border: 2px solid #FF610F;
    background: rgba(255, 97, 15, 0.1);
    border-radius: 25px;
    padding: 6px 14px;
    font-size: 0.85em;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: #FF610F;
}

.card-evento img,
.card-noticia img,
.card-formacion img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-base);
}

.card-evento:hover img,
.card-noticia:hover img,
.card-formacion:hover img {
    transform: scale(1.05);
}

.card-evento h3,
.card-noticia h3,
.card-formacion h3 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
}

.card-evento p,
.card-noticia p,
.card-formacion p {
    font-size: 0.9em;
    color: var(--color-text-light);
    line-height: 1.5;
}

.btn-evento,
.btn-card {
    display: inline-block;
    background: var(--gradient-naranja);
    color: var(--color-white);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: var(--spacing-sm);
    box-shadow: var(--shadow-naranja);
    transition: var(--transition-base);
}

.btn-evento:hover,
.btn-card:hover {
    background: var(--gradient-celeste-suave);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-celeste);
}

/* ========================================
   FORMACIÓN ESPECÍFICA
======================================== */
.container-formacion {
    padding: var(--spacing-2xl) 20px;
}

/* ========================================
   CTA Y VOLUNTARIADO
======================================== */
.cta,
.voluntariado {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    border-radius: 40px;
    margin: var(--spacing-lg) auto;
    max-width: 1200px;
    text-align: center;
    padding: 150px 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    scroll-margin-top: 80px;
}

.cta {
    background-image: url("../img/recursos/morado.png");
}

.voluntariado {
    background-image: url("../img/recursos/celeste.png");
}

.cta-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 80%;
    background: rgba(5, 7, 12, 0.5);
    border-radius: 20px;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(2px);
}

.cta-content,
.voluntariado-content {
    position: relative;
    z-index: 1;
}

.cta h2,
.voluntariado h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.cta p,
.voluntariado p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;

}

.cta-buttons,
.voluntariado-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta,
.btn-vol {
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--gradient-morado-suave);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #FF610F;
    transform: translateY(-3px);
    box-shadow: var(--shadow-naranja);
}

.btn-secondary,
.btn-blanco {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #4F17A8;
    border: 2px solid #4F17A8;
}

.btn-secondary:hover,
.btn-blanco:hover {
    background: #FF610F;
    color: var(--color-white);
    border-color: #FF610F;
    transform: translateY(-3px);
    box-shadow: var(--shadow-naranja);
}

.btn-azul {
    background: var(--gradient-celeste-suave);
    color: var(--color-white);
}

.btn-azul:hover {
    background: #FF610F;
    transform: translateY(-3px);
    box-shadow: var(--shadow-naranja);
}

/* ========================================
   CONTACTO
======================================== */
.contacto {
    padding: var(--spacing-xl) 20px;
    background-color: var(--color-light-bg);
    text-align: center;
}

.titulo-contacto {
    font-size: 2.8em;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 40px;
    position: relative;
}

.titulo-contacto::after {
    content: "";
    display: block;
    width: 130px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.container-contacto {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

.columna-formulario {
    flex: 1;
    min-width: 300px;
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.form-contacto label {
    display: block;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-top: var(--spacing-sm);
}

.form-contacto input,
.form-contacto textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition-fast);
}

.form-contacto input:focus,
.form-contacto textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 23, 168, 0.1);
}

.check-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0 10px 0;
}

.check-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgb(0, 0, 0);
    font-size: 0.9em;
    cursor: pointer;
}

.check-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #5d17c5;
    border-radius: 3px;
    margin: 0;
}

.btn-enviar {
    margin-top: 20px;
    background: #FF610F;
    color: var(--color-white);
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow-naranja);
    transition: var(--transition-base);
    width: 100%;
}

.btn-enviar:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 97, 15, 0.5);
    background: var(--gradient-celeste-suave);
}

.columna-imagen {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.columna-imagen img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.columna-imagen img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--gradient-dark);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-md) 0;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   JUNTA DIRECTIVA - CARRUSEL
======================================== */
.seccion-junta {
    padding: var(--spacing-2xl) 0;
    background: var(--color-light-bg);
}

.seccion-junta h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #4F17A8;
    margin-bottom: var(--spacing-sm);
}

.subtitulo-junta {
    text-align: center;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-xl);
    font-size: 1.05rem;
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 70px;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-md);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ========================================
   JUNTA DIRECTIVA - TODO CENTRADO
======================================== */
.card-miembro {
    background: var(--gradient-dark);
    border-radius: 25px;
    padding: 20px;
    color: var(--color-white);
    text-align: center;
    /* CENTRADO */
    min-width: 320px;
    flex: 0 0 320px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* CENTRADO */
}

.cargo-badge {
    display: inline-block;
    border: 2px solid #FF610F;
    background: rgba(255, 97, 15, 0.1);
    border-radius: 25px;
    padding: 6px 14px;
    font-size: 0.85em;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: #FF610F;
    text-align: center;
    /* CENTRADO */
}

.foto-miembro {
    width: 100%;
    height: 400px;
    margin-bottom: var(--spacing-sm);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-base);
}

.foto-miembro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
    background-color: #fff;
}

.card-miembro:hover .foto-miembro img {
    transform: scale(1.05);
}

.card-miembro h3 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
    text-align: center;
    /* CENTRADO */
}

.card-miembro p {
    font-size: 0.9em;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    text-align: center;
    /* CENTRADO */
}

.redes-miembro {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    /* CENTRADO */
    width: 100%;
}

.redes-miembro a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(63, 192, 240, 0.1);
    border-radius: 50%;
    color: var(--color-secondary);
    transition: var(--transition-base);
    font-size: 0.9rem;
    text-decoration: none;
}

.redes-miembro a:hover {
    background: var(--gradient-celeste-suave);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-celeste);
}

/* ========================================
   FORMULARIO - SELECT DE INTERÉS MEJORADO
======================================== */
.form-contacto select,
.modal-content select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition-fast);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    font-size: 1em;
    cursor: pointer;
    appearance: none;
    /* Remueve el estilo por defecto del navegador */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234F17A8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    /* Espacio para la flecha */
}

.form-contacto select:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 23, 168, 0.1);
}

.form-contacto select option,
.modal-content select option {
    padding: 10px;
    background-color: var(--color-white);
    color: var(--color-text-dark);
}

/* Estilo para la opción deshabilitada (placeholder) */
.form-contacto select option[disabled],
.modal-content select option[disabled] {
    color: #999;
}


/* RESPONSIVE - JUNTA DIRECTIVA */
@media (max-width: 768px) {
    .card-miembro {
        min-width: 280px;
        flex: 0 0 280px;
        padding: 16px;
    }

    .foto-miembro {
        height: auto;
        /* Cambiado de 350px */
        aspect-ratio: 3 / 4;
        /* Mantiene proporción sin cortar */
    }

    .foto-miembro img {
        object-fit: cover;
        object-position: center top;
        /* Prioriza rostro */
    }

    .cargo-badge {
        font-size: 0.75em;
        padding: 5px 10px;
        margin-bottom: 10px;
    }

    .card-miembro h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .redes-miembro {
        margin-top: 10px;
    }

    .redes-miembro a {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .card-miembro {
        min-width: 260px;
        flex: 0 0 260px;
        padding: 14px;
    }

    .foto-miembro {
        height: auto;
        /* Cambiado de 320px */
        aspect-ratio: 3 / 4;
        /* Proporción 3:4 */
    }

    .foto-miembro img {
        object-fit: cover;
        object-position: center 20%;
        /* Enfoca mejor el rostro */
    }

    .cargo-badge {
        font-size: 0.7em;
        padding: 4px 10px;
    }

    .card-miembro h3 {
        font-size: 0.95em;
    }

    .card-miembro p {
        font-size: 0.8em;
    }

    .redes-miembro a {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .card-miembro {
        min-width: 240px;
        flex: 0 0 240px;
        padding: 12px;
    }

    .foto-miembro {
        height: auto;
        /* Cambiado de 300px */
        aspect-ratio: 3 / 4;
    }

    .foto-miembro img {
        object-fit: cover;
        object-position: center 15%;
    }

    .cargo-badge {
        font-size: 0.65em;
        padding: 4px 8px;
        margin-bottom: 8px;
    }

    .card-miembro h3 {
        font-size: 0.9em;
        margin-bottom: 6px;
    }

    .card-miembro p {
        font-size: 0.75em;
        margin-bottom: 8px;
    }

    .redes-miembro a {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}




/* Ajustes para el carousel wrapper en móvil */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .seccion-junta {
        padding: var(--spacing-xl) 0;
    }

    .seccion-junta h2 {
        font-size: 1.8rem;
        padding: 0 20px;
    }

    .titulo-noticias p {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 45px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* SCROLL SNAP PARA CARRUSEL EN MÓVIL */
@media (max-width: 1024px) {
    .carousel-track {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .card-miembro {
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .carousel-wrapper {
        scroll-padding: 0 50px;
    }
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-morado-suave);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--gradient-naranja);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-naranja);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xl);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(79, 23, 168, 0.3);
    cursor: pointer;
    transition: var(--transition-base);
}

.carousel-dot.active {
    background: var(--gradient-naranja);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: var(--gradient-morado-suave);
    transform: scale(1.15);
}

/* ========================================
   MODAL
======================================== */
.oculto {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: aparecer 0.3s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* ========================================
   RESPONSIVE - MEDIA QUERIES
======================================== */

/* Tablets grandes */
@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-copy {
        order: 1;
    }

    .hero-card {
        order: 2;
        margin-left: 0;
        margin: 0 auto;
        max-width: 500px;
    }

    .decor--tri-1,
    .decor--tri-2 {
        opacity: 0.5;
    }

    .titulo-eventos h2,
    .titulo-noticias h2,
    .formacion-header h2 {
        font-size: 2em;
        border-right: none;
        border-bottom: 4px solid;
        padding-right: 0;
        padding-bottom: 10px;
        text-align: center;
        width: 50%;
    }

    .titulo-eventos,
    .titulo-noticias,
    .formacion-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .titulo-eventos p,
    .titulo-noticias p,
    .formacion-header p {
        padding-left: 0;
        text-align: center;
    }

    .carousel-wrapper {
        padding: 0 60px;
    }
}

/* Tablets y móviles grandes */
@media (max-width: 900px) {
    .topbar {
        padding: var(--spacing-xs) 20px;
    }

    .navbar {
        padding: 12px 20px;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    nav {
        width: 100%;
    }

    .menu {
        display: none;
        flex-direction: column;
        background: var(--gradient-primary);
        width: 100%;
        text-align: center;
        border-radius: 0 0 10px 10px;
        padding: 15px 0;
    }

    .menu li {
        margin: 10px 0;
    }

    .menu a {
        display: block;
        color: white;
        text-decoration: none;
        font-size: 1.1em;
    }

    .menu-icon {
        display: block;
    }

    .menu-toggle:checked~nav .menu {
        display: flex;
        flex-direction: column
    }

    .topbar-right .email,
    .topbar-right .separator {
        display: none;
    }

    .cards {
        gap: var(--spacing-sm);
    }

    .card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .cta,
    .voluntariado {
        padding: 100px 20px;
        border-radius: 20px;
        margin: var(--spacing-md) 20px;
    }

    .cta h2,
    .voluntariado h2 {
        font-size: 2rem;
    }

    .container-contacto {
        gap: 20px;
    }

    .columna-formulario,
    .columna-imagen {
        min-width: 100%;
    }
}

/* Móviles */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 6px;
        --spacing-sm: 12px;
        --spacing-md: 20px;
        --spacing-lg: 25px;
        --spacing-xl: 40px;
        --spacing-2xl: 60px;
    }

    body {
        font-size: 14px;
    }

    .topbar {
        padding: 8px 15px;
        justify-content: center;
        text-align: center;
    }

    .topbar-left {
        width: 100%;
        justify-content: center;
    }

    .topbar-left a {
        font-size: 1em;
        margin-right: 8px;
    }

    .topbar-right {
        font-size: 0.85em;
        justify-content: center;
        width: 100%;
        margin-top: 5px;
    }

    .navbar {
        padding: 10px 15px;
    }

    .logo {
        height: 40px;
    }

    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .hero-grid {
        padding: 0 1rem;
        gap: 20px;
    }

    .hero-copy h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .lead {
        font-size: 1rem;
    }

    .counter {
        gap: 12px;
        padding: 16px 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .counter>div {
        min-width: 55px;
    }

    .counter .num {
        font-size: 1.8rem;
    }

    .counter small {
        font-size: 0.65rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .decor--tri-1 {
        width: 200px;
        height: 200px;
        right: -80px;
    }

    .decor--tri-2 {
        width: 250px;
        height: 250px;
        left: -100px;
    }

    .quienes-somos {
        padding: var(--spacing-xl) 15px;
    }

    .quienes-somos h2 {
        font-size: 1.8em;
    }

    .quienes-somos .descripcion {
        font-size: 1em;
    }

    .cards {
        gap: 15px;
    }

    .card {
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
        margin: 0 auto;
    }

    .icono-img {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }

    .card h3 {
        font-size: 1.2em;
    }

    .eventos,
    .noticias,
    .container-formacion {
        padding: var(--spacing-xl) 15px;
    }

    .titulo-eventos h2,
    .titulo-noticias h2,
    .formacion-header h2 {
        font-size: 1.8em;
        padding-bottom: 8px;
    }

    .titulo-eventos p,
    .titulo-noticias p,
    .formacion-header p {
        font-size: 0.95em;
    }

    .filtros,
    .filtros-noticias,
    .filtros-formacion {
        gap: 8px;
        justify-content: center;
    }

    .filtros button,
    .filtros-noticias button,
    .filtros-formacion button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .cards-eventos,
    .cards-noticias,
    .cards-formacion {
        gap: 20px;
    }

    .card-evento,
    .card-noticia,
    .card-formacion {
        max-width: 100%;
        padding: 18px;
        margin: 0 auto;
    }

    .card-evento h3,
    .card-noticia h3,
    .card-formacion h3 {
        font-size: 1em;
    }

    .card-evento p,
    .card-noticia p,
    .card-formacion p {
        font-size: 0.85em;
    }

    .cta,
    .voluntariado {
        padding: 80px 15px;
        margin: var(--spacing-md) 15px;
        border-radius: 15px;
    }

    .cta h2,
    .voluntariado h2 {
        font-size: 1.8rem;
    }

    .cta p,
    .voluntariado p {
        font-size: 1rem;
        margin-bottom: 30px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .cta-buttons,
    .voluntariado-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-cta,
    .btn-vol {
        padding: 14px 30px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }

    .contacto {
        padding: var(--spacing-xl) 15px;
    }

    .titulo-contacto {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .container-contacto {
        gap: 25px;
    }

    .columna-formulario {
        padding: 20px;
    }

    .form-contacto input,
    .form-contacto textarea {
        padding: 10px;
        font-size: 0.95em;
    }

    .btn-enviar {
        padding: 12px 25px;
    }

    .seccion-junta {
        padding: var(--spacing-xl) 0;
    }

    .seccion-junta h2 {
        font-size: 1.8rem;
    }

    .subtitulo-junta {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .carousel-wrapper {
        padding: 0 50px;
    }

    .card-miembro {
        min-width: 380px;
        flex: 0 0 280px;
        padding: 18px;
    }

    .foto-miembro {
        height: 380px;
        object-fit: cover;
        object-position: center 20%;
        /* Ajusta este porcentaje según necesites */
    }


    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-dots {
        margin-top: var(--spacing-md);
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .form-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .topbar {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .topbar-left {
        width: 100%;
        text-align: center;
    }

    .topbar-right {
        width: 100%;
        justify-content: center;
    }

    .logo {
        height: 35px;
    }

    .hero-copy h1 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 0.95rem;
    }

    .counter {
        gap: 10px;
        padding: 12px 15px;
    }

    .counter>div {
        min-width: 50px;
    }

    .counter .num {
        font-size: 1.5rem;
    }

    .counter small {
        font-size: 0.6rem;
    }

    .quienes-somos h2 {
        font-size: 1.5em;
    }

    .quienes-somos .descripcion {
        font-size: 0.95em;
    }

    .card {
        padding: 25px 18px;
    }

    .titulo-eventos h2,
    .titulo-noticias h2,
    .formacion-header h2 {
        font-size: 1.5em;
    }

    .titulo-eventos p,
    .titulo-noticias p,
    .formacion-header p {
        font-size: 0.9em;
    }

    .filtros button,
    .filtros-noticias button,
    .filtros-formacion button {
        padding: 8px 16px;
        font-size: 0.85em;
    }

    .card-evento,
    .card-noticia,
    .card-formacion {
        padding: 15px;
    }

    .cta h2,
    .voluntariado h2 {
        font-size: 1.5rem;
    }

    .cta p,
    .voluntariado p {
        font-size: 0.95rem;
        margin-left: 20px;
        margin-right: 20px;
    }

    .btn-cta,
    .btn-vol {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .titulo-contacto {
        font-size: 1.8em;
    }

    .columna-formulario {
        padding: 18px;
    }

    .seccion-junta h2 {
        font-size: 1.5rem;
    }

    .carousel-wrapper {
        padding: 0 40px;
    }

    .card-miembro {
        min-width: 360px;
        flex: 0 0 260px;
        padding: 15px;
    }

    .foto-miembro {
        height: 340px;
        object-fit: cover;
        object-position: center 20%;
        /* Ajusta este porcentaje según necesites */
    }


    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Muy pequeños */
@media (max-width: 360px) {
    .hero-copy h1 {
        font-size: 1.3rem;
    }

    .counter {
        padding: 10px 12px;
    }

    .counter .num {
        font-size: 1.3rem;
    }

    .quienes-somos h2 {
        font-size: 1.3em;
    }

    .titulo-eventos h2,
    .titulo-noticias h2,
    .formacion-header h2 {
        font-size: 1.3em;
    }

    .card-miembro {
        min-width: 340px;
        flex: 0 0 240px;
    }

    .foto-miembro {
        height: 320px;
        object-fit: cover;
        object-position: center 20%;
        /* Ajusta este porcentaje según necesites */
    }

}



/* ========================================
   JUNTA DIRECTIVA - TODO CENTRADO
======================================== */
.card-miembro {
    background: var(--gradient-dark);
    border-radius: 25px;
    padding: 20px;
    color: var(--color-white);
    text-align: center;
    /* CENTRADO */
    min-width: 320px;
    flex: 0 0 320px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* CENTRADO */
}

.cargo-badge {
    display: inline-block;
    border: 2px solid #FF610F;
    background: rgba(255, 97, 15, 0.1);
    border-radius: 25px;
    padding: 6px 14px;
    font-size: 0.85em;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: #FF610F;
    text-align: center;
    /* CENTRADO */
}

.foto-miembro {
    width: 100%;
    height: 400px;
    margin-bottom: var(--spacing-sm);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-base);
}

.foto-miembro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
    background-color: #fff;
}

.card-miembro:hover .foto-miembro img {
    transform: scale(1.05);
}

.card-miembro h3 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
    text-align: center;
    /* CENTRADO */
}

.card-miembro p {
    font-size: 0.9em;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    text-align: center;
    /* CENTRADO */
}

.redes-miembro {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    /* CENTRADO */
    width: 100%;
}

.redes-miembro a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(63, 192, 240, 0.1);
    border-radius: 50%;
    color: var(--color-secondary);
    transition: var(--transition-base);
    font-size: 0.9rem;
}

.redes-miembro a:hover {
    background: var(--gradient-celeste-suave);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-celeste);
}

/* ========================================
   FORMULARIO - SELECT DE INTERÉS MEJORADO
======================================== */
.form-contacto select,
.modal-content select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition-fast);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    font-size: 1em;
    cursor: pointer;
    appearance: none;
    /* Remueve el estilo por defecto del navegador */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234F17A8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    /* Espacio para la flecha */
}

.form-contacto select:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 23, 168, 0.1);
}

.form-contacto select option,
.modal-content select option {
    padding: 10px;
    background-color: var(--color-white);
    color: var(--color-text-dark);
}

/* Estilo para la opción deshabilitada (placeholder) */
.form-contacto select option[disabled],
.modal-content select option[disabled] {
    color: #999;
}

/* ========================================
   RESPONSIVE - JUNTA DIRECTIVA
   ======================================== */

@media (max-width: 768px) {
    .card-miembro {
        min-width: 280px;
        flex: 0 0 280px;
        padding: 18px;
    }

    .foto-miembro {
        height: 350px;
        object-fit: contain;
        /* Muestra la imagen completa sin cortar */
        object-position: center top;
        /* Prioriza la parte superior (cabeza) */
    }
}

@media (max-width: 480px) {
    .card-miembro {
        min-width: 260px;
        flex: 0 0 260px;
        padding: 15px;
    }

    .foto-miembro {
        height: 320px;
        object-fit: contain;
        /* Muestra la imagen completa */
        object-position: center top;
        /* Prioriza mostrar desde arriba */
    }

    .cargo-badge {
        font-size: 0.8em;
        padding: 5px 12px;
    }

    .card-miembro h3 {
        font-size: 1em;
    }

    .card-miembro p {
        font-size: 0.85em;
    }

    .redes-miembro a {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .card-miembro {
        min-width: 240px;
        flex: 0 0 240px;
    }

    .foto-miembro {
        height: 300px;
        object-fit: contain;
        /* Muestra toda la imagen sin cortar */
        object-position: center top;
    }
}



/* ========================================
   RESPONSIVE - OCULTAR BOTONES EN MÓVIL
======================================== */

/* Tablets y móviles - ocultar botones del hero */
@media (max-width: 768px) {
    .hero-actions {
        display: none !important;
    }

    /* Ajustar espaciado del hero sin botones */
    .hero-copy {
        gap: 20px;
    }

    .counter {
        margin-top: 20px;
    }
}

/* Alternativa: Si solo quieres ocultarlos en móviles muy pequeños */
@media (max-width: 480px) {
    .hero-actions {
        display: none !important;
    }
}



/* RECAPTCHA STYLING - MEJORADO PARA MÓVILES */
.g-recaptcha,
#recaptcha-voluntariado,
#recaptcha-contacto {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.95);
    transform-origin: center;
    width: 100%;
    max-width: 304px;
}

/* Asegurar que el iframe de reCAPTCHA sea responsive */
.g-recaptcha iframe,
#recaptcha-voluntariado iframe,
#recaptcha-contacto iframe {
    max-width: 100% !important;
}

/* Fix para el modal de verificación - IMPORTANTE PARA MÓVILES */
.g-recaptcha-bubble-arrow {
    display: none !important;
}

body>div>iframe[src*="recaptcha/api2/bframe"] {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    z-index: 10000 !important;
}

/* Móviles - escalar el captcha */
@media (max-width: 768px) {

    .g-recaptcha,
    #recaptcha-voluntariado,
    #recaptcha-contacto {
        transform: scale(0.85);
        transform-origin: 0 0;
        -webkit-transform: scale(0.85);
        -webkit-transform-origin: 0 0;
        overflow: hidden;
        margin: 15px auto;
    }

    /* Fix para el modal de verificación en móviles */
    body iframe[src*="recaptcha"] {
        max-width: 100vw !important;
        max-height: 100vh !important;
    }

    body>div[style*="position: absolute"] {
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        max-width: 100vw !important;
    }
}

/* Móviles pequeños - escalar más */
@media (max-width: 480px) {

    .g-recaptcha,
    #recaptcha-voluntariado,
    #recaptcha-contacto {
        transform: scale(0.77);
        transform-origin: 0 0;
        -webkit-transform: scale(0.77);
        -webkit-transform-origin: 0 0;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {

    .g-recaptcha,
    #recaptcha-voluntariado,
    #recaptcha-contacto {
        transform: scale(0.70);
        transform-origin: 0 0;
        -webkit-transform: scale(0.70);
        -webkit-transform-origin: 0 0;
    }
}





/* MODAL DE INFORMACIÓN DEL EVENTO - Alineado con diseño existente */
#modalInfoEvento.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

#modalInfoEvento .modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: aparecer 0.3s ease;
    position: relative;
}

#modalInfoEvento .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

#modalInfoEvento .close-modal:hover {
    color: #333;
}

#modalInfoEvento h2 {
    color: var(--color-primary);
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-right: 30px;
}

.info-evento-detalle {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-evento-detalle img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detalle-item {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
}

.detalle-item:hover {
    background-color: #e9ecef;
    transform: translateX(3px);
}

.detalle-item strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.detalle-item p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.descripcion-completa {
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-left: 4px solid var(--color-secondary);
}

.descripcion-completa strong {
    color: var(--color-secondary);
}

.descripcion-completa p {
    margin-top: 8px;
    line-height: 1.7;
    color: #555;
}

/* Botón de registro en el modal */
#modalInfoEvento .btn-evento {
    display: inline-block;
    background: var(--gradient-naranja);
    color: var(--color-white) !important;
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: var(--shadow-naranja);
    transition: var(--transition-base);
    text-align: center;
}

#modalInfoEvento .btn-evento:hover {
    background: var(--gradient-celeste-suave);
    transform: translateY(-2px);
    box-shadow: var(--shadow-celeste);
}

/* Responsive para el modal */
@media (max-width: 768px) {
    #modalInfoEvento .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
        max-height: 90vh;
    }

    #modalInfoEvento h2 {
        font-size: 1.5em;
    }

    .detalle-item {
        padding: 10px 12px;
    }

    .detalle-item strong {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    #modalInfoEvento .modal-content {
        padding: 1.5rem 1rem;
    }

    #modalInfoEvento h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    #modalInfoEvento .close-modal {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }

    .detalle-item {
        padding: 8px 10px;
        font-size: 0.9em;
    }

    #modalInfoEvento .btn-evento {
        padding: 12px 28px;
        font-size: 0.95em;
    }
}

/* Estilos para los botones de evento en las tarjetas */
.botones-evento {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-evento {
    flex: 1;
    min-width: 120px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-info {
    background: var(--gradient-celeste-suave);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-info:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-registro {
    background: var(--gradient-naranja);
    color: white !important;
    box-shadow: var(--shadow-naranja);
}

.btn-registro:hover {
    background: var(--gradient-celeste-suave);
    transform: translateY(-2px);
    box-shadow: var(--shadow-celeste);
}

/* Responsive para botones de evento */
@media (max-width: 600px) {
    .botones-evento {
        flex-direction: column;
    }

    .btn-info,
    .btn-registro {
        width: 100%;
        min-width: 100%;
    }
}

/* Separar enlaces del topbar en móviles */
@media (max-width: 768px) {
    .topbar-right {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: center;
    }

    .topbar-right .separator {
        display: none;
    }

    .topbar-right .contact-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 8px 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .topbar-right .contact-link:last-child {
        border-bottom: none;
    }
}

/* ========================================
   DROPDOWN UNIFICADO (Comunidad + Membresía + Certificación)
======================================== */

/* Contenedor dropdown */
.dropdown-comunidades,
.dropdown-beneficios,
.dropdown-certificacion {
    position: relative;
}

/* Toggle */
.dropdown-comunidades .dropdown-toggle,
.dropdown-beneficios .dropdown-toggle,
.dropdown-certificacion .dropdown-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Flecha */
.dropdown-comunidades .arrow,
.dropdown-beneficios .arrow,
.dropdown-certificacion .arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

/* Submenú */
.submenu-comunidades,
.submenu-membresia,
.submenu-certificacion {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    list-style: none;
    padding: 10px 0;
    margin: 8px 0 0 0;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.submenu-comunidades li,
.submenu-membresia li,
.submenu-certificacion li {
    margin: 0;
    padding: 0;
}

.submenu-comunidades a,
.submenu-membresia a,
.submenu-certificacion a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.submenu-comunidades a:hover,
.submenu-membresia a:hover,
.submenu-certificacion a:hover {
    background: rgba(63, 192, 240, 0.15);
    color: #3FC0F0;
    border-left-color: #3FC0F0;
    padding-left: 25px;
}

/* Mostrar en desktop */
.dropdown-comunidades:hover .submenu-comunidades,
.dropdown-beneficios:hover .submenu-membresia,
.dropdown-certificacion:hover .submenu-certificacion {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-comunidades:hover .arrow,
.dropdown-beneficios:hover .arrow,
.dropdown-certificacion:hover .arrow {
    transform: rotate(180deg);
}


/* ========================================
   RESPONSIVE - MÓVIL (Acordeón)
======================================== */

@media (max-width: 900px) {

    .dropdown-comunidades,
    .dropdown-beneficios,
    .dropdown-certificacion {
        width: 100%;
    }

    .dropdown-comunidades .dropdown-toggle,
    .dropdown-beneficios .dropdown-toggle,
    .dropdown-certificacion .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        padding: 10px 20px;
    }

    /* Acordeón */
    .submenu-comunidades,
    .submenu-membresia,
    .submenu-certificacion {
        display: block !important;     
        position: static;
        max-height: 0;                
        overflow: hidden;              
        opacity: 1 !important;         
        visibility: visible !important;
        transform: none;
        transition: max-height 0.5s ease-in-out, padding 0.3s ease; 
        background: rgba(255, 255, 255, 0.05);
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .dropdown-comunidades.active .submenu-comunidades,
    .dropdown-beneficios.active .submenu-membresia,
    .dropdown-certificacion.active .submenu-certificacion {
        max-height: 800px !important; 
        padding: 10px 0;               
        margin-top: 5px;
    }

    .dropdown-comunidades.active .arrow,
    .dropdown-beneficios.active .arrow,
    .dropdown-certificacion.active .arrow {
        transform: rotate(180deg);
    }

    .submenu-comunidades a,
    .submenu-membresia a,
    .submenu-certificacion a {
        color: #ffffff !important;    
        font-weight: normal;
        border-left: 3px solid transparent;
    }

    .submenu-comunidades a:hover,
    .submenu-membresia a:hover,
    .submenu-certificacion a:hover {
        padding-left: 45px;
    }
}

@media (max-width: 768px) {

    .submenu-comunidades a,
    .submenu-membresia a,
    .submenu-certificacion a {
        padding: 10px 15px 10px 35px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {

    .dropdown-comunidades .dropdown-toggle,
    .dropdown-beneficios .dropdown-toggle,
    .dropdown-certificacion .dropdown-toggle {
        font-size: 1em;
        padding: 8px 15px;
    }

    .submenu-comunidades a,
    .submenu-membresia a,
    .submenu-certificacion a {
        padding: 8px 12px 8px 30px;
        font-size: 0.8em;
    }
}

/* ========================================
   AJUSTES NAVBAR UNIFICADO
======================================== */

.dropdown-container {
    position: relative;
}

@media (max-width: 968px) {
    .dropdown-container .submenu {
        display: none;
        background-color: rgba(0, 0, 0, 0.05);
        padding-left: 20px;
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-container.active .submenu {
        display: block;
    }

    .dropdown-toggle {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }

    .dropdown-container.active .dropdown-toggle .arrow {
        transform: rotate(180deg);
    }
}