
:root {
    --primary: #00a651;
    --primary-dark: #008a43;
    --primary-light: #00d66a;
    --secondary: #1a472a;
    --secondary-dark: #0f2818;
    --accent: #ffd700;
    --accent-dark: #ffc400;
    --text: #2c3e50;
    --text-light: #666;
    --bg: #f8faf9;
    --bg-alt: #f0f4f3;
    --card-bg: #ffffff;
    --hover: #008a43;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 166, 81, 0.2);
    --shadow-xl: 0 15px 50px rgba(0, 166, 81, 0.3);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 15px;
    --border-radius-sm: 10px;
    --border-radius-lg: 20px;
    --border-radius-xl: 25px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== FONDO ANIMADO DE CAMPO ==================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 166, 81, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(26, 71, 42, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(0, 166, 81, 0.02) 50px, rgba(0, 166, 81, 0.02) 100px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0, 166, 81, 0.02) 50px, rgba(0, 166, 81, 0.02) 100px);
    z-index: -2;
    animation: fieldMove 30s linear infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0, 166, 81, 0.01) 100%);
    z-index: -1;
    pointer-events: none;
}

@keyframes fieldMove {
    0% { background-position: 0 0, 100% 100%, 0 0, 0 0; }
    100% { background-position: 0 0, 100% 100%, 0 100px, 100px 0; }
}

/* ==================== ANIMACIONES BASE ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes ballBounce {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    15% { 
        transform: translateY(-12px) rotate(45deg); 
    }
    30% { 
        transform: translateY(0) rotate(90deg); 
    }
    45% { 
        transform: translateY(-8px) rotate(135deg); 
    }
    60% { 
        transform: translateY(0) rotate(180deg); 
    }
    75% { 
        transform: translateY(-5px) rotate(225deg); 
    }
    90% { 
        transform: translateY(0) rotate(270deg); 
    }
}

@keyframes ballSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes floatBall {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(0, -60px) rotate(180deg);
    }
    75% {
        transform: translate(-30px, -30px) rotate(270deg);
    }
}

@keyframes heroRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

@keyframes headerPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* ==================== UTILIDADES ==================== */
.no-scroll {
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ==================== ACCESIBILIDAD ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* =================================================================
   INDEX-HEADER.CSS - PARTE 2/4
   Header, Navegación, Hero y Buscador
   ================================================================= */

/* ==================== HEADER MEJORADO ==================== */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 
        0 4px 20px rgba(0, 166, 81, 0.4),
        0 10px 40px rgba(0, 166, 81, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Patrón de césped animado */
header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(255, 255, 255, 0.02) 15px,
            rgba(255, 255, 255, 0.02) 30px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(0, 0, 0, 0.02) 15px,
            rgba(0, 0, 0, 0.02) 30px
        );
    animation: headerPattern 40s linear infinite;
    pointer-events: none;
}

/* Círculo central decorativo */
header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Logo mejorado */
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.5);
}

.logo i {
    animation: ballBounce 2.5s ease-in-out infinite;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.4));
    font-size: 2rem;
}

/* Navegación mejorada */
.nav-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-buttons button,
.nav-buttons a {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.nav-buttons button::before,
.nav-buttons a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.nav-buttons button:hover::before,
.nav-buttons a:hover::before {
    width: 300px;
    height: 300px;
}

.nav-buttons button:hover,
.nav-buttons a:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nav-buttons button span,
.nav-buttons a span {
    position: relative;
    z-index: 1;
}

/* Botón Mis Reservas destacado */
.nav-buttons a[href*="mis_reservas"] {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--secondary);
    border-color: var(--accent);
    animation: reservasGlow 2s ease-in-out infinite;
}

@keyframes reservasGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    }
}

.nav-buttons a[href*="mis_reservas"]:hover {
    background: linear-gradient(135deg, var(--accent-dark), #e6b800);
    color: white;
    transform: translateY(-3px) scale(1.05);
}

/* ==================== HERO SECTION MEJORADO ==================== */
.hero {
    text-align: center;
    padding: 5rem 2rem 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 249, 0.98) 100%);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero::before {
    content: '⚽';
    position: absolute;
    font-size: 15rem;
    opacity: 0.03;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heroRotate 20s linear infinite;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: var(--secondary);
    position: relative;
    animation: slideInDown 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    animation: slideInUp 0.8s ease-out 0.2s both;
    font-weight: 500;
}

/* ==================== BUSCADOR MEJORADO ==================== */
.search-section {
    margin-top: -40px;
    margin-bottom: 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.search-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fef9 100%);
    padding: 20px 25px;
    border-radius: 50px;
    box-shadow: 
        0 15px 40px rgba(0, 166, 81, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    width: 60%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid rgba(0, 166, 81, 0.1);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.search-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

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

.search-container:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 50px rgba(0, 166, 81, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-box {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 15px;
    position: relative;
}

.location-icon {
    color: var(--primary);
    font-size: 1.4rem;
    padding-left: 5px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 166, 81, 0.3));
}

#filtroCiudad {
    border: none;
    outline: none;
    padding: 12px 15px;
    flex: 1;
    font-size: 1.05rem;
    color: var(--text);
    background: transparent;
    font-weight: 500;
    transition: all var(--transition-normal);
}

#filtroCiudad::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

#filtroCiudad:focus {
    color: var(--primary);
    font-weight: 600;
}

/* Botón GPS mejorado */
.btn-gps {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

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

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

.btn-gps:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-gps:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-gps i {
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

.btn-gps span {
    position: relative;
    z-index: 1;
}

/* Estado de búsqueda */
.search-status {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.search-status i {
    animation: spin 1s linear infinite;
}

/* Estado vacío mejorado */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
    border-radius: var(--border-radius-xl);
    border: 2px dashed rgba(0, 166, 81, 0.3);
    margin: 2rem 0;
    animation: fadeIn 0.6s ease;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ==================== RESPONSIVE HEADER Y BUSCADOR ==================== */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .nav-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 0.8rem;
        flex-wrap: wrap;
    }
    
    .nav-buttons button,
    .nav-buttons a {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-container {
        width: 90%;
        padding: 15px 20px;
        border-radius: 30px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .location-icon {
        display: none;
    }
    
    #filtroCiudad {
        width: 100%;
        padding: 10px 15px;
        border-bottom: 2px solid rgba(0, 166, 81, 0.2);
        text-align: center;
    }
    
    .btn-gps {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-buttons button,
    .nav-buttons a {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .hero {
        padding: 3rem 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .search-container {
        width: 95%;
        padding: 12px 15px;
    }
    
    #filtroCiudad {
        font-size: 0.95rem;
    }
    
    .btn-gps {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}
/* =================================================================
   INDEX-CARDS.CSS - PARTE 3/4
   Container, Cards de Predios y Mini-Schedule
   ================================================================= */

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    position: relative;
    animation: fadeIn 0.6s ease 0.6s backwards;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary);
    font-size: 2.2rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    animation: slideInDown 0.8s ease 0.5s backwards;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    animation: expandWidth 0.8s ease 1.3s backwards;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

/* ==================== GRID DE PREDIOS ==================== */
.predios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding-bottom: 4rem;
    animation: gridFadeIn 0.6s ease 0.8s backwards;
}

@keyframes gridFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== CARDS DE PREDIOS MEJORADAS ==================== */
.predio-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 166, 81, 0.1),
        0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
    animation: cardSlideUp 0.6s ease backwards;
}

.predio-card:nth-child(1) { animation-delay: 0.9s; }
.predio-card:nth-child(2) { animation-delay: 1s; }
.predio-card:nth-child(3) { animation-delay: 1.1s; }
.predio-card:nth-child(4) { animation-delay: 1.2s; }
.predio-card:nth-child(5) { animation-delay: 1.3s; }
.predio-card:nth-child(6) { animation-delay: 1.4s; }

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

/* Borde superior animado */
.predio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    animation: gradientShift 3s ease infinite;
}

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

.predio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 166, 81, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

/* Imagen del predio */
.predio-img {
    height: 220px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.predio-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 20px,
        rgba(0, 166, 81, 0.05) 20px,
        rgba(0, 166, 81, 0.05) 40px
    );
}

.predio-img i {
    position: relative;
    z-index: 1;
    animation: floatIcon 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

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

.predio-card:hover .predio-img img {
    transform: scale(1.1);
}

/* Información del predio */
.predio-info {
    padding: 1.8rem;
}

.predio-info h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1.4rem;
    font-weight: 700;
    transition: color var(--transition-normal);
}

.predio-card:hover .predio-info h3 {
    color: var(--primary);
}

.predio-info p {
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
}

.predio-card:hover .predio-info p {
    color: var(--text);
}

.predio-info p i {
    color: var(--primary);
    width: 20px;
    transition: transform var(--transition-normal);
}

.predio-card:hover .predio-info p i {
    transform: scale(1.2);
}

/* ==================== MINI-SCHEDULE MEJORADO ==================== */
.mini-schedule {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(0, 166, 81, 0.1);
    animation: fadeIn 0.5s ease 0.3s backwards;
}

.mini-schedule h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.mini-schedule h4 i {
    color: var(--primary);
    margin-right: 5px;
    animation: pulse 2s ease-in-out infinite;
}

.mini-slots-container {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg);
}

/* Scrollbar personalizado */
.mini-slots-container::-webkit-scrollbar {
    height: 6px;
}

.mini-slots-container::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 10px;
}

.mini-slots-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    transition: background var(--transition-normal);
}

.mini-slots-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--primary-dark), var(--secondary));
}

/* Mini slots */
.mini-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    cursor: default;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.mini-slot:hover::before {
    width: 100px;
    height: 100px;
}

.mini-slot:hover {
    transform: translateY(-3px) scale(1.1);
}

.mini-slot.available {
    background: linear-gradient(135deg, var(--success), #059669);
    box-shadow: 
        0 2px 8px rgba(16, 185, 129, 0.3),
        0 0 15px rgba(16, 185, 129, 0.2);
    animation: slotPulse 2s ease-in-out infinite;
}

@keyframes slotPulse {
    0%, 100% {
        box-shadow: 
            0 2px 8px rgba(16, 185, 129, 0.3),
            0 0 15px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 12px rgba(16, 185, 129, 0.5),
            0 0 25px rgba(16, 185, 129, 0.4);
    }
}

.mini-slot.reserved {
    background: linear-gradient(135deg, var(--error), #dc2626);
    opacity: 0.6;
    cursor: not-allowed;
}

.mini-slot.loading-placeholder {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    animation: loadingShimmer 1.5s ease-in-out infinite;
}

@keyframes loadingShimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: pulse 2s ease-in-out infinite;
}

/* ==================== BOTÓN VER MEJORADO ==================== */
.btn-ver {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--hover) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.btn-ver::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-ver:hover::before {
    left: 100%;
}

.btn-ver::after {
    content: '→';
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.btn-ver:hover::after {
    opacity: 1;
    right: 15px;
}

.btn-ver:hover {
    background: linear-gradient(135deg, var(--hover) 0%, var(--secondary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.5);
}

.btn-ver:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

/* ==================== ERROR BOX MEJORADO ==================== */
.error-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 3px solid var(--error);
    border-left: 8px solid var(--error);
    color: #991b1b;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem auto;
    max-width: 700px;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
    animation: slideInUp 0.5s ease;
}

.error-box h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-box h3::before {
    content: '⚠️';
    font-size: 1.5rem;
    animation: shake 0.5s ease infinite;
}

.error-box code {
    background: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.9em;
    border: 1px solid #ffcccc;
}

.error-box pre {
    background: #fff;
    padding: 1rem;
    overflow-x: auto;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #ffcccc;
    margin-top: 1rem;
}

/* ==================== RESPONSIVE CARDS ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem 3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .predios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .predio-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .predio-img {
        height: 200px;
    }
    
    .predio-info {
        padding: 1.5rem;
    }
    
    .mini-schedule h4 {
        font-size: 0.9rem;
    }
    
    .mini-slot {
        min-width: 45px;
        height: 45px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .predio-card {
        border-radius: 15px;
    }
    
    .predio-img {
        height: 180px;
        font-size: 3rem;
    }
    
    .predio-info {
        padding: 1.2rem;
    }
    
    .predio-info h3 {
        font-size: 1.2rem;
    }
    
    .predio-info p {
        font-size: 0.9rem;
    }
    
    .mini-schedule {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .mini-slot {
        min-width: 42px;
        height: 42px;
        font-size: 0.7rem;
    }
    
    .btn-ver {
        padding: 12px;
        font-size: 0.9rem;
    }
}
/* =================================================================
   INDEX-MODALS.CSS - PARTE 4/4
   Modales de Login/Registro y Alertas
   ================================================================= */

/* ==================== MODALES BASE ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 71, 42, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

/* Patrón de campo en el overlay */
.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.02) 50px,
            rgba(255, 255, 255, 0.02) 100px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.02) 50px,
            rgba(255, 255, 255, 0.02) 100px
        );
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.2s forwards;
}

/* ==================== CONTENIDO DEL MODAL ==================== */
.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fef9 100%);
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 166, 81, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: modalSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(0.8) rotateX(20deg);
    }
    60% {
        transform: translateY(10px) scale(1.05) rotateX(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

/* Header del modal con efecto estadio */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 0;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

/* Patrón de césped en el header */
.modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

/* Partículas de balones flotantes */
.modal-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Título del modal */
.modal-content h2 {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem 2.5rem 1rem;
    margin: 0;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.modal-content h2::before {
    content: '⚽';
    display: block;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: ballSpin 3s linear infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Botón cerrar */
.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(5px);
}

.modal-close:hover {
    background: white;
    color: var(--primary);
    transform: rotate(90deg) scale(1.1);
    border-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ==================== FORMULARIOS ==================== */
.modal-content form {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    padding-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    animation: slideInLeft 0.5s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label::before {
    content: '⚽';
    font-size: 0.9rem;
    opacity: 0.6;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    padding-left: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
}

/* Iconos en los inputs */
.form-group::before {
    content: '';
    position: absolute;
    left: 15px;
    bottom: 15px;
    width: 20px;
    height: 20px;
    opacity: 0.4;
    transition: all 0.3s ease;
    z-index: 1;
}

.form-group:has(#reg_nick)::before,
.form-group:has(#login_nick)::before {
    content: '👤';
    font-size: 18px;
}

.form-group:has(#reg_nombre)::before {
    content: '✏️';
    font-size: 18px;
}

.form-group:has(#reg_dni)::before {
    content: '🆔';
    font-size: 18px;
}

.form-group:has(#reg_password)::before,
.form-group:has(#login_password)::before {
    content: '🔒';
    font-size: 18px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 
        0 0 0 4px rgba(0, 166, 81, 0.1),
        0 5px 15px rgba(0, 166, 81, 0.2);
    transform: translateY(-2px);
}

.form-control:focus + .form-group::before {
    opacity: 1;
    transform: scale(1.2);
}

/* ==================== BOTÓN SUBMIT ==================== */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--secondary);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: slideInLeft 0.5s ease backwards 0.5s;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px) scale(0.98);
}

/* Link adicional */
.modal-content p {
    position: relative;
    z-index: 2;
    animation: fadeIn 0.6s ease 0.6s backwards;
}

.modal-content p a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 2px 8px;
    border-radius: 5px;
}

.modal-content p a:hover {
    background: rgba(0, 166, 81, 0.1);
    color: var(--secondary);
}

/* ==================== MODALES DE ALERTA ==================== */
.modal-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 71, 42, 0.9);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.4s ease;
    padding: 1rem;
}

.modal-alert.active {
    display: flex;
}

/* Patrón de campo de fútbol en el overlay */
.modal-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.02) 50px,
            rgba(255, 255, 255, 0.02) 100px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.02) 50px,
            rgba(255, 255, 255, 0.02) 100px
        );
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.2s forwards;
}

/* Contenido del modal de alerta */
.modal-alert-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fef9 100%);
    border-radius: 25px;
    width: 100%;
    max-width: 500px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 166, 81, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: modalBounceIn 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

@keyframes modalBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px) rotateX(30deg);
    }
    50% {
        transform: scale(1.08) translateY(10px) rotateX(-10deg);
    }
    70% {
        transform: scale(0.95) translateY(-5px) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0);
    }
}

@keyframes modalBounceOut {
    0% {
        opacity: 1;
        transform: scale(1) rotateX(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.7) translateY(80px) rotateX(-30deg);
    }
}

/* Header de alertas */
.modal-alert-header {
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}

/* Patrón animado */
.modal-alert-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 12px,
            currentColor 12px,
            currentColor 24px
        );
    animation: patternMove 25s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(24px, 24px) rotate(360deg); }
}

/* Colores según tipo */
.modal-alert.success .modal-alert-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.modal-alert.error .modal-alert-header {
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
    color: white;
}

.modal-alert.warning .modal-alert-header {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
}

.modal-alert.confirm .modal-alert-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
}

/* Ícono del modal */
.modal-alert-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: iconPopIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
    display: inline-block;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

@keyframes iconPopIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(20deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* Animaciones específicas por tipo */
.modal-alert.success .modal-alert-icon {
    animation: iconPopIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both,
               successGlow 2s ease-in-out 1.2s infinite;
}

@keyframes successGlow {
    0%, 100% { 
        filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3)); 
    }
    50% { 
        filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3)) 
                drop-shadow(0 0 30px rgba(16, 185, 129, 0.8)); 
    }
}

.modal-alert.confirm .modal-alert-icon {
    animation: iconPopIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both,
               ballBounce 2.5s ease-in-out 1.2s infinite;
}

.modal-alert.warning .modal-alert-icon {
    animation: iconPopIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both,
               warningPulse 2s ease-in-out 1.2s infinite;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.modal-alert.error .modal-alert-icon {
    animation: iconPopIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both,
               errorShake 0.6s ease 1.2s;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-15px) rotate(-8deg); }
    75% { transform: translateX(15px) rotate(8deg); }
}

/* Título y cuerpo de alerta */
.modal-alert-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modal-alert-body {
    padding: 2.5rem;
    text-align: center;
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.8;
}

.modal-alert-footer {
    padding: 1.5rem 2.5rem 2.5rem;
    background: linear-gradient(to top, rgba(0, 166, 81, 0.05), transparent);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botones de alerta */
.modal-alert-btn {
    padding: 16px 38px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-width: 140px;
}

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

.modal-alert-btn:hover::before {
    width: 350px;
    height: 350px;
}

.modal-alert-btn span {
    position: relative;
    z-index: 1;
}

.modal-alert-btn.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.modal-alert-btn.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 35px rgba(0, 166, 81, 0.6);
}

.modal-alert-btn.btn-secondary {
    background: white;
    color: var(--text);
    border: 2px solid #e0e0e0;
}

.modal-alert-btn.btn-secondary:hover {
    background: #f8f9fa;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-4px) scale(1.05);
}

.modal-alert-btn.btn-danger {
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.modal-alert-btn.btn-danger:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 35px rgba(239, 68, 68, 0.6);
}

/* ==================== RESPONSIVE MODALES ==================== */
@media (max-width: 768px) {
    .modal-content,
    .modal-alert-content {
        max-width: 95%;
        margin: 0 1rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
        padding: 1.5rem 1.5rem 0.5rem;
    }
    
    .modal-content h2::before {
        font-size: 2.5rem;
    }
    
    .modal-content form {
        padding: 1.5rem;
    }
    
    .form-control {
        padding: 12px 15px 12px 40px;
    }
    
    .btn-submit {
        padding: 14px;
        font-size: 1rem;
    }
    
    .modal-alert-header {
        padding: 2.5rem 1.5rem 2rem;
    }
    
    .modal-alert-icon {
        font-size: 4rem;
    }
    
    .modal-alert-title {
        font-size: 1.5rem;
    }
    
    .modal-alert-body {
        padding: 2rem 1.5rem;
        font-size: 1.05rem;
    }
    
    .modal-alert-footer {
        flex-direction: column;
        padding: 1.2rem 1.5rem 2rem;
    }
    
    .modal-alert-btn {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .modal-content h2 {
        font-size: 1.3rem;
        padding: 1.2rem 1rem 0.5rem;
    }
    
    .modal-content form {
        padding: 1.2rem;
    }
    
    .modal-alert-icon {
        font-size: 3.5rem;
    }
    
    .modal-alert-title {
        font-size: 1.3rem;
    }
    
    .modal-alert-body {
        padding: 1.5rem 1rem;
        font-size: 1rem;
    }
}
/* =================================================================
   FOOTER - PIE DE PÁGINA MEJORADO
   ================================================================= */

.footer {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding-top: 80px;
}

/* Ondas decorativas superiores */
.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
}

#wave1 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 C150,100 350,0 600,50 C850,100 1050,0 1200,50 L1200,120 L0,120 Z" fill="rgba(0,166,81,0.3)"/></svg>');
    animation: wave 12s linear infinite;
    z-index: 1;
}

#wave2 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,70 C200,20 400,100 600,70 C800,40 1000,100 1200,70 L1200,120 L0,120 Z" fill="rgba(0,166,81,0.2)"/></svg>');
    animation: wave 18s linear infinite reverse;
    z-index: 2;
}

#wave3 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,90 C300,40 500,90 600,70 C700,50 900,100 1200,80 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: wave 15s linear infinite;
    z-index: 3;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

/* Contenedor principal del footer */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
    position: relative;
    z-index: 10;
}

/* Grid de secciones */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease;
}

.footer-section {
    animation: slideInUp 0.6s ease backwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* Logo y marca del footer */
.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: pulse 3s ease-in-out infinite;
}

.footer-logo i {
    font-size: 2rem;
    animation: ballBounce 2.5s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
}
/* Títulos de secciones */
.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-title i {
    animation: floatIcon 3s ease-in-out infinite;
}

/* Enlaces del footer */
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
    transition: transform var(--transition-normal);
}

.footer-links li:hover,
.footer-contact li:hover {
    transform: translateX(8px);
}

.footer-links a,
.footer-contact a,
.footer-contact span {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-links i,
.footer-contact i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

/* Redes sociales */
.footer-social-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-button {
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    border: none;
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-button svg {
    color: white;
    width: 24px;
    height: 24px;
    z-index: 9;
    transition: transform 0.3s ease;
}

.social-button.instagram {
    background: linear-gradient(120deg, #833ab4, #fd1d1d, #fcb045);
}

.social-button.whatsapp {
    background: linear-gradient(120deg, #02ff2c, #008a12);
}

.social-button.facebook {
    background: linear-gradient(120deg, #1877f2, #0c5ec7);
}

.social-button.tiktok {
    background: linear-gradient(120deg, #000000, #ff0050, #00f2ea);
}

.social-button:active {
    transform: scale(0.85);
}

.social-button::before {
    content: "";
    position: absolute;
    width: 55px;
    height: 55px;
    background-color: rgba(33, 33, 33, 0.8);
    border-radius: 50px;
    z-index: -1;
    transition: all 0.4s ease;
}

.social-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.social-button:hover::before {
    width: 0px;
    height: 0px;
}

.social-button:hover svg {
    transform: scale(1.2) rotate(360deg);
}
/* Barra inferior del footer */
.footer-bottom {
    margin-top: 3rem;
    animation: slideInUp 0.8s ease 0.5s backwards;
}

.footer-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin-bottom: 2rem;
    animation: expandWidth 1.2s ease;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

/* Desarrollador */
.footer-developer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.dev-text {
    color: rgba(255, 255, 255, 0.8);
}

.heart-icon {
    color: #ff0050;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
}

.nexus-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid var(--accent);
    border-radius: 25px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.nexus-brand:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.nexus-brand:hover .nexus-text {
    color: var(--secondary);
}

.nexus-logo {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-weight: 800;
    transition: transform var(--transition-normal);
}

.nexus-brand:hover .nexus-logo {
    transform: rotate(360deg);
    background: white;
}

.nexus-text {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 0.5px;
    transition: color var(--transition-normal);
}

/* Copyright */
.footer-copyright {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Balones flotantes decorativos */
.footer-balls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.footer-ball {
    position: absolute;
    font-size: 2rem;
    opacity: 0.08;
    animation: floatBall 15s ease-in-out infinite;
}

.footer-ball:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.footer-ball:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.footer-ball:nth-child(3) {
    top: 30%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.footer-ball:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.footer-ball:nth-child(5) {
    top: 50%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 24s;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        margin-top: 60px;
        padding-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .footer-developer {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 1rem 1.5rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-logo {
        font-size: 1.3rem;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .nexus-text {
        font-size: 1rem;
    }

    .social-button {
        width: 45px;
        height: 45px;
    }

    .social-button svg {
        width: 20px;
        height: 20px;
    }
}