/* ============================================
   DINIZ BROTHERS — Design System
   Centro de Treinamento Jiu-Jitsu, MMA, Muay Thai
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   CSS Custom Properties (Tokens)
   ============================================ */
:root {
    /* ── Brand Colors ── */
    --red: #C62828;
    --red-light: #EF5350;
    --red-dark: #8E0000;
    --red-glow: rgba(198, 40, 40, 0.3);

    /* ── Neutrals ── */
    --black: #0A0A0A;
    --black-light: #141414;
    --black-card: #1A1A1A;
    --black-border: #2A2A2A;
    --gray-900: #1E1E1E;
    --gray-800: #2D2D2D;
    --gray-700: #3D3D3D;
    --gray-600: #555555;
    --gray-500: #717171;
    --gray-400: #8E8E8E;
    --gray-300: #ABABAB;
    --gray-200: #CFCFCF;
    --gray-100: #E8E8E8;
    --white: #FAFAFA;
    --white-pure: #FFFFFF;

    /* ── Semantic Colors ── */
    --success: #2E7D32;
    --warning: #F9A825;
    --error: #D32F2F;
    --info: #1565C0;
    --whatsapp: #25D366;

    /* ── Typography ── */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    --leading-tight: 1.15;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* ── Spacing ── */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* ── Layout ── */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;

    /* ── Borders ── */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
    --shadow-red: 0 4px 20px rgba(198, 40, 40, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);

    /* ── Transitions ── */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-fast: 0.2s var(--ease-out);
    --transition-normal: 0.3s var(--ease-out);
    --transition-slow: 0.5s var(--ease-in-out);

    /* ── Z-Index ── */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
    --z-whatsapp: 600;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: var(--gray-200);
    background-color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--red-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--red);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--white);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
    color: var(--gray-300);
}

::selection {
    background: var(--red);
    color: var(--white);
}

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }

.section {
    padding: var(--space-24) 0;
    position: relative;
}

.section-sm {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-4);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--red);
    border-radius: var(--radius-full);
}

.section-header p {
    max-width: 600px;
    margin: var(--space-6) auto 0;
    font-size: var(--text-lg);
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--red);
    margin-bottom: var(--space-3);
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
    display: flex;
}

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

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-sticky);
    padding: var(--space-5) 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--black-border);
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.navbar-logo img {
    height: 50px;
    width: auto;
    transition: height var(--transition-normal);
}

.navbar.scrolled .navbar-logo img {
    height: 40px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.navbar-menu a {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-300);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--white);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--red);
    border-radius: var(--radius-full);
}

.navbar-cta {
    margin-left: var(--space-4);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    cursor: pointer;
    z-index: calc(var(--z-overlay) + 1);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: var(--z-overlay);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--gray-300);
    transition: all var(--transition-fast);
    transform: translateY(20px);
    opacity: 0;
}

.mobile-menu.active a {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--red);
}

/* Stagger mobile menu items */
.mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu a:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu a:nth-child(8) { transition-delay: 0.45s; }
.mobile-menu a:nth-child(9) { transition-delay: 0.5s; }
.mobile-menu a:nth-child(10) { transition-delay: 0.55s; }

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.5) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--space-6);
}

.hero-content .section-label {
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.hero-content h1 {
    font-size: var(--text-7xl);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h1 span {
    -webkit-text-fill-color: var(--red);
    background: none;
}

.hero-content p {
    font-size: var(--text-xl);
    color: var(--gray-300);
    margin-bottom: var(--space-10);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounceDown 2s infinite;
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
    color: var(--gray-400);
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Hero interno (subpáginas) */
.hero-internal {
    min-height: 45vh;
    background: linear-gradient(
        135deg,
        var(--black) 0%,
        var(--black-light) 50%,
        var(--gray-900) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-internal::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    pointer-events: none;
}

.hero-internal .hero-content h1 {
    font-size: var(--text-5xl);
}

.hero-internal .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-400);
}

.hero-internal .breadcrumb a {
    color: var(--gray-400);
}

.hero-internal .breadcrumb a:hover {
    color: var(--red);
}

.hero-internal .breadcrumb span {
    color: var(--red);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-8);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

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

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

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

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
    color: var(--white);
}

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

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    color: var(--white);
}

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

.btn-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    color: var(--white);
}

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

.btn-outline-red:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: var(--space-4) var(--space-10);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-xs);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-700);
}

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-img-wrapper .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover .card-img-wrapper .card-overlay {
    opacity: 1;
}

.card-body {
    padding: var(--space-6);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--white);
}

.card-text {
    color: var(--gray-400);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--black-border);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.card-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--red);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-badge-outline {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
}

/* Modality Card */
.modality-card {
    position: relative;
    padding: var(--space-10);
    text-align: center;
    background: linear-gradient(145deg, var(--black-card), var(--gray-900));
}

.modality-card:hover {
    border-color: var(--red);
}

.modality-card .modality-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: rgba(198, 40, 40, 0.1);
    border: 2px solid var(--red);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.modality-card:hover .modality-icon {
    background: var(--red);
    transform: scale(1.1);
}

.modality-card .modality-icon svg {
    width: 36px;
    height: 36px;
    color: var(--red);
    transition: color var(--transition-normal);
}

.modality-card:hover .modality-icon svg {
    color: var(--white);
}

/* Team Card */
.team-card {
    text-align: center;
    position: relative;
}

.team-card .card-img {
    height: 320px;
    filter: grayscale(30%);
    transition: all var(--transition-normal);
}

.team-card:hover .card-img {
    filter: grayscale(0%);
}

.team-card .team-info {
    padding: var(--space-6);
}

.team-card .team-graduation {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(198, 40, 40, 0.15);
    color: var(--red-light);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

/* Price Card */
.price-card {
    text-align: center;
    padding: var(--space-10) var(--space-8);
    position: relative;
}

.price-card.highlighted {
    border-color: var(--red);
    background: linear-gradient(145deg, var(--black-card), rgba(198, 40, 40, 0.05));
}

.price-card.highlighted::before {
    content: 'MAIS POPULAR';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: var(--red);
    color: var(--white);
    padding: var(--space-1) var(--space-4);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
}

.price-card .price-amount {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--white);
    margin: var(--space-6) 0;
}

.price-card .price-amount small {
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--gray-400);
}

.price-card .price-original {
    text-decoration: line-through;
    color: var(--gray-500);
    font-size: var(--text-sm);
}

.price-card .price-features {
    text-align: left;
    margin: var(--space-8) 0;
}

.price-card .price-features li {
    padding: var(--space-2) 0;
    color: var(--gray-300);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.price-card .price-features li::before {
    content: '✓';
    color: var(--red);
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    padding: var(--space-8);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--red);
    opacity: 0.2;
    position: absolute;
    top: var(--space-4);
    left: var(--space-6);
    line-height: 1;
}

.testimonial-text {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--gray-300);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--red);
}

.testimonial-author-info h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.testimonial-author-info span {
    font-size: var(--text-sm);
    color: var(--red-light);
}

.testimonial-stars {
    color: var(--warning);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform var(--transition-slow);
}

.carousel-slide {
    min-width: 100%;
    padding: 0 var(--space-4);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
    background: var(--black-card);
}

.carousel-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--red);
    width: 30px;
}

/* ============================================
   Stats / Counters
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-dark) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-6xl);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-base);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   Schedule Table
   ============================================ */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--black-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--black-border);
}

.schedule-table th {
    background: var(--gray-900);
    padding: var(--space-4) var(--space-3);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--red);
}

.schedule-table td {
    padding: var(--space-3);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--black-border);
    vertical-align: middle;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover td {
    background: rgba(198, 40, 40, 0.05);
}

.schedule-badge {
    display: inline-block;
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-badge.infantil {
    background: rgba(33, 150, 243, 0.15);
    color: #64B5F6;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.schedule-badge.juvenil {
    background: rgba(255, 193, 7, 0.15);
    color: #FFD54F;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.schedule-badge.adulto {
    background: rgba(198, 40, 40, 0.15);
    color: var(--red-light);
    border: 1px solid rgba(198, 40, 40, 0.3);
}

.schedule-badge.todas {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Schedule Filters */
.schedule-filters {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    justify-content: center;
}

.schedule-filter-btn {
    padding: var(--space-2) var(--space-5);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-400);
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.schedule-filter-btn:hover,
.schedule-filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--black-card);
    border: 1px solid var(--gray-700);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--text-xl);
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--red);
    border-color: var(--red);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-200);
    margin-bottom: var(--space-2);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--gray-900);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

.form-control::placeholder {
    color: var(--gray-600);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23717171' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.form-error {
    font-size: var(--text-xs);
    color: var(--error);
    margin-top: var(--space-1);
}

.form-success {
    padding: var(--space-4);
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    color: var(--success);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}

.form-error-box {
    padding: var(--space-4);
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid var(--error);
    border-radius: var(--radius-md);
    color: var(--error);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}

/* ============================================
   WhatsApp Float
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    z-index: var(--z-whatsapp);
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-normal);
    color: var(--white);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

.whatsapp-float .whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--whatsapp);
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--black);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--black-light);
    border-top: 1px solid var(--black-border);
    padding-top: var(--space-16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-brand img {
    height: 60px;
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: var(--text-sm);
    max-width: 300px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-6);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--red);
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--gray-400);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--red);
    padding-left: var(--space-2);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: var(--gray-400);
    font-size: var(--text-sm);
}

.footer-contact li svg {
    width: 18px;
    height: 18px;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--black-border);
    padding: var(--space-6) 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin: 0;
}

/* ============================================
   Blog
   ============================================ */
.blog-card .card-body {
    padding: var(--space-6);
}

.blog-card .card-category {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-3);
}

.blog-card .card-date {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.blog-single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
}

.blog-single-content h2,
.blog-single-content h3 {
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
}

.blog-single-content p {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.blog-single-content ul,
.blog-single-content ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-8);
}

.blog-single-content li {
    margin-bottom: var(--space-2);
    color: var(--gray-300);
    list-style: disc;
}

/* Tags */
.tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--gray-900);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.tag:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ============================================
   Events
   ============================================ */
.event-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-6);
    padding: var(--space-6);
    align-items: center;
}

.event-date-box {
    text-align: center;
    background: var(--red);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    min-width: 80px;
}

.event-date-box .day {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.event-date-box .month {
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-status {
    display: inline-block;
    padding: 2px var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-status.upcoming {
    background: rgba(46, 125, 50, 0.15);
    color: #81C784;
    border: 1px solid rgba(46, 125, 50, 0.3);
}

.event-status.completed {
    background: rgba(158, 158, 158, 0.15);
    color: var(--gray-400);
    border: 1px solid rgba(158, 158, 158, 0.3);
}

/* ============================================
   Timeline (About)
   ============================================ */
.timeline {
    position: relative;
    padding: var(--space-8) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--black-border);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: var(--space-12);
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--red);
    border: 3px solid var(--black);
    border-radius: var(--radius-full);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--red);
    margin-bottom: var(--space-2);
}

/* ============================================
   Values / Features
   ============================================ */
.value-card {
    text-align: center;
    padding: var(--space-8);
}

.value-card .value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
}

/* ============================================
   Google Maps
   ============================================ */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--black-border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(80%) invert(92%) contrast(83%);
}

/* ============================================
   Instagram Feed
   ============================================ */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item .instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(198, 40, 40, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-12);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination a {
    color: var(--gray-400);
    border: 1px solid var(--black-border);
}

.pagination a:hover {
    border-color: var(--red);
    color: var(--red);
}

.pagination span.current {
    background: var(--red);
    color: var(--white);
}

/* ============================================
   Utility Classes
   ============================================ */
.bg-dark { background: var(--black-light); }
.bg-darker { background: var(--black); }
.bg-card { background: var(--black-card); }

.text-red { color: var(--red) !important; }
.text-white { color: var(--white) !important; }
.text-gray { color: var(--gray-400) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Lazy loading placeholder */
img[data-src] {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

img[data-src].loaded {
    opacity: 1;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .navbar-menu a {
        font-size: var(--text-xs);
        padding: var(--space-2);
    }
}

@media (max-width: 1024px) {
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }

    .hero-content h1 {
        font-size: var(--text-5xl);
    }

    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }

    .navbar-menu { display: none; }
    .navbar-cta { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }

    .stats-section .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }

    .section {
        padding: var(--space-16) 0;
    }

    .hero-content h1 {
        font-size: var(--text-4xl);
    }

    .hero-internal {
        min-height: 35vh;
    }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .event-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .event-date-box {
        justify-self: center;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-table {
        font-size: var(--text-xs);
    }

    .stat-number {
        font-size: var(--text-4xl);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .carousel-slide {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: var(--text-3xl);
    }

    .hero-content p {
        font-size: var(--text-base);
    }

    .whatsapp-float {
        bottom: var(--space-4);
        right: var(--space-4);
    }

    .whatsapp-tooltip {
        display: none;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
}
