/* =========================================================
   TXES — Landing styles
   Paleta: negro / dorado, con acentos verdes y rojos (ikurriña).
   ========================================================= */

:root {
  --bg: #0e0e10;
  --bg-alt: #14141a;
  --bg-elevated: #1c1c24;
  --surface: #1a1a22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f2eee4;
  --text-muted: #b7b3aa;
  --text-dim: #8a867e;

  --gold: #d9a441;
  --gold-strong: #eab959;
  --gold-soft: rgba(217, 164, 65, 0.15);

  --basque-red: #b7202a;
  --basque-green: #1f6b3a;
  --basque-white: #f5f2ea;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --radius-sm: 8px;

  --font-display: "Cinzel", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --container: 1160px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--gold-strong);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-transform: uppercase;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}
h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 8px 14px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* =========================================================
   Botones
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #1a1400;
  box-shadow: 0 6px 18px rgba(217, 164, 65, 0.25);
}
.btn-primary:hover {
  background: var(--gold-strong);
  color: #000;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(14, 14, 16, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(14, 14, 16, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand-logo {
  height: 44px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--text);
}
.brand-text small {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
}
.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 2px;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-cta {
  padding: 10px 18px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0a0a0c;
  background-image: url("../img/txes_bg.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 10, 12, 0.95) 0%,
      rgba(10, 10, 12, 0.75) 35%,
      rgba(10, 10, 12, 0.35) 65%,
      rgba(10, 10, 12, 0.15) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 12, 0.35) 0%,
      transparent 30%,
      transparent 70%,
      rgba(10, 10, 12, 0.6) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 60px;
  align-items: center;
}

.hero-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  animation: floaty 6s ease-in-out infinite;
}

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

.hero-content h1 .accent {
  color: var(--gold);
}

.hero-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 18px 0 22px;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================================
   Sections base
   ========================================================= */
.section {
  padding: 90px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.section-head .section-sub {
  color: var(--text-muted);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.lead {
  font-size: 1.08rem;
  color: var(--text);
}

.note {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 18px;
}
.note.center {
  text-align: center;
  margin-top: 28px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.col-media .media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.col-media .media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(217, 164, 65, 0.1),
    transparent 60%
  );
}
.col-media img {
  position: relative;
  max-height: 360px;
  width: auto;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.98rem;
}
.feature-list span {
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
}

/* =========================================================
   Horarios (tarjeta de sesión única)
   ========================================================= */
.session-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.session-day {
  background: linear-gradient(160deg, rgba(217, 164, 65, 0.18), rgba(217, 164, 65, 0.04));
  border-right: 1px solid var(--border);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.session-day-name {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.session-day-hour {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.session-info {
  padding: 28px 32px;
}
.session-info h3 {
  margin-top: 0;
}

.session-meta {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
}
.session-meta li {
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (max-width: 640px) {
  .session-card { grid-template-columns: 1fr; }
  .session-day {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 24px;
  }
  .session-info { padding: 24px; }
}

/* =========================================================
   Grid & Cards
   ========================================================= */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 164, 65, 0.35);
  box-shadow: var(--shadow);
}

.group-card .card-icon {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1;
}
.card-meta {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: -6px 0 12px;
}

/* =========================================================
   Pricing
   ========================================================= */
.pricing .price-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
}
.price-card header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.price {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  color: var(--gold);
}
.price .amount {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.price .currency {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 4px;
  letter-spacing: 0.02em;
}
.price-sub {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}
.price-features li {
  padding: 8px 0 8px 26px;
  position: relative;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.price-features li:last-child { border-bottom: 0; }
.price-features li::before {
  content: "♟";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--gold);
}
.price-card .btn {
  margin-top: auto;
}

.price-card.featured {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(217, 164, 65, 0.18);
  background: linear-gradient(180deg, rgba(217, 164, 65, 0.06), var(--surface));
}
.ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a1400;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* =========================================================
   Contacto
   ========================================================= */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-label {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.map-card {
  padding: 0 !important;
  aspect-ratio: 4 / 3;
}
.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: var(--radius);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #08080a;
  border-top: 1px solid var(--border);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  height: 42px;
  width: auto;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}
.footer-brand small {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-legal {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .hero-logo {
    max-width: 260px;
    margin: 0 auto;
  }
  .hero-divider { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .feature-list { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  .hero-bg {
    background-position: center center;
  }
  .hero-bg::before {
    background:
      linear-gradient(
        180deg,
        rgba(10, 10, 12, 0.85) 0%,
        rgba(10, 10, 12, 0.7) 100%
      );
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    background: rgba(14, 14, 16, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .primary-nav ul li {
    border-bottom: 1px solid var(--border);
  }
  .primary-nav ul li:last-child { border-bottom: 0; }
  .nav-link {
    display: block;
    padding: 14px 4px;
    font-size: 1rem;
  }
  .nav-link.active::after { display: none; }
  .nav-cta {
    align-self: center;
    width: 100%;
    max-width: 300px;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .brand-text small { display: none; }
  .btn { padding: 11px 18px; font-size: 0.9rem; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 30px); }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
