/* ===========================
   Variables CSS
   =========================== */
:root {
    --color-blue: #0082C2;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-dark: #1a1a1a;
    --color-gray: #808080;
    --color-gray-light: #f5f5f5;
    --color-gray-medium: #e5e5e5;
    
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
}

/* ===========================
   Reset y Base
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===========================
   Container
   =========================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===========================
   Botones
   =========================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #006a9e;
}

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

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-mobile {
    width: 100%;
    margin-top: 1rem;
}

/* ===========================
   Header
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-img {
    height: 56px;
    width: auto;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-blue);
}

.cta-desktop {
    display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-white);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.hamburger {
    top: 50%;
    transform: translate(-50%, -50%);
}

.hamburger::before {
    content: '';
    top: -8px;
}

.hamburger::after {
    content: '';
    top: 8px;
}

.mobile-menu-btn.active .hamburger {
    background-color: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile.active {
    display: flex;
}

.nav-link-mobile {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    color: var(--color-white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link-mobile:hover {
    color: var(--color-blue);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .cta-desktop {
        display: block;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-mobile {
        display: none !important;
    }
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-taekwondo.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: bold;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    display: block;
    color: var(--color-blue);
    font-size: 3rem;
    margin-top: 0.5rem;
}

.hero-text {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 4.5rem;
    }
    
    .hero-text {
        font-size: 1.5rem;
    }
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-white);
    animation: fadeIn 0.6s ease-out;
}

.section-title-dark {
    color: var(--color-black);
}

.section-divider {
    width: 6rem;
    height: 4px;
    background-color: var(--color-blue);
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.75rem;
    }
}

/* ===========================
   Nosotros Section
   =========================== */
.nosotros {
    padding: 5rem 0;
    background-color: var(--color-black);
    color: var(--color-white);
}

.nosotros-text {
    max-width: 64rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.text-large {
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.value-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--color-blue);
}

.value-icon {
    color: var(--color-blue);
    margin: 0 auto 1rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    line-height: 1;
}

.value-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.value-text {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ===========================
   Transition Image
   =========================== */
   .transition-image {
    position: relative;
    height: 44rem;
    overflow: hidden;
    background-color: #000;
}

.transition-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 2.25rem 1.25rem 3.75rem;
    text-align: center;
    color: var(--color-white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 3;
    pointer-events: auto;
}

.carousel-caption {
    max-width: 48rem;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #f8fafc;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
}

.carousel-cta {
    pointer-events: auto;
    min-width: 10rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.24);
    pointer-events: none;
    z-index: 2;
}

.carousel-content {
    z-index: 3;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    padding: 0.75rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    opacity: 0.65;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 3;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* ===========================
   Instructores Section
   =========================== */
.instructores {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.instructores-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .instructores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .instructores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.instructor-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-medium);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.instructor-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.instructor-image {
    aspect-ratio: 1;
    background-color: var(--color-gray-light);
    overflow: hidden;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info {
    padding: 1.5rem;
    text-align: center;
}

.instructor-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.instructor-rank {
    color: var(--color-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.instructor-location {
    color: var(--color-gray);
    font-size: 0.875rem;
}

/* ===========================
   Clases Section
   =========================== */
.clases {
    padding: 5rem 0;
    background-color: var(--color-gray-light);
}

.clases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .clases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.clase-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
}

.clase-image {
    aspect-ratio: 16/9;
    background-color: var(--color-gray-light);
    overflow: hidden;
}

.clase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clase-content {
    padding: 1.5rem;
}

.clase-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.clase-description {
    color: var(--color-gray);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.clase-info {
    font-size: 0.875rem;
    color: #374151;
}

.clase-info p {
    margin-bottom: 0.5rem;
}

/* ===========================
   Contacto Section
   =========================== */
.contacto {
    padding: 5rem 0;
    background-color: var(--color-black);
    color: var(--color-white);
}

.contacto-cta {
    font-size: 1.5rem;
    color: var(--color-blue);
    font-weight: bold;
}

.contacto-card {
    max-width: 64rem;
    margin: 0 auto;
}

.contacto-grid {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contacto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contacto-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.contacto-details,
.horarios-details {
    color: #d1d5db;
}

.contacto-details p,
.horarios-details p {
    margin-bottom: 1rem;
}

.contacto-details strong,
.horarios-details strong {
    color: var(--color-blue);
}

.contacto-horarios .btn {
    margin-top: 1.5rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-logo {
    height: 64px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-text {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.75;
}

.footer-title {
    font-size: 1.25rem;
    color: var(--color-blue);
    margin-bottom: 1rem;
}

.footer-contact {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-contact svg {
    color: var(--color-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-blue);
}

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

.footer-subtitle {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.footer-bottom p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* ===========================
   WhatsApp Floating Button
   =========================== */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #25D366;
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    z-index: 1100;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
    opacity: 0.95;
}

.whatsapp-fab img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 640px) {
    .whatsapp-fab {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ===========================
   Modal Clase Prueba
   =========================== */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.modal.open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.modal-dialog {
    position: relative;
    width: min(520px, 92vw);
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.modal-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: var(--color-white);
}

.modal-header p {
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

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

.form-label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 600;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.form-label input,
.form-label select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #1f2937;
    background: #0b1224;
    color: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-label input:focus,
.form-label select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 130, 194, 0.25);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: #e5e7eb;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-blue);
}

.modal-actions {
    margin-top: 0.5rem;
}

.form-note {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 0.25rem;
}

.form-success {
    margin-top: 0.75rem;
    color: #22c55e;
    font-weight: 700;
}

@media (max-width: 640px) {
    .modal-dialog {
        padding: 1.5rem;
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ===========================
   Utilidades
   =========================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
