/* Estilos personalizados para la Asociación de Vecinos de Montealto */

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Ajuste de scroll para elementos con ancla */
#login-form {
    scroll-margin-top: 100px;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --gradient-primary: linear-gradient(135deg, #ff9999 0%, #ffb366 16.66%, #ffeb99 33.33%, #99ff99 50%, #9999ff 66.66%, #b399e6 83.33%, #d4b3f0 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Fondo animado con gradiente arcoíris */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #ff9999, #ffb366, #ffeb99, #99ff99, #9999ff, #b399e6, #d4b3f0);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Navbar personalizada con fondo negro */
.navbar {
    background: #000000 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1030; /* Asegurar que el navbar esté por encima */
    position: relative;
}

/* Dropdown del menú de configuración - asegurar que esté por delante de todo */
.navbar .nav-item.dropdown .dropdown-menu {
    z-index: 1050 !important;
    position: absolute !important;
}

/* Asegurar que el dropdown esté por encima de las cards y contenedores */
.navbar .dropdown-menu {
    z-index: 1050 !important;
}

.navbar:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Cards personalizadas con glassmorphism */
.card {
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px) scale(1.02);
}

.card-header {
    background: var(--gradient-primary) !important;
    border-bottom: none;
    font-weight: 600;
    color: white;
    padding: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Botones personalizados con gradientes */
.btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    border-radius: 25px;
}

/* Alertas personalizadas */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Tablas personalizadas */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Badges personalizados */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Formularios personalizados */
.form-control {
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #99ff99;
    box-shadow: 0 0 0 0.25rem rgba(153, 255, 153, 0.25), 0 4px 15px rgba(255, 153, 153, 0.2);
    background: white;
    transform: translateY(-2px);
}

.input-group-text {
    border-radius: 15px 0 0 15px;
    border: 2px solid #e0e0e0;
    border-right: none;
    background: var(--gradient-primary);
    color: white;
}

/* Progress bars personalizados */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 0.25rem;
}

/* Lista de grupos personalizada */
.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: all 0.3s ease;
    border-radius: 10px !important;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
}

.list-group-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Modal personalizado */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Footer personalizado con gradiente */
footer {
    margin-top: auto;
    background: var(--gradient-primary) !important;
    color: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: none;
}

footer p {
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

footer h4 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.equipo-imagen-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.equipo-imagen {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.equipo-imagen:hover {
    transform: scale(1.02);
}

/* Responsive para imagen del equipo */
@media (max-width: 768px) {
    .equipo-imagen-container {
        padding: 0.5rem;
    }
    
    footer h4 {
        font-size: 1.5rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
        border-radius: 0.375rem !important;
    }
}

/* Estados de suscripción */
.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Iconos personalizados */
.bi {
    vertical-align: -0.125em;
}

/* Espaciado personalizado */
.mb-section {
    margin-bottom: 3rem;
}

.py-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Portada Hero con efectos */
.hero-portada-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -1.5rem;
    margin-bottom: 0;
}

.hero-portada {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    animation: fadeInUp 1s ease-out;
}

.hero-portada-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9);
    display: block;
}

.hero-portada:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: none;
    padding-top: 10vh;
}

.hero-text-container {
    transform: translateY(-100px);
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    opacity: 0;
    text-align: center;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    white-space: normal;
    position: relative;
    /* Gradiente arcoíris suave e infantil para el texto */
    background: linear-gradient(90deg, 
        #ffb3ba 0%, 
        #ffdfba 14.28%, 
        #ffffba 28.56%, 
        #baffc9 42.84%, 
        #bae1ff 57.12%, 
        #d4b3f0 71.4%, 
        #ffb3d9 85.68%, 
        #ffb3ba 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.7));
    animation: slideInFromBottom 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, 
               rainbowShift 3s ease infinite;
}

@keyframes rainbowShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.hero-overlay p {
    animation: fadeInScale 1.4s ease-out 0.3s forwards;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

.hero-overlay .btn-hazte-socio {
    animation: fadeInScale 1.4s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-overlay .btn-hazte-socio:hover {
    opacity: 1 !important;
    visibility: visible !important;
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes colorChange {
    0% {
        color: white;
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    }
    25% {
        color: var(--letter-color, #ff6b6b);
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5), 0 0 15px var(--letter-color, #ff6b6b);
    }
    50% {
        color: var(--letter-color, #4ecdc4);
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5), 0 0 25px var(--letter-color, #4ecdc4);
    }
    75% {
        color: var(--letter-color, #ffe66d);
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5), 0 0 15px var(--letter-color, #ffe66d);
    }
    100% {
        color: white;
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    }
}

/* Responsive para portada */
@media (max-width: 768px) {
    .hero-portada img {
        height: 100vh;
    }
    
    .hero-overlay {
        padding-top: 5vh !important;
        padding-bottom: 5vh !important;
    }
    
    .hero-overlay h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-overlay p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-text-container {
        transform: translateY(0) !important;
        margin-bottom: 1.5rem !important;
    }
    
    .texto-manuscrito {
        font-size: 0.9rem;
        transform: rotate(-1deg);
        text-align: center !important;
    }
    
    /* Contenedor de botones - vertical en móvil */
    .hero-overlay .d-flex.justify-content-between {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    .hero-overlay .d-flex.justify-content-between > div {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-overlay .d-flex.justify-content-between > div:last-child {
        align-items: center !important;
    }
    
    .btn-hazte-socio,
    .btn-empresas {
        width: 100% !important;
        max-width: 90% !important;
        font-size: 1.1rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    .btn-hazte-socio i,
    .btn-empresas i {
        font-size: 1.2rem !important;
    }
}

/* Slider de Patrocinadores mejorado */
.patrocinadores-slider-container {
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.patrocinadores-slider-container h5 {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: none;
}

.patrocinadores-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.patrocinadores-track {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.patrocinadores-track-left {
    animation: slideLeft 25s linear infinite;
}

.patrocinadores-track-right {
    animation: slideRight 25s linear infinite;
}

.patrocinador-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: 120px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.patrocinador-item:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.patrocinador-logo {
    max-height: 80px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.95);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.patrocinador-logo:hover {
    filter: brightness(1.1);
    opacity: 1;
    transform: scale(1.15) rotate(2deg);
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Responsive para slider de patrocinadores */
@media (max-width: 768px) {
    .patrocinadores-track {
        gap: 2rem;
    }
    
    .patrocinador-item {
        padding: 0 1rem;
        height: 80px;
    }
    
    .patrocinador-logo {
        max-height: 60px;
        max-width: 120px;
    }
    
    .patrocinadores-track-left {
        animation: slideLeft 15s linear infinite;
    }
    
    .patrocinadores-track-right {
        animation: slideRight 15s linear infinite;
    }
}

/* Botón Hazte Socio */
.btn-hazte-socio {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 50%, #30cfd0 100%) !important;
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    border: none !important;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(250, 112, 154, 0.4);
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

.btn-hazte-socio:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(250, 112, 154, 0.8), 0 0 20px rgba(255, 255, 255, 0.5) !important;
    animation: gradientMove 1s ease infinite !important;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffeb3b 50%, #4dd0e1 100%) !important;
    filter: brightness(1.1);
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
}

.btn-hazte-socio:active {
    transform: translateY(-2px) scale(1.02) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-hazte-socio * {
    position: relative;
    z-index: 11 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Texto manuscrito */
.texto-manuscrito {
    font-family: 'Brush Script MT', 'Lucida Handwriting', 'Comic Sans MS', cursive;
    font-style: italic;
    font-size: 1.3rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    transform: rotate(-2deg);
    animation: fadeInScale 1.4s ease-out 0.8s forwards;
    opacity: 0;
}

/* Botón Empresas del Barrio */
.btn-empresas {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    border: none;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

.btn-empresas::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-empresas:hover::before {
    width: 400px;
    height: 400px;
}

.btn-empresas:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.6);
    animation: gradientMove 1s ease infinite;
}

.btn-empresas:active {
    transform: translateY(-2px) scale(1.02);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 768px) {
    .btn-hazte-socio {
        font-size: 1.2rem;
        padding: 0.75rem 2rem !important;
    }
}

/* Galerías de Fiestas con marcos irregulares */
.galeria-link {
    display: block;
    transition: transform 0.3s ease;
}

.galeria-link:hover {
    transform: translateY(-10px);
}

.galeria-card {
    position: relative;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.galeria-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

/* Marco irregular 1 - El Barrio de la Navidad */
.galeria-card-1 {
    clip-path: polygon(0 10%, 10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%);
    border-radius: 20px 50px 20px 50px;
}

/* Marco irregular 2 - Ferias y Fiestas */
.galeria-card-2 {
    clip-path: polygon(5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%, 0 5%);
    border-radius: 50px 20px 50px 20px;
}

/* Marco irregular 3 - Halloween */
.galeria-card-3 {
    clip-path: polygon(0 5%, 5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%);
    border-radius: 30px 30px 60px 30px;
}

.galeria-imagen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.galeria-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-card:hover .galeria-imagen img {
    transform: scale(1.15);
}

.galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.galeria-card:hover .galeria-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding-bottom: 2rem;
}

/* Responsive para galerías */
@media (max-width: 768px) {
    .galeria-card {
        height: 250px;
        margin-bottom: 2rem;
    }
    
    .galeria-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .galeria-overlay h4 {
        font-size: 1.2rem;
    }
}

/* Directorio de Empresas - Card redondeado destacado */
.directorio-empresas-card {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    border-radius: 50px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(51, 65, 85, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.directorio-empresas-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.directorio-empresas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(51, 65, 85, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.directorio-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.directorio-icon {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.directorio-text {
    flex: 1;
    color: white;
}

.directorio-text h3 {
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.directorio-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.directorio-button .btn {
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.directorio-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive para directorio */
@media (max-width: 768px) {
    .directorio-empresas-card {
        border-radius: 30px;
        padding: 2rem 1.5rem;
    }
    
    .directorio-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .directorio-icon {
        font-size: 3rem;
    }
    
    .directorio-text h3 {
        font-size: 1.5rem;
    }
    
    .directorio-text p {
        font-size: 1.1rem;
    }
    
    .directorio-button {
        width: 100%;
    }
    
    .directorio-button .btn {
        width: 100%;
    }
}

/* Estilos para el Carnet de Socio */
.carnet-socio {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.carnet-header {
    background: var(--gradient-primary);
    padding: 2rem 1.5rem;
    color: white;
}

.carnet-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.carnet-body {
    padding: 2rem 1.5rem;
}

.carnet-info-item {
    margin-bottom: 0.5rem;
}

.carnet-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.carnet-value {
    color: #333;
    font-size: 1rem;
    display: block;
}

.carnet-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.beneficiario-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

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

.beneficiario-header {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.beneficiario-body {
    color: #666;
}

/* Responsive para el carnet */
@media (max-width: 768px) {
    .carnet-header {
        padding: 1.5rem 1rem;
    }
    
    .carnet-body {
        padding: 1.5rem 1rem;
    }
    
    .carnet-logo {
        width: 60px;
        height: 60px;
    }
    
    .carnet-header h4 {
        font-size: 1.25rem;
    }
    
    .carnet-header h5 {
        font-size: 1rem;
    }
}

