/**
 * FightArtMX - Estilos del Homepage v1.2.0 (Chakra Petch + Plus Jakarta Sans + Editorial Split + Square Visual CTA Cards)
 */
:root {
  --bg-deep: #030406;
  --bg-surface: #090b10;
  --bg-elevated: #111520;
  --brand-orange: #ff6b00;
  --brand-amber: #ff9e00;
  --text-white: #ffffff;
  --text-gray: #d1d5db;
  --text-muted: #9ca3af;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-orange: rgba(255, 107, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.fightartmx-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(255, 107, 0, 0.09) 0%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: var(--text-white);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.main-content { flex: 1; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* HERO CARRUSEL GIGANTE */
.hero-section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 0;
}

.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 12 / 5;
  min-height: 320px;
  max-height: 600px;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

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

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.55s ease-in-out;
}

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

.carousel-slide-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.carousel-slide-link:hover .carousel-img {
  transform: scale(1.015);
}

/* CINTILLO INFERIOR DE TÍTULO Y SUBTÍTULO / CAPTION EN CADA HERO */
.hero-caption-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 14;
  padding: 2.75rem 2rem 1.35rem;
  background: linear-gradient(
    to top,
    rgba(3, 4, 6, 0.94) 0%,
    rgba(3, 4, 6, 0.78) 55%,
    rgba(3, 4, 6, 0.25) 85%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-caption-inner {
  max-width: 78%;
  padding-left: 1rem;
  border-left: 3.5px solid var(--brand-orange);
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.hero-caption-title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 2.05rem);
  letter-spacing: 0.04em;
  line-height: 1.12;
  color: var(--text-white);
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  margin: 0;
}

.hero-caption-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(0.82rem, 1.25vw, 1rem);
  line-height: 1.45;
  color: #e2e8f0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 0.75rem;
  background: rgba(3, 4, 6, 0.88);
  border: 1.5px solid var(--border-orange);
  color: var(--text-white);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-amber));
  border-color: var(--brand-amber);
  color: #000000;
}

.carousel-arrow.prev { left: 1rem; }
.carousel-arrow.next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 1.15rem;
  right: 1.35rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: rgba(3, 4, 6, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
}

.carousel-dot {
  height: 10px;
  width: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  width: 28px;
  background: var(--brand-orange);
}

/* EDITORIAL SPLIT SECTION (ESTILO "OUR WORK") */
.intro-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.editorial-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.55) 0%, rgba(255, 255, 255, 0.1) 55%, transparent 100%);
  margin-bottom: 3.25rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.intro-title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text-white);
  margin: 0;
}

.editorial-right p {
  color: var(--text-gray);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.editorial-right p:last-child {
  margin-bottom: 0;
}

/* SQUARE VISUAL CTA CARDS */
.cta-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.cta-visual-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-surface);
  text-decoration: none;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.85);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-visual-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-orange);
  box-shadow: 0 24px 50px -12px rgba(255, 107, 0, 0.32);
}

.cta-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cta-visual-card:hover .cta-card-bg {
  transform: scale(1.04);
}

.cta-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 4, 6, 0.15) 0%, rgba(3, 4, 6, 0.55) 55%, rgba(3, 4, 6, 0.94) 100%);
}

.cta-card-content {
  position: absolute;
  inset: 0;
  padding: 1.75rem;
  display: flex;
  align-items: flex-end;
  gap: 1.15rem;
  z-index: 10;
}

.cta-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  background: rgba(9, 11, 16, 0.9);
  border: 2px solid var(--brand-orange);
  color: var(--brand-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 24px -4px rgba(255, 107, 0, 0.5);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.cta-visual-card:hover .cta-card-icon {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-amber));
  color: #000000;
  transform: scale(1.06);
}

.cta-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cta-card-title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: 0.02em;
  color: var(--text-white);
  line-height: 1.1;
}

.cta-card-route {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-amber);
}

@media (max-width: 768px) {
  .hero-carousel { aspect-ratio: 16 / 10; min-height: 250px; }
  .carousel-arrow { width: 38px; height: 38px; }
  .hero-caption-band { padding: 2rem 1rem 2.35rem; }
  .hero-caption-inner { max-width: 100%; padding-left: 0.75rem; border-left-width: 3px; gap: 0.2rem; }
  .hero-caption-title { font-size: clamp(1rem, 4.4vw, 1.3rem); }
  .hero-caption-subtitle { font-size: 0.78rem; -webkit-line-clamp: 2; }
  .carousel-dots { right: auto; left: 50%; transform: translateX(-50%); bottom: 0.55rem; padding: 0.28rem 0.6rem; }
  .intro-section { padding-top: 3.25rem; padding-bottom: 3.5rem; }
  .editorial-grid { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
  .cta-cards-grid { grid-template-columns: 1fr; }
  .cta-card-icon { width: 60px; height: 60px; }
}
