/* CSS Variables for consistent styling */
:root {
    --bg-color: #ffffff;
    --text-color: #0f172a;
    --text-light: #f8fafc;
    --gray-light: #f1f5f9;
    --gray-medium: #64748b;
    --primary-color: #b91c1c; /* Crimson Red */
    --primary-hover: #991b1b;
    --dark-bg: #0f172a;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
}

body {
    background-color: var(--bg-color);
    line-height: 1.6;
}

img, video, iframe, picture, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

.section {
    padding: 8rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--gray-medium);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.center {
    text-align: center;
}

.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin-bottom: 2rem;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(185, 28, 28, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(185, 28, 28, 0.5);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

.full-width {
    width: 100%;
}

/* Main Header Navigation (Static & Uncluttered) */
.main-nav {
    position: relative;
    top: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.1rem 2rem;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Scroll to Top Floating Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    background: #b91c1c;
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(185, 28, 28, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #dc2626;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.5);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Transparent Banner Hero */
.hero-banner {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('assets/ui/yo.JPG');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
    padding-top: 110px;
    padding-bottom: 4rem;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.75) 50%,
        rgba(185, 28, 28, 0.45) 100%
    );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    background: transparent;
    padding: 0;
}

/* Kanji SVG Stroke Animation */
.kanji-hero-wrapper {
    margin-bottom: 0.5rem;
}

.kanji-draw-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.kanji-svg {
    width: 340px;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.6));
}

.kanji-svg path {
    stroke: #ef4444;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kanji-svg.animated path {
    opacity: 1;
    animation: drawStroke 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawStroke {
    from {
        stroke-dashoffset: var(--path-length, 300);
    }
    to {
        stroke-dashoffset: 0;
    }
}

.kanji-sublabel {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-text-box {
    max-width: 700px;
    animation: fadeIn 1s ease-out forwards;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e2e8f0 !important;
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.text-highlight {
    color: #ff4d4d !important;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
}

.red-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.word-counter-box {
    text-align: right;
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin-top: 0.35rem;
}

#word-count.limit-reached {
    color: var(--primary-color);
    font-weight: 700;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: block;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.lead-text {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--gray-medium);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.value-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    min-height: 195px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.value-card-bg1 {
    background-image: url('assets/galeria/Clases1.jpg');
    background-size: cover;
    background-position: center;
}

.value-card-bg2 {
    background-image: url('assets/galeria/adultos.png');
    background-size: cover;
    background-position: center;
}

.value-card-bg3 {
    background-image: url('assets/galeria/Clases4.jpg');
    background-size: cover;
    background-position: center;
}

.value-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.88) 100%);
    z-index: 1;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(239, 68, 68, 0.5);
}

.value-card:hover .value-card-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.82) 100%);
}

.value-card-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.value-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.value-card h4 {
    color: #ffffff !important;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.value-card p {
    color: #cbd5e1 !important;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.modern-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.modern-image:hover .about-img {
    transform: scale(1.05);
}

/* Bento Grid Classes */
.classes {
    background-color: var(--gray-light);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.bento-small {
    grid-column: span 1;
}

.bento-large {
    grid-column: span 2;
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
    border: 1px solid rgba(185, 28, 28, 0.1);
}

.bento-wide {
    grid-column: span 3;
}

.dark-card {
    background: var(--dark-bg);
    color: var(--text-light);
}

.dark-card .card-header h3 {
    color: var(--text-light);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.selection-card-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.selection-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.selection-badges .badge {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    height: auto !important;
    align-self: center !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 50px !important;
}

.badge {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    height: auto;
}

.badge-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.badge-solid {
    background: var(--primary-color);
    color: white;
}

.badge-outline-light {
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.badge-alert {
    background: #ef4444;
    color: white;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body p {
    color: var(--gray-medium);
    margin-bottom: 0;
}

.large-text {
    font-size: 1.15rem;
    line-height: 1.6;
}

.dark-card .card-body p {
    color: #cbd5e1;
}

.modern-schedule {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dark-card .modern-schedule {
    border-top-color: rgba(255,255,255,0.1);
}

.modern-schedule strong {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}

.modern-schedule span {
    font-size: 1rem;
    color: var(--gray-medium);
}

/* Tournaments & Reviews Section */
.tournaments {
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.tournament-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.tournament-review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fca5a5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-badge .stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-title {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.3;
}

.review-text {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
    border-left: 3px solid #ef4444;
    padding-left: 1rem;
    margin: 0;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: #ffffff;
    font-size: 0.95rem;
}

.author-info span {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Tournament Photos Grid */
.tournament-photos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.tournament-photo-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 300px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tournament-photo-item:hover img {
    transform: scale(1.05);
}

.photo-caption-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
}

/* Gallery Section */
.gallery {
    padding-bottom: 6rem;
}

.modern-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.gallery-item {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.video-item {
    background: #000;
}

/* Contact Footer */
.contact {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(185, 28, 28, 0.12) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding-bottom: 4rem;
}

.location-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(185, 28, 28, 0.4);
    transform: translateY(-2px);
}

.info-card-icon {
    font-size: 1.6rem;
    background: rgba(185, 28, 28, 0.15);
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--primary-color);
}

.info-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow: hidden;
}

.info-card-text strong {
    color: var(--text-light);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-text span {
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

a.info-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.info-card-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(225, 48, 108, 0.5);
    transform: translateY(-2px);
}

.info-card-icon.instagram-icon {
    background: rgba(225, 48, 108, 0.15);
    color: #e1306c;
}

/* Map Card */
.map-card {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-header-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 0.55rem 1.1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.map-footer-bar {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    z-index: 10;
}

.map-footer-bar .social-btn {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 600;
}

.map-footer-bar .social-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Modern Form */
.modern-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modern-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.75rem;
    color: var(--text-light);
    font-weight: 800;
}

.form-group {
    margin-bottom: 1.5rem;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0,0,0,0.4);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-message.hidden {
    display: none !important;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Disabled Button State */
.btn:disabled,
.btn[disabled] {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #475569 !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* CTA Banner (Harmonized Palette & Mobile Safe) */
.cta-banner {
    width: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #881337 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 24px;
    padding: 2.75rem 3rem;
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

.cta-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 650px;
    z-index: 2;
}

.cta-tag {
    display: inline-block;
    color: #fca5a5 !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.cta-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #ffffff !important;
    font-weight: 800;
    line-height: 1.2;
}

.cta-desc {
    color: #e2e8f0 !important;
    font-size: 1.05rem;
    margin: 0;
}

.cta-action {
    z-index: 2;
    flex-shrink: 0;
    max-width: 100%;
}

.btn-cta {
    background: #ffffff !important;
    color: #b91c1c !important;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    word-break: break-word;
}

.btn-cta:hover {
    background: #f8fafc !important;
    color: #991b1b !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.footer-bottom {
    background-color: #020617;
    text-align: center;
    padding: 1.5rem;
    color: #475569;
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: block;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 15px 20px;
    transition: 0.3s;
    border-radius: 5px;
    z-index: 2001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary-color);
}

.lightbox-trigger {
    cursor: pointer;
}

/* Dojo Kun Section */
.dojokun {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.dojokun-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.dojokun-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255,255,255,0.05);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.dojokun-item:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
}

.dojokun-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.8;
}

.dojokun-item p {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-small, .bento-large, .bento-wide {
        grid-column: span 1;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .tournament-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .tournament-review-card {
        padding: 1.75rem;
    }
    .section {
        padding: 4.5rem 0;
    }
    .hero-banner {
        padding-top: 100px;
        min-height: 100vh;
        align-items: center;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .kanji-draw-box {
        align-items: center;
    }
    .kanji-svg {
        width: 270px;
    }
    .hero-subtitle {
        margin: 0 auto 2rem auto;
        max-width: 100%;
    }
    
    .floating-nav {
        top: 10px;
        width: 94%;
        padding: 0.7rem 1.2rem;
    }

    .logo {
        font-size: 1.05rem;
        gap: 0.4rem;
        white-space: nowrap;
    }

    .logo-icon img {
        height: 28px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(10px);
        opacity: 1;
        pointer-events: auto;
    }
    
    .about-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .map-card {
        height: 360px;
    }

    .modern-gallery-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 1.25rem;
        width: 100%;
    }

    .gallery-item {
        grid-column: span 1 !important;
        grid-row: auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        box-shadow: var(--shadow-md) !important;
    }

    .gallery-item img, 
    .gallery-item video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .modern-form {
        padding: 2rem 1.5rem;
    }

    .dojokun-item {
        padding: 1.2rem;
        gap: 1rem;
    }
    .dojokun-item p {
        font-size: 1.1rem;
    }

    /* Separación y ajuste de botones en vista celular */
    .classes {
        padding-bottom: 5rem;
    }
    .bento-wide {
        margin-bottom: 1rem;
    }

    .selection-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        margin-bottom: 1.25rem;
    }

    .selection-badges {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.45rem;
        align-items: center;
    }

    .selection-badges .badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        height: auto !important;
        align-self: center !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .lightbox-prev, .lightbox-next {
        padding: 10px 12px;
        font-size: 24px;
        background: rgba(0,0,0,0.7);
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 15px; right: 15px; font-size: 32px; }
    .lightbox-content { max-width: 95%; max-height: 80vh; }
}

@media (max-width: 480px) {
    .section {
        padding: 3.5rem 0;
    }
    .classes {
        padding-bottom: 4.5rem;
    }
    .bento-wide {
        margin-bottom: 1.25rem;
    }
    .container {
        padding: 0 1.25rem;
    }
    .hero-title {
        font-size: 2.1rem;
        color: #ffffff !important;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
    }
    .hero-subtitle {
        font-size: 1rem;
        color: #f1f5f9 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    }
    .hero-image-box {
        min-height: 280px;
    }
    .floating-nav {
        top: 8px;
        width: 95%;
        padding: 0.5rem 0.75rem;
    }
    .logo {
        font-size: 0.9rem;
    }
    .logo-icon img {
        height: 24px;
    }
    .bento-card {
        padding: 1.35rem 1.2rem;
    }
    .selection-card-header h3 {
        font-size: 1.25rem;
    }
    .selection-badges {
        gap: 0.4rem;
        align-items: center;
    }
    .selection-badges .badge {
        font-size: 0.75rem;
        padding: 0.32rem 0.7rem !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        height: auto !important;
        align-self: center !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    .modern-form {
        padding: 1.25rem;
    }
    .dojokun-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    .dojokun-item p {
        font-size: 1rem;
    }
    .gallery-filters {
        gap: 0.5rem;
    }
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    .map-card {
        height: 310px;
    }
    .map-footer-bar {
        bottom: 10px;
        right: 10px;
        left: 10px;
        justify-content: space-between;
    }
    .map-footer-bar .social-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.78rem;
    }
    .kanji-svg {
        width: 180px !important;
        max-height: 55px !important;
    }
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.25rem;
        gap: 1.5rem;
        margin-top: 2rem;
        border-radius: 20px;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #881337 100%) !important;
    }
    .cta-content {
        align-items: center;
    }
    .btn-cta {
        width: 100%;
        max-width: 100%;
        font-size: 0.95rem;
        padding: 0.85rem 1.2rem;
        box-sizing: border-box;
        white-space: normal;
        word-break: break-word;
    }
    .whatsapp-btn {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }
    .back-to-top {
        left: 18px;
        bottom: 22px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* Institutional Site Footer (Samurai JKA Style) */
.site-footer {
    background-color: #f8fafc;
    color: #334155;
    position: relative;
    padding-top: 0;
    padding-bottom: 2rem;
    font-family: 'Outfit', sans-serif;
    border-top: 1px solid #e2e8f0;
}

.footer-top-accent {
    width: 100%;
    height: 14px;
    background-color: #b91c1c;
    margin-bottom: 3.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 1fr;
    gap: 3.5rem;
    align-items: start;
    padding-bottom: 3rem;
}

.footer-brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-brand-desc {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 450px;
}

.social-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-card-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(185, 28, 28, 0.25);
}

.footer-col-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.footer-contact-list,
.footer-institution-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact-list li a {
    color: #475569;
    text-decoration: none;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.2s ease;
}

.footer-contact-list li a:hover {
    color: #b91c1c;
}

.footer-location-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.4;
}

.footer-list-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-institution-list li {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.4;
}

.footer-institution-list li strong {
    color: #0f172a;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright-text {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
}

.footer-subtitle-tag {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
    font-weight: 600;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        padding-bottom: 2rem;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
