/* ============================================================
   SERRAL TEAM — Styles.css
   Estilos completos. Paleta oscura con acentos amarillos.
   EDITAR: Modifica colores, fuentes o espaciado segun necesites.
   ============================================================ */

/* ========== VARIABLES CSS ========== */
:root {
  --carbon: #0A0A0A;
  --carbon-light: #111111;
  --carbon-mid: #1A1A1A;
  --yellow: #FFD600;
  --yellow-dark: #E6C100;
  --text: #F5F5F0;
  --muted: #999999;
  --dim: #666666;
  --border: #2A2A2A;
  --whatsapp: #25D366;
  --font-display: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--carbon);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--yellow); color: var(--carbon); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
img { max-width: 100%; display: block; }
button { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--carbon); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }

/* ========== UTILITIES ========== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 4rem; } }

.desktop-only { display: none; }
.mobile-only { display: block; }
@media (min-width: 1024px) { .desktop-only { display: block; } .mobile-only { display: none; } }

.text-center { text-align: center; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.mt-12 { margin-top: 3rem; }
.mb-10 { margin-bottom: 2.5rem; }

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem; background: var(--yellow); color: var(--carbon);
  font-family: var(--font-body); font-weight: 600; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.02em; border: none;
  transition: all 0.2s ease;
}
.btn-primary:hover { background: var(--yellow-dark); transform: scale(1.02); }

.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem; background: var(--whatsapp); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.02em; border: none;
  transition: all 0.2s ease;
}
.btn-whatsapp:hover { filter: brightness(1.1); transform: scale(1.02); }
.btn-whatsapp-lg { font-size: 1.125rem; padding: 1.25rem 2.5rem; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem; background: transparent; color: var(--yellow);
  font-family: var(--font-body); font-weight: 600; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.02em;
  border: 2px solid var(--yellow); transition: all 0.2s ease;
}
.btn-outline:hover { background: var(--yellow); color: var(--carbon); }

.btn-whatsapp-header {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; background: var(--whatsapp); color: #fff;
  font-weight: 600; font-size: 0.875rem; text-transform: uppercase;
  transition: all 0.2s ease;
}
.btn-whatsapp-header:hover { filter: brightness(1.1); transform: scale(1.02); }

.filter-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem 1rem; background: transparent; color: var(--muted);
  font-family: var(--font-body); font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.02em;
  border: 1px solid var(--border); transition: all 0.2s ease; cursor: pointer;
}
.filter-tab:hover, .filter-tab.active { border-color: var(--yellow); color: var(--yellow); }

/* ========== HEADER ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 70px;
  background: rgba(10,10,10,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.header-logo img { height: 50px; width: auto; }

.desktop-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }
.desktop-nav button {
  font-size: 0.875rem; font-weight: 500; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s; background: none; border: none; cursor: pointer;
}
.desktop-nav button:hover, .desktop-nav button.active { color: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.mobile-whatsapp-icon {
  width: 44px; height: 44px; background: var(--whatsapp); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.hamburger { padding: 0.5rem; color: #fff; background: none; border: none; }
@media (min-width: 1024px) { .hamburger, .mobile-whatsapp-icon { display: none; } }

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,10,10,0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu-close { position: absolute; top: 1.25rem; right: 1.25rem; padding: 0.5rem; color: #fff; background: none; border: none; }
.mobile-menu-nav { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.mobile-menu-nav a, .mobile-menu-nav button {
  font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase;
  color: #fff; letter-spacing: 0.05em; position: relative; background: none; border: none; cursor: pointer;
}
.mobile-menu-nav a:hover, .mobile-menu-nav button:hover { color: var(--yellow); }

/* ========== HERO ========== */
.hero { position: relative; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.70) 50%, rgba(10,10,10,0.90) 100%); }
.hero-grain { position: absolute; inset: 0; z-index: 1; opacity: 0.03; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-drift 8s linear infinite;
}
@keyframes grain-drift { 0% { background-position: 0 0; } 100% { background-position: 10px 10px; } }

.hero-content { position: relative; z-index: 10; padding: 0 1rem; max-width: 900px; }
.hero-logo-badge { display: inline-block; border: 3px solid var(--yellow); padding: 0.5rem; background: rgba(10,10,10,0.8); margin-bottom: 1.5rem; }
.hero-logo-badge img { width: 100px; height: auto; }
@media (min-width: 768px) { .hero-logo-badge img { width: 140px; } }

.hero-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; text-transform: uppercase; line-height: 1.05; color: var(--text); text-shadow: 0 2px 40px rgba(0,0,0,0.8); }
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 5rem; } }

.hero-subtitle { margin-top: 1.5rem; font-size: 1.125rem; color: var(--muted); max-width: 700px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-ctas { margin-top: 2.5rem; display: flex; flex-direction: column; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }

.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; color: var(--muted); animation: bounce-scroll 2s ease infinite; }
@keyframes bounce-scroll { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* Hero animations */
.hero-anim { opacity: 0; animation: hero-in 0.7s ease-out forwards; }
@keyframes hero-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-logo-badge.hero-anim { animation-name: hero-logo; }
@keyframes hero-logo { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

/* ========== SECTIONS ========== */
.section { padding: 4rem 0; }
.section[id] { scroll-margin-top: 90px; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }

.bg-carbon { background: var(--carbon); }
.bg-carbon-light { background: var(--carbon-light); }

.section-header { margin-bottom: 3rem; }
.section-header h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; color: var(--text); margin-top: 0.75rem; }
@media (min-width: 768px) { .section-header h2 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .section-header h2 { font-size: 3rem; } }

.section-header .subtitle { margin-top: 1rem; font-size: 1.125rem; color: var(--muted); max-width: 600px; }
.section-header.text-center .subtitle { margin-left: auto; margin-right: auto; }

.label-eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--yellow); font-family: var(--font-body); }

/* ========== DISCIPLINE CARDS ========== */
.discipline-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .discipline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .discipline-grid { grid-template-columns: repeat(3, 1fr); } }

.discipline-card { position: relative; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; cursor: pointer; }
.discipline-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.discipline-card:hover img { transform: scale(1.08); }
.discipline-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 50%, transparent 100%); z-index: 1; }
.discipline-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; z-index: 2; }
.discipline-accent { width: 40px; height: 3px; background: var(--yellow); margin-bottom: 0.75rem; }
.discipline-content h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; text-transform: uppercase; color: var(--text); }
.discipline-content p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }

/* ========== STEPS (Cómo Empezar) ========== */
.steps-container { position: relative; }
.steps-line { position: absolute; top: 30px; left: 12.5%; right: 12.5%; height: 1px; background: var(--border); }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; position: relative; }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step { display: flex; flex-direction: row; align-items: flex-start; gap: 1rem; }
@media (min-width: 1024px) { .step { flex-direction: column; align-items: center; text-align: center; } }

.step-number { flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--carbon); z-index: 2; }
@media (min-width: 768px) { .step-number { width: 60px; height: 60px; font-size: 1.5rem; } }

.step-content h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-transform: uppercase; color: var(--text); letter-spacing: 0.03em; }
.step-content p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

/* ========== SCHEDULE ========== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

.schedule-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.schedule-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 900px; }
.schedule-table thead th { background: var(--carbon-light); color: var(--yellow); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 1rem; text-align: left; border: 1px solid var(--border); }
.schedule-table tbody td { padding: 0.75rem; border: 1px solid var(--border); font-size: 0.8125rem; vertical-align: top; }
.schedule-column { display: flex; flex-direction: column; gap: 0.55rem; }

.schedule-cell { padding: 0.25rem 0.5rem; border-left: 3px solid transparent; transition: opacity 0.3s; }
.schedule-cell.bjj { border-left-color: var(--yellow); }
.schedule-cell.mma { border-left-color: #FF4444; }
.schedule-cell.boxeo { border-left-color: #4488FF; }
.schedule-cell.karate { border-left-color: #FF8800; }
.schedule-cell.funcional { border-left-color: #44DD88; }
.schedule-cell.kids { border-left-color: #CC66FF; }
.schedule-cell.dimmed { opacity: 0.2; }
.schedule-cell .cell-time { color: var(--yellow); font-weight: 600; font-size: 0.75rem; display: block; }
.schedule-cell .cell-activity { color: var(--text); font-weight: 500; font-size: 0.8125rem; }

.schedule-note { margin-top: 1.5rem; font-size: 0.75rem; color: var(--dim); }

/* Mobile schedule */
.mobile-schedule { display: flex; flex-direction: column; gap: 0.5rem; }
.schedule-day { border: 1px solid var(--border); background: var(--carbon-light); overflow: hidden; }
.schedule-day-header { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1rem; background: none; border: none; color: var(--text); cursor: pointer; }
.schedule-day-header > span { font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.schedule-day-header svg { transition: transform 0.3s; color: var(--muted); }
.schedule-day-header.is-open svg { transform: rotate(180deg); }
.schedule-day-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.schedule-day-body.is-open { max-height: 800px; }
.schedule-day-list { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.schedule-day-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-left: 3px solid transparent; padding-left: 0.75rem; }
.schedule-day-item .item-time { color: var(--yellow); font-weight: 600; font-size: 0.875rem; white-space: nowrap; min-width: 90px; }
.schedule-day-item .item-activity { color: var(--text); font-size: 0.875rem; }
.schedule-day-item.dimmed { opacity: 0.2; }

/* ========== INSTRUCTORS ========== */
.instructor-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .instructor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .instructor-grid { grid-template-columns: repeat(3, 1fr); } }

.instructor-card { background: var(--carbon); border: 1px solid var(--border); overflow: hidden; }
.instructor-photo { aspect-ratio: 3/4; overflow: hidden; }
.instructor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.instructor-card:hover .instructor-photo img { transform: scale(1.05); }
.instructor-info { padding: 1.5rem; }
.instructor-info h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; text-transform: uppercase; color: var(--text); letter-spacing: 0.03em; }
.instructor-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.instructor-tag { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(255,214,0,0.15); color: var(--yellow); padding: 0.25rem 0.5rem; }
.instructor-info p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

/* ========== GALLERY ========== */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item { position: relative; overflow: hidden; border: 1px solid var(--border); cursor: pointer; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-caption { position: absolute; inset: 0; background: rgba(10,10,10,0.7); display: flex; align-items: flex-end; padding: 1rem; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption p { color: var(--text); font-size: 0.875rem; transform: translateY(10px); transition: transform 0.3s; }
.gallery-item:hover .gallery-caption p { transform: translateY(0); }

.link-yellow { color: var(--yellow); font-weight: 600; }
.link-yellow:hover { text-decoration: underline; }

/* ========== PHILOSOPHY ========== */
.philosophy-section { position: relative; overflow: hidden; }
.philosophy-watermark { position: absolute; right: -100px; top: 50%; transform: translateY(-50%); opacity: 0.03; pointer-events: none; }
.philosophy-watermark img { width: 400px; height: auto; }

.pillars-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }

.pillar-card { background: var(--carbon); border: 1px solid var(--border); border-left: 4px solid var(--yellow); padding: 2rem; }
.pillar-card svg { margin-bottom: 1rem; }
.pillar-card h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; text-transform: uppercase; color: var(--text); margin-bottom: 0.75rem; }
.pillar-card p { font-size: 1rem; color: var(--muted); line-height: 1.6; }

/* ========== FAQ ========== */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--carbon-light); border: 1px solid var(--border); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; text-align: left; cursor: pointer; transition: background 0.2s; border: none; background: none; }
.faq-question:hover { background: var(--carbon-mid); }
.faq-question.is-open { border-left: 3px solid var(--yellow); }
.faq-question span { font-size: 1rem; font-weight: 500; color: var(--text); padding-right: 1rem; }
.faq-question svg { flex-shrink: 0; color: var(--muted); transition: transform 0.3s; }
.faq-question.is-open svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; opacity: 0; }
.faq-answer.is-open { max-height: 500px; opacity: 1; }
.faq-answer p { padding: 0 1.5rem 1.25rem; font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item svg { flex-shrink: 0; margin-top: 2px; }
.contact-item a { color: var(--text); transition: color 0.2s; }
.contact-item a:hover { color: var(--yellow); }
.contact-map { display: block; width: 100%; height: 320px; border: 0; }
@media (min-width: 768px) { .contact-map { height: 400px; } }
@media (min-width: 1024px) { .contact-map { height: 100%; min-height: 450px; } }

/* ========== FOOTER ========== */
.footer { background: var(--carbon-light); border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-logo { height: 60px; width: auto; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links button, .footer-links a, .footer-links span { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; background: none; border: none; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--yellow); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; width: 60px; height: 60px; background: var(--whatsapp); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: all 0.3s; opacity: 0; transform: translateY(1rem); pointer-events: none; }
.whatsapp-float.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
.whatsapp-float-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); animation: pulse-ring 3s ease-out infinite; z-index: -1; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1.6); opacity: 0; } }

/* ========== SCROLL REVEAL ========== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   LIGHTBOX — Galería + Disciplinas
   Hover: pequeña etiqueta "Ver más" superpuesta (data-caption-long
   se usa para el texto extendido que aparece dentro del modal).
   ============================================================ */

.lightbox-trigger { position: relative; }
.lightbox-trigger:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* Etiqueta que aparece al pasar el cursor (o hacer foco con teclado) */
.lightbox-hint {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.65rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.lightbox-hint svg { width: 14px; height: 14px; flex-shrink: 0; }
.lightbox-trigger:hover .lightbox-hint,
.lightbox-trigger:focus-visible .lightbox-hint {
  opacity: 1;
  transform: translateY(0);
}

/* En móvil no hay hover real: mostramos la etiqueta siempre, tenue,
   para indicar que la foto se puede abrir en grande */
@media (hover: none) {
  .lightbox-hint { opacity: 0.85; transform: translateY(0); pointer-events: none; }
}

/* Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem 2rem;
  background: rgba(10, 10, 10, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-modal.is-open { opacity: 1; visibility: visible; }

.lightbox-modal-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border: 1px solid var(--border);
  background: var(--carbon-light);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.lightbox-modal.is-open .lightbox-image { transform: scale(1); }

.lightbox-caption {
  margin-top: 1.25rem;
  max-width: 65ch;
  text-align: center;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--muted);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover,
.lightbox-close:focus-visible { border-color: var(--yellow); color: var(--yellow); }

@media (max-width: 640px) {
  .lightbox-modal { padding: 3.25rem 1rem 1.5rem; }
  .lightbox-close { top: -2.6rem; right: 0; width: 38px; height: 38px; }
  .lightbox-caption { font-size: 0.875rem; }
}
