:root {
    --color-partido: #2D035B;
    --color-secundario: #ffd700;
    --color-terciario: #623199;
    --padding-section: clamp(2rem, 5vw, 5rem); /* Nuevo: padding adaptable */
    --fondo-blanco-claro: #e8e8e8;
    --fondo-cuadros: #f8f8f8;
    --fondo-blanco-claro2: #f0e6ff;
    --texto: #333;
    --texto-destacado: #2D035B;
    --header-height: 50px; /* Define la altura del header */
}

/* Estilos generales (originales) */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: var(--fondo-blanco-claro);
}

header {
    /* Tus estilos originales se mantienen */
    background-color:var(--color-partido);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem; /* Original */
    box-sizing: border-box; /* Evita desbordamiento */
    /*border-bottom: solid 5px var(--color-partido);*/
}

.logo img {
    height: 60px;
    margin: 5px 20px;
}

/* ===================== */
/* NAV - ESCRITORIO (PC) */
/* ===================== */
nav {
  display: flex;
  justify-content: center;
  max-width: 100%;
  padding: 0 1rem;
  overflow: hidden; /* Evita desbordamientos inesperados */
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0.6rem 1rem;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(55, 25, 89, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(55, 25, 89, 0.08);
  max-width: 100%;
  flex-shrink: 1; /* Permite que el contenedor se reduzca */
}

nav ul li {
  position: relative;
  flex-shrink: 1; /* Ítems reducibles */
  min-width: 0; /* Permite que el texto se ajuste */
}

nav ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.8rem;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem); /* Tamaño dinámico */
  font-weight: 600;
  color: #333;
  text-decoration: none;
  border-radius: 10px;
  border-left: 2px solid rgb(111, 0, 151);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Iconos */
nav ul li i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0; /* Fija el tamaño de íconos */
}

/* Efectos hover (comprimidos) */
nav ul li a:hover { 
  color: white; 
  transform: translateY(-2px); 
}
nav ul li a:hover i { 
  transform: translateY(-2px); 
}
nav ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-partido) 0%, #5d2a8a 100%);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: all 0.4s ease;
}
nav ul li a:hover::before { 
  opacity: 1; 
}

/* Ajuste para pantallas estrechas (antes de móvil) */
@media (max-width: 950px) {
  nav ul {
    padding: 0.5rem 0.8rem; /* Reduce espacio interno */
    gap: 0.3rem;
  }
  nav ul li a {

    font-size: clamp(0.65rem, 1vw, 0.8rem); /* Rango: 10.4px a 12.8px */
    padding: 0.3rem 0.5rem;
  }
}

main {
    background-color: var(--fondo-blanco-claro);
}

.menu-toggle {
    display: none; /* Original: oculto en desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

/* Aplica a todas las secciones (excepto hero) */
section:not(.hero) {
    scroll-margin-top: var(--header-height);
    padding-top: var(--header-height);
    margin-top: calc(var(--header-height) * -0.6); /* Ajuste visual */
}

/* Corrección para anchor links */
:target::before {
    content: "";
    display: block;
    height: var(--header-height);
    margin: calc(var(--header-height) * -1) 0 0;
}

/*lightbox*/

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-height: 90vh;
    max-width: 90vw;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Hero Section (original) */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden; /* Oculta slides fuera de vista */
}

.hero-carousel {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-content {
    color: var(--fondo-blanco-claro);
    position: absolute; /* Cambia de relative a absolute */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    text-align: center;
    z-index: 10; /* Asegúrate que esté por encima del carrusel */
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease, transform 1.5s ease;
    transform: translateX(100%); /* Entra desde la derecha */
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.carousel-slide.prev {
    transform: translateX(-100%); /* Sale hacia la izquierda */
    opacity: 0;
}

.carousel-slide {
    background-size: cover;
    background-position: center;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

/* Controles del carrusel */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

/* Hero image switching for desktop */
@media (min-width: 1024px) {
    .carousel-slide.active {
        background-image: url('../assets/img/fondo-hero-2.webp') !important;
    }
    
    /* Opcional: si quieres que todas las slides usen fondo-hero-2 en desktop */
    .carousel-slide {
        background-image: url('../assets/img/fondo-hero-2.webp');
    }
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.hero-content h1 {
    display: none;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--color-partido);
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--color-partido);
}

/* Propuestas Section (original) */
/* Estilos mejorados para la sección de propuestas */
.propuestas {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem;
    background-color: var(--fondo-blanco-claro);
    position: relative;
}

.acordeon-item {
    overflow: visible; /* Permite que el contenido se muestre */
}

/* Si tienes un margen negativo, ajústalo */
section:not(.hero) {
    margin-top: 0; /* Elimina el margen negativo si lo hay */
    scroll-margin-top: var(--header-height);
}

.propuestas h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-partido);
    position: relative;
}

.propuestas h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-secundario);
    margin: 1rem auto 0;
}

.propuestas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.propuesta-card {
    background: white;
    border-radius: 10px;
    padding: 1.8rem;
    box-shadow: 0 5px 15px rgba(90, 45, 138, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--color-partido);
    display: flex;
    flex-direction: column;
}

.propuesta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(90, 45, 138, 0.2);
}

.propuesta-card i {
    font-size: 2.2rem;
    color: var(--color-partido);
    margin-bottom: 1rem;
    align-self: center;
}

.propuesta-card h3 {
    color: var(--color-partido);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.propuesta-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--color-secundario);
}

.propuestas-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    flex-grow: 1;
}

.propuestas-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.propuestas-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secundario);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .propuestas {
        padding: 3rem 1rem;
    }
    
    .propuestas h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .propuesta-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .propuestas-grid {
        grid-template-columns: 1fr;
    }
}
/* Estilos para la sección de propuestas */
.propuestas {
    padding: 0;
    background-color: var(--fondo-blanco-claro);
    position: relative;
}

/* Efecto acordeón de propuestas - Estilo invertido */
.acordeon-propuestas {
    max-width: 1000px;
    margin: 0 auto;
}

.acordeon-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(90, 45, 138, 0.15);
    background: white;
    border-left: 4px solid var(--color-partido);
}

.acordeon-titulo {
    width: 100%;
    padding: 1.3rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-partido);
    color: white;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.acordeon-titulo:hover {
    background: var(--color-terciario);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2);
}

.acordeon-titulo h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.acordeon-titulo i {
    font-size: 1.4rem;
    color: white;
    transition: all 0.3s ease;
}

.acordeon-icono {
    font-size: 1.1rem;
    color: white;
    transition: all 0.3s ease;
}

.acordeon-contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 1.8rem;
    background: white;
}

.acordeon-item.active {
    box-shadow: 0 5px 20px rgba(90, 45, 138, 0.2);
}

.acordeon-item.active .acordeon-titulo {
    background: var(--color-terciario);
}

.acordeon-item.active .acordeon-contenido {
    max-height: 5000px;
    padding: 1rem 1.8rem 1.8rem;
}

.acordeon-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

.propuestas-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.propuestas-list li {
    padding: 0.9rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 2rem;
    line-height: 1.5;
}

.propuestas-list li:last-child {
    border-bottom: none;
}

.propuestas-list li:before {
    content: "•";
    color: var(--color-partido);
    font-weight: bold;
    font-size: 1.4rem;
    position: absolute;
    left: 0.7rem;
    top: 0.6rem;
}

/* Versión responsive */
@media (max-width: 768px) {
    .acordeon-titulo {
        padding: 1.1rem 1.3rem;
    }
    
    .acordeon-titulo h3 {
        font-size: 1.1rem;
    }
    
    .acordeon-titulo i {
        font-size: 1.2rem;
    }
    
    .acordeon-contenido {
        padding: 0 1.3rem;
    }
    
    .acordeon-item.active .acordeon-contenido {
        padding: 0.8rem 1.3rem 1.3rem;
    }
    
    .propuestas-list li {
        padding-left: 1.6rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .acordeon-titulo h3 {
        font-size: 1rem; /* Tamaño reducido */
        flex-wrap: wrap; /* Permite múltiples líneas si es necesario */
        line-height: 1.3; /* Mejor espaciado */
    }
    
    /* Opcional: Ajustar específicamente este título */
    .acordeon-item:nth-child(2) .acordeon-titulo h3 {
        font-size: 0.95rem; /* Un poco más pequeño solo para este */
        word-break: break-word; /* Rompe palabras largas */
    }
    
    /* Ajustar padding para compensar */
    .acordeon-titulo {
        padding: 1rem 1.2rem;
    }
    
    /* Ajustar iconos */
    .acordeon-titulo i {
        font-size: 1.1rem;
        margin-left: 0.5rem; /* Espacio adicional */
    }
}

/* Estructura jerárquica */
/* Estilos generales para la sección */
/* Estilos generales para la sección */
.equipo {
    padding: rem 1.5rem;
    position: relative;
    z-index: 2;
    background-color: var(--fondo-blanco-claro);
    position: relative;
}

.equipo h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-partido);
    position: relative;
}

.equipo h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-secundario);
    margin: 1rem auto 0;
}

/* Contenedor de filas */
.equipo-fila {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

/* Estilos base para todas las tarjetas - AHORA UNIFORMES */
.miembro-card {
    position: relative;
    width: 100%;
    max-width: 350px; /* Mismo tamaño para todas */
    min-height: 420px; /* Altura uniforme */
    perspective: 1000px;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(90, 45, 138, 0.1);
    transition: all 0.3s ease;
    background: white;
    border-top: 4px solid var(--color-partido);
}

/* Diferenciación jerárquica SOLO visual (sin cambiar tamaño) */
.equipo-superior .miembro-card {
    border-top-width: 6px; /* Mayor énfasis visual */
}

/* Parte frontal de la tarjeta */
.miembro-front {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.miembro-imagen-container {
    position: relative;
    width: 150px; /* Tamaño uniforme */
    height: 150px; /* Tamaño uniforme */
    margin-bottom: 1.5rem;
}

/* Eliminamos el tamaño especial para equipo-superior */
.miembro-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--fondo-blanco-claro2);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.miembro-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-partido);
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

.miembro-card h3 {
    color: var(--color-partido);
    margin: 0.5rem 0;
    font-size: 1.4rem; /* Tamaño uniforme */
    position: relative;
    padding-bottom: 0.5rem;
}

/* Eliminamos el tamaño especial para equipo-superior */
.miembro-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--color-secundario);
}

.miembro-comisiones {
    font-size: 0.9rem;
    color: var(--color-terciario);
    margin: 0.5rem 0 1.5rem;
    font-style: italic;
    padding: 0.3rem 0.8rem;
    background: rgba(98, 49, 153, 0.1);
    border-radius: 5px;
}

.miembro-vermas {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    color: var(--color-partido);
    font-weight: 600;
    transition: all 0.3s ease;
}

.miembro-vermas i {
    transition: transform 0.3s ease;
}

.miembro-card:hover .miembro-vermas i {
    transform: translateX(3px);
}

/* Parte trasera de la tarjeta (info) */
.miembro-front, .miembro-info {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: all 0.6s ease;
    padding: 2rem;
    box-sizing: border-box;
}

.miembro-info {
    background: var(--color-partido);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.miembro-card.active .miembro-front {
    transform: rotateY(180deg);
}

.miembro-card.active .miembro-info {
    transform: rotateY(0deg);
}

/* Efectos hover */
.miembro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(90, 45, 138, 0.2);
}

/* Responsividad */
@media (max-width: 1024px) {
    .miembro-card {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .equipo-fila {
        flex-direction: column;
        align-items: center;
    }
    
    .miembro-card {
        max-width: 100% !important;
        width: 100%;
        min-height: 380px;
    }
    
    .miembro-imagen-container {
        width: 130px;
        height: 130px;
    }
}

/* Contacto Section */

.enlaces-bio {
    text-align: center; /* Asegura que todo el contenido esté centrado */
    margin-bottom: 20px;
}

.enlaces-bio h2:first-of-type {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 80%; /* Opcional: para evitar que ocupen todo el ancho */
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: -30px;
}

.enlaces-bio h2:nth-of-type(2) {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 80%; /* Opcional: para evitar que ocupen todo el ancho */
    font-size: 2.5rem;
    text-align: center;
}

.enlaces-bio p {
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
    color: #000000;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.links-bio {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.link-bio {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Conserva todos tus estilos existentes para .link-bio */
.links-bio {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.link-bio:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Colores personalizados por red social */
.link-bio.whatsapp { background: #25D366; color: white; }
.link-bio.whatsapp-channel { background: #075E54; color: white; }
.link-bio.instagram { background: #E1306C; color: white; }
.link-bio.facebook { background: #1877F2; color: white; }
.link-bio.tiktok { background: #000000; color: white; }
.link-bio.twitter { background: #000000; color: white; }
.link-bio.youtube { background: #FF0000; color: white; }
.link-bio.threads { background: #000000; color: white; }
.link-bio.form { background: #6c5ce7; color: white; }

/*icono de Threads*/
.threads-icon {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    vertical-align: middle; /* Alinea verticalmente con el texto */
}

/* Iconos */
.link-bio i {
    font-size: 20px;
}

/* Estilos para los subtítulos */
.link-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.link-subtext {
    font-size: 12px;
    font-weight: normal;
    opacity: 0.8;
    margin-top: 2px;
}

/* GOOGLE MAPS DE LA SEDE */

#ubicacion {
    background-color: var(--fondo-blanco-claro);
}

.mapa-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;
    background: var(--fondo-cuadros);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mapa-titulo {
    color: var(--color-partido);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mapa-titulo::before,
.mapa-titulo::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        var(--color-secundario), 
        transparent
    );
}

.mapa-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 2px solid var(--fondo-blanco-claro2);
}

.mapa-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.btn-mapa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.5rem;
    background: var(--color-partido);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-mapa:hover {
    background: white;
    color: var(--color-partido);
    border-color: var(--color-partido);
}

/* Responsividad  de Mapa*/
@media (max-width: 768px) {
    .mapa-container {
        margin: 1rem auto;
        padding: 0.5rem;
    }
}

/*Galeria de Fotos*/

.galeria {
    background-color: var(--fondo-blanco-claro);
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.galeria-titulo {
    text-align: center;
    color: var(--color-partido);
    position: relative;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.galeria-titulo::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-secundario);
    margin: 0.5rem auto 0;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.galeria-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4/3; /* Relación 4:3 */
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(90,45,138,0.9), transparent);
    color: white;
    padding: 1rem;
    transition: bottom 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    bottom: 0;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.btn-galeria {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 2rem auto 0;
    padding: 0.8rem 2rem;
    background: var(--color-partido);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--color-partido);
}

.btn-galeria:hover {
    background: white;
    color: var(--color-partido);
}

@media (max-width: 768px) {
    .galeria-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .galeria-item {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }
}

/* Efecto de zoom suave */
@media (hover: hover) {
    .galeria-item {
        overflow: hidden;
    }
}

/* Responsividad de Galeria*/
@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}


/* Footer (original) */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
    color: white;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

@media (min-width: 769px) and (max-width: 800px) {
    nav ul li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        transform: scale(0.95);
        transition: all 0.3s ease; /* Animación suave */
    }
    
    nav ul li a:hover {
        transform: scale(0.98);
    }
}


/* =============================================== */
/* Mejoras de Responsividad (ADD-ON) */
/* =============================================== */

/* Mobile: Menú Hamburguesa */
@media (max-width: 810px) {

    .propuestas-grid {
        grid-template-columns: 1fr; /* 1 columna en móviles muy pequeños */
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 260px; /* Máximo absoluto */
        min-width: 220px; /* Mínimo para contenido */
        height: 100vh;
        flex-direction: column;
        gap: 1.5rem;
        background: var(--color-terciario); /*Fondo del menu desplegable*/
        backdrop-filter: blur(15px);
        border-radius: 0;
        border-left: 1px solid rgba(55, 25, 89, 0.1);
        box-shadow: -5px 0 25px rgba(55, 25, 89, 0.1);
        padding: 0;
        margin: 0;
        transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);

        justify-content: center; /* Alinea a la izquierda */
        align-items: flex-start; /* Alinea arriba */
        text-align: left; /* Texto alineado a la izquierda */
        padding-left: 20px; /* Espaciado izquierdo */

        background: 
        linear-gradient(var(--color-terciario), rgba(45, 3, 91, 0.95)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M30,50 Q50,30 70,50 T90,50" stroke="%23ffd700" fill="none" stroke-width="0.5" opacity="0.3"/></svg>');
    backdrop-filter: blur(5px);
    }

    nav ul.show {
        right: 0;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        display: block;
        width: 85%;
        text-align: center;
        padding: 0.6rem 1rem; /* Reduce el padding */
        font-size: 0.9rem; /* Tamaño de fuente más pequeño */
        background-color: var(--color-terciario); /*Color de fondo del boton*/
        color: var(--fondo-blanco-claro);
        width: 100%;
        justify-content: flex-start;
    }

    /* Efecto hover mobile */
    nav ul li a:hover {
        background: var(--color-secundario);
        color: white;
        transform: scale(1.05);
    }

    nav ul li a::after {
        display: none; /* Ocultamos el subrayado en mobile */
    }

    /* Efecto "cascada" al abrir */
    nav ul.show li {
        animation: fadeInRight 0.5s ease forwards;
        opacity: 0;
    }

    nav ul.show li:nth-child(1) { animation-delay: 0.1s; }
    nav ul.show li:nth-child(2) { animation-delay: 0.2s; }
    nav ul.show li:nth-child(3) { animation-delay: 0.3s; }
    nav ul.show li:nth-child(4) { animation-delay: 0.4s; }
    nav ul.show li:nth-child(5) { animation-delay: 0.5s; }
    nav ul.show li:nth-child(6) { animation-delay: 0.6s; }

    @keyframes fadeInRight {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Botón hamburguesa animado */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--fondo-blanco-claro);
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    /* Animación cuando el menú está abierto */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

/* Tablet: Ajustes intermedios */
@media (min-width: 769px) and (max-width: 1023px) {
    .propuestas-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
    }

    .candidato-content {
        gap: 2rem;
    }
}

/* Desktop: Pequeños refinamientos */
@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem; /* Título más grande */
    }
}