/* ============================================
   EL ARTE DE GOBERNAR — Réplica + mejora
   Basado en diseño Base44 "Pulso Radio"
   Colores: carbón, rojo intenso, crema
   Tipografía: Cinzel + Lora + JetBrains Mono
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --ink: #1B1B2A;
  --charcoal: #2A2733;
  --charcoal-light: #3A3644;
  --charcoal-deep: #19171F;
  --red: #C02121;
  --red-bright: #D12A2A;
  --maroon: #9A1B1B;
  --gold: #C9A227;
  --gold-light: #E0B84D;
  --teal: #4A7A7A;
  --teal-light: #8AB0B0;
  --cream: #FAF8F4;
  --steel: #5E7A96;
  --white: #ffffff;

  --font-heading: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  --nav-height: 72px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --shadow-sm: 0 1px 2px 0 rgba(27, 27, 42, 0.05);
  --shadow: 0 4px 6px -1px rgba(27, 27, 42, 0.1), 0 2px 4px -2px rgba(27, 27, 42, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(27, 27, 42, 0.1), 0 4px 6px -4px rgba(27, 27, 42, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(27, 27, 42, 0.1), 0 8px 10px -6px rgba(27, 27, 42, 0.1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

/* ---------- Tipografía ---------- */
.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.font-mono {
  font-family: var(--font-mono);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-sm);
}

p {
  color: inherit;
}

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

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

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

.section {
  padding: 4rem 0;
}

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

/* ---------- Utilidades ---------- */
.text-white { color: var(--white); }
.text-cream { color: var(--cream); }
.text-ink { color: var(--ink); }
.text-charcoal { color: var(--charcoal); }
.text-steel { color: var(--steel); }
.text-red { color: var(--red); }

.bg-cream { background-color: var(--cream); }
.bg-charcoal { background-color: var(--charcoal); }
.bg-charcoal-deep { background-color: var(--charcoal-deep); }
.bg-white { background-color: var(--white); }

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

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(25, 23, 31, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
}

@media (min-width: 640px) {
  .brand-logo {
    width: 44px;
    height: 44px;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .brand-name {
    font-size: 0.95rem;
  }
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-style: italic;
  color: var(--steel);
  margin-top: 0.15rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--red);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--charcoal-deep);
  background-color: var(--red);
  border-radius: var(--radius-full);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-live-btn:hover {
  background-color: var(--red-bright);
  transform: translateY(-1px);
}

.nav-live-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.nav-live-waves span {
  width: 3px;
  border-radius: 2px;
  background-color: var(--charcoal-deep);
  animation: wave 1.2s ease-in-out infinite;
}

.nav-live-waves span:nth-child(1) { animation-delay: 0s; }
.nav-live-waves span:nth-child(2) { animation-delay: 0.15s; }
.nav-live-waves span:nth-child(3) { animation-delay: 0.3s; }
.nav-live-waves span:nth-child(4) { animation-delay: 0.45s; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background-color: var(--charcoal-deep);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  flex-direction: column;
  padding: calc(var(--nav-height) + 1rem) 1.5rem 1.5rem;
  gap: 0;
  overflow-y: auto;
  z-index: 1001;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.nav-menu.open {
  display: flex;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--red);
  padding-left: 0.75rem;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.nav-overlay.open {
  display: block;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  background-color: var(--charcoal-deep);
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--charcoal-deep) 0%, rgba(25, 23, 31, 0.92) 35%, rgba(25, 23, 31, 0.5) 70%, rgba(25, 23, 31, 0.25) 100%);
}

.hero-gradient-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--charcoal-deep) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem 8rem;
}

@media (min-width: 640px) {
  .hero-content {
    padding: 3rem 1.5rem 8rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 3rem 2rem 8rem;
  }
}

.hero-inner {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(192, 33, 33, 0.4);
  border-radius: var(--radius-full);
  background-color: rgba(192, 33, 33, 0.1);
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--red);
  animation: pulse 1.8s infinite;
}

.hero-badge-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.hero-logo {
  width: auto;
  max-width: min(100%, 320px);
  height: auto;
  max-height: 100px;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius);
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

@media (min-width: 640px) {
  .hero-logo {
    max-width: 420px;
    max-height: 130px;
    padding: 0.75rem;
  }
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal-light);
  text-wrap: balance;
}

.hero-tagline::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 1rem;
  border-radius: 2px;
  background: linear-gradient(to right, var(--red), var(--teal));
}

.hero-lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin-top: 1.25rem;
}

.hero-player {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

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

.hero-player-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

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

@media (min-width: 640px) {
  .hero-player-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero-player-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-player-btn {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--maroon) 100%);
  color: var(--charcoal-deep);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-player-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.05);
}

.hero-player-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.hero-player-now {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.hero-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
}

.hero-waves span {
  width: 4px;
  border-radius: 2px;
  background-color: var(--red);
  animation: wave 1.2s ease-in-out infinite;
  animation-play-state: paused;
}

.hero-waves.playing span {
  animation-play-state: running;
}

.hero-waves span:nth-child(1) { animation-delay: 0s; }
.hero-waves span:nth-child(2) { animation-delay: 0.15s; }
.hero-waves span:nth-child(3) { animation-delay: 0.3s; }
.hero-waves span:nth-child(4) { animation-delay: 0.45s; }
.hero-waves span:nth-child(5) { animation-delay: 0.6s; }
.hero-waves span:nth-child(6) { animation-delay: 0.75s; }
.hero-waves span:nth-child(7) { animation-delay: 0.9s; }
.hero-waves span:nth-child(8) { animation-delay: 1.05s; }
.hero-waves span:nth-child(9) { animation-delay: 1.2s; }

.hero-player-note {
  margin-top: 1rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
}

.hero-player-note a {
  color: var(--teal-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.hero-player-note a:hover {
  color: var(--gold-light);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red);
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-top: 0.25rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.hero-scroll:hover {
  color: var(--red);
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .hero-scroll {
    display: flex;
  }
}

/* ---------- Programación ---------- */
.schedule-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.day-selector {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.day-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(27, 27, 42, 0.7);
  background-color: var(--white);
  border: 1px solid rgba(27, 27, 42, 0.1);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.day-btn:hover {
  border-color: rgba(27, 27, 42, 0.2);
}

.day-btn.active {
  background-color: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.schedule-timeline {
  position: relative;
}

.schedule-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background-color: rgba(42, 39, 51, 0.15);
}

@media (min-width: 640px) {
  .schedule-timeline::before {
    left: 11px;
  }
}

.schedule-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .schedule-item {
    padding-left: 3rem;
  }
}

.schedule-dot {
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(42, 39, 51, 0.35);
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 1px rgba(42, 39, 51, 0.15);
}

@media (min-width: 640px) {
  .schedule-dot {
    width: 24px;
    height: 24px;
  }
}

.schedule-dot.live {
  background-color: var(--red);
  box-shadow: 0 0 0 1px rgba(192, 33, 33, 0.3);
}

.schedule-dot.live::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--charcoal-deep);
  animation: pulse 1.8s infinite;
}

.schedule-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background-color: var(--white);
  border: 1px solid rgba(27, 27, 42, 0.1);
  transition: all 0.25s ease;
}

.schedule-card:hover {
  border-color: rgba(42, 39, 51, 0.3);
  box-shadow: var(--shadow);
}

.schedule-card.live {
  background: linear-gradient(to right, var(--charcoal), var(--charcoal-light));
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.schedule-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .schedule-card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.schedule-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.schedule-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.schedule-card.live .schedule-title {
  color: var(--white);
}

.schedule-live-badge {
  padding: 0.15rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-deep);
  background-color: var(--red);
  border-radius: var(--radius-full);
}

.schedule-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(27, 27, 42, 0.5);
  margin-top: 0.25rem;
}

.schedule-card.live .schedule-meta {
  color: rgba(255, 255, 255, 0.7);
}

.schedule-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .schedule-time {
    margin-top: 0;
  }
}

.schedule-card.live .schedule-time {
  color: var(--red);
}

/* ---------- Programación: banner en vivo ---------- */
.live-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--charcoal-deep);
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.live-banner-accent {
  width: 6px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
  flex-shrink: 0;
}

.live-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  flex: 1;
}

@media (min-width: 640px) {
  .live-banner-content {
    gap: 1.25rem;
    padding: 2.25rem;
  }
}

.live-banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--red);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

.live-banner-text {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

/* ---------- Programas Grabados ---------- */
.archive-section {
  position: relative;
  background-color: var(--charcoal-deep);
  color: var(--white);
}

.archive-section::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 162, 39, 0.6), transparent);
}

.archive-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.archive-header .section-label {
  color: var(--gold);
}

.archive-header h2 {
  color: var(--white);
}

.archive-grid {
  display: grid;
  gap: 1.5rem;
}

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

.archive-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--gold);
  transition: all 0.25s ease;
}

.archive-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.archive-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.archive-card-date,
.archive-card-duration {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-card-date {
  color: var(--gold);
}

.archive-card-duration {
  color: rgba(255, 255, 255, 0.5);
}

.archive-card-separator {
  color: rgba(255, 255, 255, 0.3);
}

.archive-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.archive-card-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

/* ---------- Nosotros ---------- */
.about-section {
  position: relative;
  overflow: hidden;
  background-color: var(--charcoal);
  color: var(--white);
}

.about-section::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(192, 33, 33, 0.4), transparent);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-media {
  position: relative;
  order: 2;
}

@media (min-width: 1024px) {
  .about-media {
    order: 1;
  }
}

.about-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  right: -0.75rem;
  bottom: -1rem;
  display: none;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background-color: var(--red);
  color: var(--charcoal-deep);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 640px) {
  .about-badge {
    display: block;
  }
}

.about-badge-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}

.about-badge-waves span {
  width: 4px;
  border-radius: 2px;
  background-color: var(--charcoal-deep);
  animation: wave 1.2s ease-in-out infinite;
}

.about-badge-waves span:nth-child(1) { animation-delay: 0s; }
.about-badge-waves span:nth-child(2) { animation-delay: 0.15s; }
.about-badge-waves span:nth-child(3) { animation-delay: 0.3s; }
.about-badge-waves span:nth-child(4) { animation-delay: 0.45s; }
.about-badge-waves span:nth-child(5) { animation-delay: 0.6s; }
.about-badge-waves span:nth-child(6) { animation-delay: 0.75s; }

.about-badge-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.about-content {
  order: 1;
}

@media (min-width: 1024px) {
  .about-content {
    order: 2;
  }
}

.about-content h2 {
  color: var(--white);
}

.about-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.about-team-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  margin: 2rem 0 1rem;
}

.about-team {
  display: grid;
  gap: 1rem;
}

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

.team-card {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease;
}

.team-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.team-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 0.25rem;
}

.team-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.35rem;
}

/* ---------- Noticias ---------- */
.news-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .news-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.news-header-text {
  max-width: 640px;
}

.news-header .section-label {
  color: var(--charcoal);
}

.news-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background-color: var(--charcoal);
  border-radius: var(--radius-full);
  transition: background-color 0.2s ease, gap 0.2s ease;
}

.news-btn:hover {
  background-color: var(--charcoal-light);
  gap: 0.65rem;
}

.news-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--white);
  border: 1px solid rgba(27, 27, 42, 0.1);
  transition: all 0.25s ease;
}

.news-card:hover {
  border-color: rgba(42, 39, 51, 0.3);
  box-shadow: var(--shadow-lg);
}

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

.news-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 39, 51, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card:hover .news-image::after {
  opacity: 1;
}

.news-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-deep);
  background-color: var(--red);
  border-radius: var(--radius-full);
  z-index: 1;
}

.news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(27, 27, 42, 0.4);
  margin-bottom: 0.5rem;
}

.news-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  transition: color 0.2s ease;
}

.news-card:hover .news-title {
  color: var(--charcoal);
}

.news-excerpt {
  flex: 1;
  font-size: 0.9rem;
  color: rgba(27, 27, 42, 0.6);
  margin-top: 0.5rem;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
  transition: gap 0.2s ease;
}

.news-link:hover {
  gap: 0.65rem;
}

/* ---------- Contacto ---------- */
.contact-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.contact-header .section-label {
  color: var(--charcoal);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27, 27, 42, 0.5);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(27, 27, 42, 0.15);
  border-radius: 0;
  transition: border-color 0.2s ease;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--charcoal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(27, 27, 42, 0.3);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.9rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  background-color: var(--charcoal);
  border-radius: var(--radius-full);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-submit:hover {
  background-color: var(--charcoal-light);
  transform: translateY(-1px);
}

.contact-social-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27, 27, 42, 0.5);
  margin-bottom: 1rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--white);
  border: 1px solid rgba(27, 27, 42, 0.1);
  transition: all 0.25s ease;
}

.social-card:hover {
  background-color: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.social-card svg {
  width: 28px;
  height: 28px;
  transition: color 0.2s ease;
}

.social-card span {
  font-size: 0.75rem;
  font-weight: 700;
}

.social-card small {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  opacity: 0.6;
}

.contact-info {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--charcoal);
  color: var(--white);
}

.contact-info-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 1rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--red);
  margin-top: 0.15rem;
}

.contact-info-item small {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.9rem;
  color: var(--white);
}

.contact-info-item a:hover {
  color: var(--red);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--charcoal-deep);
  color: var(--white);
}

.footer-waves {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

.footer-waves-inner {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  max-width: 768px;
  margin: 0 auto;
  overflow: hidden;
}

.footer-waves-inner span {
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(192, 33, 33, 0.45), rgba(74, 122, 122, 0.35));
  animation: wave 1.2s ease-in-out infinite;
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

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

.footer-brand p {
  max-width: 280px;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Redes sociales flotantes ---------- */
.social-float {
  position: fixed;
  right: 1rem;
  bottom: 1.5rem;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .social-float {
    right: 1.5rem;
    bottom: 2rem;
  }
}

.social-float-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--charcoal-deep);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: float 3s ease-in-out infinite;
}

@media (min-width: 640px) {
  .social-float-btn {
    width: 56px;
    height: 56px;
  }
}

.social-float-btn:nth-child(1) { animation-delay: 0s; }
.social-float-btn:nth-child(2) { animation-delay: 0.5s; }
.social-float-btn:nth-child(3) { animation-delay: 1s; }

.social-float-btn:hover {
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  color: var(--white);
}

.social-float-facebook:hover { background-color: #1877F2; }

.social-float-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-float-whatsapp:hover { background-color: #25D366; }

/* ---------- Animaciones ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .schedule-card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .schedule-time {
    margin-top: 0;
  }
}
