/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #0026ff;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.header-logo {
    height: 80px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav a:hover {
    color: var(--secondary-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background:linear-gradient(135deg, rgba(174, 174, 174, 0.8) 0%, rgba(32, 32, 32, 0.8) 100%), url('https://dominoalbacete.com/wp-content/uploads/2023/05/Sfoto-3.png') center/cover no-repeat;
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 80px;
    position: relative;
    background-attachment: fixed;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 500px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    filter: invert(1);
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

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

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

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 6px 20px rgba(0, 38, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    border: 2px solid #25d366;
}

.btn-whatsapp:hover {
    background: transparent;
    color: #25d366;
    border: 2px solid #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-phone {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    border: 2px solid var(--accent-color);
}

.btn-phone:hover {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 6px 20px rgba(0, 38, 255, 0.3);
}

/* Iconos en botones */
.btn i {
    margin-right: 0.5rem;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.btn:hover i {
    transform: scale(1.05);
}

/* Efectos adicionales para botones */
.btn:active {
    transform: scale(0.98);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 38, 255, 0.3);
}

.btn-whatsapp:focus {
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

/* Animación de carga para botón PDF */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Bases Section */
.bases {
    background: var(--light-bg);
    padding: 5rem 0;
}

.bases-container {
    max-width: 100%;
    padding: 0 2rem;
}

.bases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.base-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.base-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.base-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.base-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.base-item p {
    color: #666;
}

.bases-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 2rem;
    font-style: italic;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Inscripción Section */
.inscripcion {
    background: var(--white);
    padding: 5rem 0;
}

.inscripcion-container {
    max-width: 100%;
    padding: 0 2rem;
}

.inscripcion-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
}

.contactos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contacto-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contacto-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.contacto-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Ubicación Section */
.ubicacion {
    background: var(--light-bg);
}

.ubicacion-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.ubicacion-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.direccion {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.ubicacion-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ubicacion-map iframe {
    border-radius: 15px;
}

/* Contacto Section */
.contacto {
    background: var(--white);
}

.contacto-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contacto-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contacto-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.contacto-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-link {
    display: inline-block;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-weight: 500;
}

.contacto-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.footer-bottom p {
    line-height: 1.6;
}

.footer-bottom a {
    color: #3498db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
        line-height: 1.8;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        display: none;
    }
    
    .hero {
        margin-top: 0;
    }
    
    .hero {
        background-attachment: scroll;
        padding: 6rem 0 3rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .logo-img {
        max-height: 200px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .bases-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .bases-container {
        padding: 0 1rem;
    }
    
    .ubicacion-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .ubicacion-info {
        text-align: center;
    }
    
    .contactos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .inscripcion-container {
        padding: 0 1rem;
    }
    
    .contacto-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        display: none;
    }
    
    .hero {
        padding: 4rem 0 3rem;
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .bases-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 1fr);
        gap: 1rem;
    }
    
    .bases-container {
        padding: 0 1rem;
    }
    
    .contactos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .inscripcion-container {
        padding: 0 1rem;
    }
    
    .ubicacion-info {
        text-align: center;
    }
    
    .footer-content {
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.8;
    }
    
    .mobile-break {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Efectos de scroll para secciones */
section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

section.fade-out {
    opacity: 0.3;
    transform: translateY(-20px);
}

section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

section.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

section.fade-out-down {
    opacity: 0.3;
    transform: translateY(20px);
}