/* ===================================================
   teatroart-project.css — Estilos exclusivos .tp-
   TeatroArt Project | TeatroArt en tu colegio
   =================================================== */

/* ── Variables ── */
:root {
  --tp-gold: #FFD700;
  --tp-gold-dark: #FFA500;
  --tp-red: #5B0B0B;
  --tp-red-mid: #4A0D0D;
  --tp-black: #000;
  --tp-white: #fff;
  --tp-muted: rgba(255, 255, 255, 0.78);
  --tp-border: rgba(255, 255, 255, 0.08);
  --tp-border-gold: rgba(255, 215, 0, 0.22);
}

html { background-color: var(--tp-black); }
body.custom-bg { background-color: var(--tp-black) !important; }

/* ───────────────────────────────────────────────────
   HERO
   ─────────────────────────────────────────────────── */
.tp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--tp-black);
}

/* Fondo decorativo: dos cortinas superpuestas */
.tp-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      rgba(74, 13, 13, 0.72) 0%,
      rgba(15, 0, 0, 0.85) 55%,
      rgba(0, 0, 0, 0.97) 100%);
  z-index: 1;
}

/* Telón lateral: barra roja vertical de acento */
.tp-hero__curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--tp-gold), var(--tp-gold-dark));
  z-index: 2;
}

/* Brillo radial sutil en la esquina izquierda */
.tp-hero__glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(91, 11, 11, 0.28) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.tp-hero__inner {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
  width: 100%;
}

.tp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 9999px;
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tp-gold);
  margin-bottom: 1.75rem;
}

.tp-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tp-gold);
  animation: tp-pulse 2s ease-in-out infinite;
}

@keyframes tp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.tp-hero__tagline {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tp-gold-dark);
  margin-bottom: 0.75rem;
}

.tp-hero__h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--tp-white);
  margin: 0 0 1.75rem;
  letter-spacing: -1px;
}

.tp-hero__h1 em {
  font-style: normal;
  display: block;
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--tp-gold);
  margin-top: 0.35rem;
}

.tp-hero__desc {
  max-width: 640px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--tp-muted);
  margin: 0 0 2.5rem;
}

.tp-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 768px) {
  .tp-hero__inner { padding: 9rem 2rem 5rem; }
}

@media (min-width: 1280px) {
  .tp-hero__inner { padding: 9rem 3rem 5rem; }
}

/* ───────────────────────────────────────────────────
   SECCIÓN GENÉRICA
   ─────────────────────────────────────────────────── */
.tp-section {
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.tp-section--dark   { background: #000; }
.tp-section--band   { background: linear-gradient(135deg, #0f0000 0%, #1a0303 100%); }
.tp-section--darker { background: #06000a; }

.tp-section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

@media (min-width: 1280px) {
  .tp-section { padding: 6rem 3rem; }
  .tp-section-wrap { padding: 6rem 3rem; }
}

/* Header de sección */
.tp-section-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--tp-gold);
  margin-bottom: 0.75rem;
}

.tp-section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--tp-white);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.tp-section-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--tp-muted);
  max-width: 700px;
  margin: 0;
}

.tp-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--tp-gold), var(--tp-gold-dark));
  border-radius: 9999px;
  margin: 0 0 2rem;
}

/* ───────────────────────────────────────────────────
   PROGRAMA INCLUYE — 4 grupos
   ─────────────────────────────────────────────────── */
.tp-includes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .tp-includes-grid { grid-template-columns: 1fr 1fr; }
}

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

.tp-group-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tp-border);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.tp-group-card:hover {
  border-color: var(--tp-border-gold);
  transform: translateY(-3px);
}

.tp-group-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tp-gold), var(--tp-gold-dark));
  border-radius: 1.25rem 1.25rem 0 0;
}

.tp-group-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.tp-group-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--tp-white);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tp-group-card__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tp-group-card__items li {
  font-size: 0.9rem;
  color: var(--tp-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.tp-group-card__items li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--tp-gold);
  font-weight: 700;
}

/* ───────────────────────────────────────────────────
   CARTELERA — tarjetas visuales
   ─────────────────────────────────────────────────── */
.tp-cartelera-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

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

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

@media (min-width: 1280px) {
  .tp-cartelera-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.tp-obra-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #0a0000;
  border: 1px solid var(--tp-border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  aspect-ratio: 3 / 4;
}

.tp-obra-card:hover {
  border-color: rgba(255, 215, 0, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.tp-obra-card__img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tp-obra-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.tp-obra-card:hover .tp-obra-card__img {
  transform: scale(1.05);
}

/* Gradiente sobre la imagen */
.tp-obra-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.1) 100%);
}

.tp-obra-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.125rem 1.125rem;
}

.tp-obra-card__marca {
  display: block;
  width: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 0.625rem;
  filter: brightness(1.1);
}

.tp-obra-card__title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--tp-white);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.tp-obra-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tp-gold);
  letter-spacing: 0.05em;
}

.tp-obra-card__cta svg {
  transition: transform 0.2s ease;
}

.tp-obra-card:hover .tp-obra-card__cta svg {
  transform: translateX(3px);
}

/* Obra sin ficha: misma tarjeta pero sin hover de link */
.tp-obra-card--static {
  cursor: default;
}
.tp-obra-card--static:hover {
  transform: none;
  box-shadow: none;
}

/* ───────────────────────────────────────────────────
   COBERTURA — grid de comunas
   ─────────────────────────────────────────────────── */
.tp-comunas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
}

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

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

.tp-comuna-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--tp-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tp-comuna-item::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tp-gold);
}

.tp-cobertura-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 0.875rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

/* ───────────────────────────────────────────────────
   CÓMO ACCEDER — stepper
   ─────────────────────────────────────────────────── */
.tp-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
}

.tp-step {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.tp-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.1875rem;
  top: 2.75rem;
  bottom: 0;
  width: 2px;
  background: rgba(255, 215, 0, 0.15);
}

.tp-step__num {
  flex-shrink: 0;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tp-gold), var(--tp-gold-dark));
  color: #000;
  font-weight: 900;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.tp-step__body {
  padding: 0.125rem 0 2.25rem;
  flex: 1;
}

.tp-step__label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tp-gold);
  margin-bottom: 0.3rem;
}

.tp-step__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tp-muted);
  margin: 0;
}

.tp-step__highlight {
  display: inline-block;
  margin-top: 0.5rem;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 0.5rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  color: var(--tp-gold);
  font-weight: 600;
}

@media (min-width: 768px) {
  .tp-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
  .tp-step:not(:last-child)::after {
    bottom: -1rem;
  }
}

/* ───────────────────────────────────────────────────
   VISITA FACTIBILIDAD — bloque destacado
   ─────────────────────────────────────────────────── */
.tp-factibilidad {
  background: linear-gradient(135deg, rgba(74, 13, 13, 0.5) 0%, rgba(15, 0, 0, 0.6) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .tp-factibilidad {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
  }
}

.tp-factibilidad__icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tp-gold), var(--tp-gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.tp-factibilidad__body {}

.tp-factibilidad__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tp-white);
  margin: 0 0 0.625rem;
}

.tp-factibilidad__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tp-muted);
  margin: 0;
}

/* ───────────────────────────────────────────────────
   CTA FINAL
   ─────────────────────────────────────────────────── */
.tp-cta {
  text-align: center;
}

.tp-cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--tp-white);
  margin: 0 0 1rem;
}

.tp-cta__text {
  font-size: 1.0625rem;
  color: var(--tp-muted);
  margin: 0 auto 2.5rem;
  max-width: 520px;
}

.tp-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Botones ── */
.tp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.25rem;
  background: var(--tp-gold);
  color: #000;
  font-weight: 800;
  font-size: 0.9375rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.tp-btn-primary:hover {
  background: #f5c800;
  transform: translateY(-2px);
}

.tp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--tp-white);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.tp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}
