/*
Theme Name: Rebels Child
Theme URI: https://rebelstarifa.com
Description: Rebels Kitesurf Tarifa — Child Theme 2026 Restyling
Author: Rebels Team
Template: rebels-tema-base
Version: 2.0.0
Text Domain: rebels-child
*/

/* ============================================================
   IMPORT PARENT THEME
   ============================================================ */
@import url('../rebels-tema-base/style.css');

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;500;600;700&family=Barlow:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS VARIABLES — Design Tokens from Claude Design
   ============================================================ */
:root {
  /* Colors */
  --rebels-bg:        #0D0D0D;
  --rebels-bg2:       #1A1A1A;
  --rebels-bg3:       #252525;
  --rebels-gold:      #F5C400;
  --rebels-gold-dim:  rgba(255,255,255,0.08);
  --rebels-gold-border: rgba(255,255,255,0.2);
  --rebels-white:     #F5F5F5;
  --rebels-gray:      #AAAAAA;
  --rebels-gray-mid:  #CCCCCC;
  --rebels-border:    rgba(255,255,255,0.1);
  --rebels-border2:   rgba(255,255,255,0.14);
  --rebels-green:     #25D366;
  --rebels-green-txt: #04230f;

  /* Typography */
  --font-display:     'Bebas Neue', sans-serif;
  --font-condensed:   'Barlow Condensed', sans-serif;
  --font-body:        'Barlow', sans-serif;

  /* Layout */
  --max-w:            1280px;
  --pad-x:            max(28px, calc((100% - 1280px) / 2));
  --section-pad:      96px;
  --nav-h:            72px;
  --radius:           2px;
  --transition:       200ms ease;
}

/* ============================================================
   GLOBAL RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--rebels-bg);
  color: var(--rebels-white);
  font-family: var(--font-body);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
#rebels-content-wrap a,
#rebels-content-wrap a:link,
#rebels-content-wrap a:visited {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================================
   TOP BAR
   ============================================================ */
#rebels-topbar {
  background: #080808;
  padding: 6px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rebels-gray);
  border-bottom: 1px solid var(--rebels-border);
  flex-wrap: wrap;
  gap: 8px;
}

#rebels-topbar a { color: var(--rebels-gray); transition: color var(--transition); }
#rebels-topbar a:hover { color: var(--rebels-gold); }

.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-whatsapp {
  background: var(--rebels-green);
  color: var(--rebels-green-txt) !important;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: filter var(--transition);
}
.topbar-whatsapp:hover { filter: brightness(1.08); }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.rebels-lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rebels-lang-switcher li a {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rebels-gray);
  padding: 2px 6px;
  border-radius: var(--radius);
  transition: color var(--transition);
}

.rebels-lang-switcher li.active a,
.rebels-lang-switcher li.lang-active a,
.rebels-lang-switcher li a:hover {
  color: var(--rebels-gold);
}

.rebels-lang-switcher li { list-style: none; }

/* ============================================================
   NAVIGATION (STICKY + GLASSMORPHISM)
   ============================================================ */
#rebels-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rebels-border);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--pad-x);
  height: var(--nav-h);
}

/* Logo */
.rebels-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  text-decoration: none;
}

.rebels-logo img {
  height: 64px;
  width: 64px;
  object-fit: contain;
}

.rebels-logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 0.82;
  letter-spacing: 0.03em;
  color: #fff;
}

.rebels-logo-text span {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--rebels-gold);
  display: block;
  margin-top: 2px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  justify-content: center;
  height: var(--nav-h);
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  height: var(--nav-h);
  padding: 0 13px;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rebels-gray-mid);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: #fff;
  border-bottom-color: var(--rebels-white);
}

/* Dropdown */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  background: var(--rebels-bg2);
  border: 1px solid var(--rebels-border);
  border-top: 2px solid var(--rebels-white);
  min-width: 240px;
  z-index: 300;
  border-radius: 0 0 var(--radius) var(--radius);
}

.nav-menu li:hover .sub-menu { display: block; }

.nav-menu .sub-menu li a {
  display: block;
  padding: 12px 18px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rebels-gray);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition), background var(--transition);
}

.nav-menu .sub-menu li a:hover {
  color: var(--rebels-gold);
  background: var(--rebels-gold-dim);
}

/* Book Now CTA */
.nav-book-now {
  display: inline-flex;
  align-items: center;
  background: var(--rebels-gold) !important;
  color: #0D0D0D !important;
  font-family: var(--font-condensed) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
  transition: filter var(--transition) !important;
  white-space: nowrap;
  margin-left: 16px;
  flex-shrink: 0;
  line-height: 1 !important;
  vertical-align: middle;
  self-align: center;
}

.nav-book-now:hover {
  filter: brightness(1.1) !important;
  color: #0D0D0D !important;
}

/* Hamburger */
.rebels-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.rebels-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.rebels-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.rebels-hero-overlay,
.rebels-hero-overlay2 {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.rebels-hero-overlay {
  background: linear-gradient(90deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.78) 45%, rgba(13,13,13,0.3) 100%);
}

.rebels-hero-overlay2 {
  background: linear-gradient(180deg, rgba(13,13,13,0.2), transparent 30%, rgba(13,13,13,0.65) 100%);
}

.rebels-hero-content {
  position: relative;
  z-index: 2;
  padding: 64px var(--pad-x);
  width: 100%;
}

.rebels-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(245,196,0,0.55);
  background: rgba(245,196,0,0.1);
  padding: 7px 14px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  animation: floatY 5s ease-in-out infinite;
}

.rebels-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rebels-white);
  flex-shrink: 0;
}

.rebels-hero-badge span {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
}

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

.rebels-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(45px, 6.1vw, 107px);
  line-height: 0.84;
  letter-spacing: 0.005em;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0,0,0,0.5);
  margin: 0 0 22px;
}

.rebels-hero h1 span { color: var(--rebels-gold); }

.rebels-hero-sub {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #E8E8E8;
  max-width: 560px;
  margin-bottom: 36px;
}

.rebels-hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rebels-green);
  color: var(--rebels-green-txt);
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 17px 30px;
  border-radius: var(--radius);
  transition: filter var(--transition);
}
.btn-wa:hover { filter: brightness(1.08); color: var(--rebels-green-txt); }

.btn-wa-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rebels-green);
  color: var(--rebels-green-txt);
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 18px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: filter var(--transition);
}
.btn-wa-sm:hover { filter: brightness(1.08); color: var(--rebels-green-txt); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 17px 30px;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rebels-gold);
  color: var(--rebels-bg);
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: var(--radius);
  transition: filter var(--transition);
}
.btn-gold:hover { filter: brightness(1.08); color: var(--rebels-bg); }

/* ============================================================
   SECTION LABEL (eyebrow)
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rebels-gold);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--rebels-white);
  flex-shrink: 0;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.86;
  color: #fff;
  margin: 0;
}

.section-h2 span { color: var(--rebels-gold); }

/* ============================================================
   COURSES SECTION
   ============================================================ */
.rebels-courses {
  padding: var(--section-pad) var(--pad-x);
  background: var(--rebels-bg);
  scroll-margin-top: calc(var(--nav-h) + 16px); /* que el navbar sticky no tape el título al hacer scroll */
}

.rebels-courses-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.rebels-courses-intro {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--rebels-gray);
  max-width: 360px;
}

/* Course rows */
.course-rows { display: flex; flex-direction: column; gap: 14px; }

.course-row {
  display: grid;
  grid-template-columns: 78px 170px 1fr auto;
  align-items: center;
  gap: 28px;
  background: var(--rebels-bg2);
  border: 1px solid var(--rebels-border);
  border-left: 3px solid var(--rebels-white);
  padding: 26px 30px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.course-row:hover { background: var(--rebels-bg3); }

.course-row-icon {
  width: 62px;
  height: 62px;
  border: 1px solid var(--rebels-border2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rebels-bg);
  flex-shrink: 0;
}

.course-row-name { flex-shrink: 0; }

.course-row-badge {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.badge-popular { color: var(--rebels-green); }
.badge-beginner { color: var(--rebels-gray); }
.badge-advanced { color: var(--rebels-gold); }

.course-row-title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: #fff;
}

.course-row-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--rebels-gray);
  margin: 0;
}

.course-row-cta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}

.course-price {
  text-align: right;
}

.course-price-amount {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 0.8;
  color: var(--rebels-gold);
}

.course-price-label {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rebels-gray);
  margin-top: 4px;
}

/* ============================================================
   PACKS SECTION
   ============================================================ */
.rebels-packs {
  padding: var(--section-pad) var(--pad-x);
  background: var(--rebels-bg2);
}

.packs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 44px;
}

.pack-card {
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 38px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rebels-border);
  background-color: var(--rebels-bg2); /* fallback */
  background-size: cover;
  background-position: center;
}

/* pack-card-bg removed — background-image set inline via PHP */

.pack-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.92) 100%);
  z-index: 0;
}

.pack-card-body { position: relative; z-index: 1; }

.pack-card-body {
  position: relative;
  z-index: 1;
}

.pack-badge {
  display: inline-block;
  background: var(--rebels-gold);
  color: var(--rebels-bg);
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.pack-card h3 {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.9;
  color: #fff;
  margin: 0 0 10px;
}

.pack-card p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--rebels-gray-mid);
  max-width: 380px;
  margin-bottom: 22px;
}

.pack-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pack-price-from {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rebels-gray);
  margin-bottom: 4px;
}

.pack-price-amount {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 0.85;
  color: var(--rebels-gold);
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.rebels-team {
  padding: var(--section-pad) var(--pad-x);
  background: var(--rebels-bg2);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.team-card {
  background: var(--rebels-bg);
  border: 1px solid var(--rebels-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.team-card:hover { border-color: rgba(245,196,0,0.3); }

.team-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(0.2);
}

.team-card-body { padding: 18px; }

.team-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: #fff;
  margin: 0 0 4px;
}

.team-card-role {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rebels-gold);
}

/* ============================================================
   TARIFA SECTION
   ============================================================ */
.rebels-tarifa {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: var(--section-pad) var(--pad-x);
}

.rebels-tarifa-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
}

.rebels-tarifa-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,13,0.9) 0%, rgba(13,13,13,0.5) 60%, transparent 100%);
}

.rebels-tarifa-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
}

.rebels-tarifa h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.86;
  color: #fff;
  margin: 0 0 18px;
}

.rebels-tarifa p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--rebels-gray);
  margin-bottom: 28px;
}

.tarifa-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tarifa-stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0.9;
  color: var(--rebels-gold);
}

.tarifa-stat-lbl {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rebels-gray);
  margin-top: 4px;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.rebels-blog {
  padding: var(--section-pad) var(--pad-x);
  background: var(--rebels-bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.blog-card {
  background: var(--rebels-bg2);
  border: 1px solid var(--rebels-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card-img-wrap {
  height: 200px;
  background: var(--rebels-bg3);
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card-body {
  flex: 1;
}

.blog-card:hover { border-color: rgba(245,196,0,0.3); }

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-body { padding: 22px; }

.blog-card-cat {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rebels-gold);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: #fff;
  margin: 0 0 10px;
}

.blog-card h3 a {
  color: #fff !important;
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--rebels-gold) !important;
}

.blog-card p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--rebels-gray);
  margin-bottom: 16px;
}

.blog-card-meta {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(170,170,170,0.6);
}

/* ============================================================
   CTA FINAL SECTION
   ============================================================ */
.rebels-cta-final {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad) var(--pad-x);
  text-align: center;
  background: var(--rebels-bg);
  border-top: 1px solid var(--rebels-border);
}

.rebels-cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 500px at 50% 50%, rgba(245,196,0,0.07), transparent);
  pointer-events: none;
}

.rebels-cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.86;
  color: #fff;
  margin: 0 0 20px;
}

.rebels-cta-final h2 span { color: var(--rebels-gold); }

.rebels-cta-final p {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rebels-gray);
  margin-bottom: 36px;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
#rebels-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--rebels-green);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-pulse 2.5s infinite;
}

#rebels-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.rebels-footer {
  background: var(--rebels-bg);
  border-top: 1px solid var(--rebels-border);
  padding: 72px var(--pad-x) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rebels-border);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.footer-brand-logo img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.footer-brand-logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 0.82;
  color: #fff;
}

.footer-brand-logo-text span {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--rebels-gold);
  display: block;
}

.footer-brand p {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rebels-gray);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 700;
  color: var(--rebels-gray);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--rebels-white);
}

.footer-col h4 {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rebels-gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rebels-gold-border);
}

.footer-col a {
  display: block;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rebels-gray);
  margin-bottom: 9px;
  transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-col .wa-link {
  color: var(--rebels-green) !important;
  font-weight: 700;
}

.footer-col .wa-link:hover { color: #1da851 !important; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(170,170,170,0.5);
}

.footer-bottom a {
  color: rgba(170,170,170,0.5);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--rebels-gray); }

.footer-bottom-links { display: flex; gap: 20px; }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  #rebels-topbar { display: none; }

  /* solid header on mobile (no backdrop-filter: it breaks the fixed menu's positioning) */
  #rebels-navbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0d0d0d; }

  .nav-menu { display: none; }
  .rebels-hamburger { display: flex; }

  #rebels-navbar.nav-open .nav-menu {
    display: flex;
    flex-direction: column;
    height: auto;   /* la regla de escritorio fija height:var(--nav-h) (72px) — hay que anularla aquí o el panel móvil queda encerrado en esa altura y solo se ve el primer ítem */
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-h);   /* el menú abre DEBAJO del navbar, sin taparlo */
    bottom: 0;
    background: #0d0d0d;
    padding: 24px 24px 48px;
    z-index: 99;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-items: flex-start;
    justify-content: flex-start;
  }

  #rebels-navbar.nav-open .nav-menu > li {
    width: 100%;
  }

  #rebels-navbar.nav-open .nav-menu > li > a {
    height: auto;
    padding: 11px 0;
    font-size: 19px;
    font-family: var(--font-display);
    border-bottom: 1px solid var(--rebels-border);
    width: 100%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  #rebels-navbar.nav-open .sub-menu {
    display: block;
    position: static;
    border: none;
    border-top: none;
    background: transparent;
    min-width: 0;
    padding: 4px 0 10px 14px;
  }

  #rebels-navbar.nav-open .sub-menu li a {
    padding: 9px 0;
    font-size: 12.5px;
    border-bottom: none;
    color: var(--rebels-gray-mid);
  }

  /* Book Now dentro del menú móvil: alineado al padding y ancho completo */
  #rebels-navbar.nav-open .nav-menu > li:last-child {
    margin-left: 0 !important;
    width: 100%;
    margin-top: 18px;
  }
  #rebels-navbar.nav-open .nav-book-now {
    justify-content: flex-start;
    padding: 14px 26px !important;
    font-size: 15px !important;
    margin-top: 4px;
  }

  /* Mantener logo + hamburguesa/cierre visibles por encima del overlay del menú */
  #rebels-navbar.nav-open .rebels-logo,
  #rebels-navbar.nav-open .rebels-hamburger {
    position: relative;
    z-index: 100;
  }

  .course-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .course-row-cta {
    flex-direction: row;
    justify-content: space-between;
  }

  .packs-grid { grid-template-columns: 1fr; }

  .blog-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .rebels-tarifa-content { max-width: 100%; }
}

@media (max-width: 560px) {
  .rebels-hero h1 { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .rebels-hero-ctas { flex-direction: column; align-items: flex-start; }
  .tarifa-stats { gap: 20px; }
}

/* ============================================================
   COURSE / INNER PAGES  (prefix .rc-)  — added for page templates
   ============================================================ */
.rc-hero {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad-x) 60px;
  background-size: cover;
  background-position: center;
}
.rc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.35) 0%, rgba(13,13,13,0.55) 55%, rgba(13,13,13,0.95) 100%);
  z-index: 1;
}
.rc-hero-content { position: relative; z-index: 2; max-width: 760px; }
.rc-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 8vw, 100px);
  line-height: 0.9;
  color: #fff;
  margin: 8px 0 18px;
}
.rc-hero-h1 span { color: var(--rebels-gold); }
.rc-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--rebels-gray-mid);
  max-width: 640px;
  margin: 0 0 26px;
}
.rc-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.rc-hero-price {
  margin-top: 20px;
  font-family: var(--font-condensed);
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--rebels-gray);
}
.rc-hero-price strong { color: var(--rebels-gold); font-size: 18px; }

/* Trust bar */
.rc-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 48px;
  padding: 30px var(--pad-x);
  background: var(--rebels-bg2);
  border-bottom: 1px solid var(--rebels-border);
}
.rc-trust-item { display: flex; flex-direction: column; align-items: center; }
.rc-trust-num { font-family: var(--font-display); font-size: 34px; color: var(--rebels-gold); line-height: 1; }
.rc-trust-lbl { font-family: var(--font-condensed); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rebels-gray); margin-top: 4px; }

/* Section wrappers */
.rc-section { padding: var(--section-pad) var(--pad-x); background: var(--rebels-bg); }
.rc-section-alt { background: var(--rebels-bg2); }
.rc-section .section-h2 { margin-bottom: 44px; }

/* Split intro */
.rc-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.rc-split .section-h2 { margin-bottom: 0; }
.rc-split-text p { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--rebels-gray-mid); margin: 0 0 18px; }
.rc-split-text p:last-child { margin-bottom: 0; }

/* Included grid */
.rc-included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rc-included-item {
  display: flex; gap: 16px;
  background: var(--rebels-bg3);
  border: 1px solid var(--rebels-border);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.rc-section:not(.rc-section-alt) .rc-included-item { background: var(--rebels-bg2); }
.rc-included-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--rebels-gold-dim); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.rc-included-item h3 { font-family: var(--font-condensed); font-size: 18px; font-weight: 700; text-transform: uppercase; color: #fff; margin: 0 0 6px; }
.rc-included-item p { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--rebels-gray); margin: 0; }

/* Steps */
.rc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rc-step {
  background: var(--rebels-bg2);
  border: 1px solid var(--rebels-border);
  border-top: 2px solid var(--rebels-white);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.rc-step-num { font-family: var(--font-display); font-size: 44px; color: var(--rebels-gold); line-height: 1; margin-bottom: 12px; }
.rc-step h3 { font-family: var(--font-condensed); font-size: 21px; font-weight: 700; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.rc-step p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--rebels-gray); margin: 0; }
.rc-note { font-family: var(--font-body); font-size: 13.5px; color: var(--rebels-gray); margin: 26px 0 0; font-style: italic; }

/* Pricing */
.rc-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rc-price-card {
  position: relative;
  background: var(--rebels-bg3);
  border: 1px solid var(--rebels-border);
  border-radius: var(--radius);
  padding: 30px 26px; text-align: center;
  display: flex; flex-direction: column;
}
.rc-section:not(.rc-section-alt) .rc-price-card { background: var(--rebels-bg2); }
.rc-price-feat { border: 1px solid var(--rebels-gold-border); border-top: 3px solid var(--rebels-white); }
.rc-price-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--rebels-gold); color: var(--rebels-bg);
  font-family: var(--font-condensed); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--radius); white-space: nowrap;
}
.rc-price-card h3 { font-family: var(--font-condensed); font-size: 22px; font-weight: 700; text-transform: uppercase; color: #fff; margin: 0 0 4px; }
.rc-price-sub { font-family: var(--font-body); font-size: 13px; color: var(--rebels-gray); margin: 0 0 16px; }
.rc-price-amount { font-family: var(--font-display); font-size: 50px; color: var(--rebels-gold); line-height: 1; }
.rc-price-amount span { display: block; font-family: var(--font-condensed); font-size: 13px; color: var(--rebels-gray); letter-spacing: 0.06em; margin-top: 4px; }
.rc-price-desc { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--rebels-gray-mid); margin: 18px 0 22px; }
.rc-price-card .btn-wa-sm { justify-content: center; margin-top: auto; }

/* FAQ accordion */
.rc-faq-list { max-width: 860px; }
.rc-faq-item { border-bottom: 1px solid var(--rebels-border); }
.rc-faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; text-align: left;
  font-family: var(--font-condensed); font-size: 19px; font-weight: 600; color: #fff;
}
.rc-faq-q:hover { color: var(--rebels-gold); }
.rc-faq-chevron { flex-shrink: 0; transition: transform var(--transition); }
.rc-faq-item.open .rc-faq-chevron { transform: rotate(180deg); }
.rc-faq-a { max-height: 0; overflow: hidden; transition: max-height 320ms ease; }
.rc-faq-item.open .rc-faq-a { max-height: 400px; }
.rc-faq-a p { font-family: var(--font-body); font-size: 15.5px; line-height: 1.7; color: var(--rebels-gray-mid); margin: 0; padding: 0 0 24px; max-width: 760px; }

/* Related cards */
.rc-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rc-related-card {
  background: var(--rebels-bg3);
  border: 1px solid var(--rebels-border);
  border-radius: var(--radius);
  padding: 24px 22px; text-decoration: none;
  transition: border-color var(--transition);
}
.rc-related-card:hover { border-color: var(--rebels-gold-border); }
.rc-related-card h3 { font-family: var(--font-condensed); font-size: 19px; font-weight: 700; text-transform: uppercase; color: var(--rebels-gold) !important; margin: 0 0 8px; }
.rc-related-card p { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--rebels-gray); margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .rc-included-grid, .rc-steps, .rc-price-grid { grid-template-columns: 1fr !important; }
  .rc-related { grid-template-columns: repeat(2, 1fr); }
  .rc-split { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .rc-trust { gap: 28px; }
  .rc-related { grid-template-columns: 1fr; }
  .rc-hero { min-height: 60vh; }
}
: rotate(180deg); }
.rp-faq-a { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.rp-faq-item.open .rp-faq-a { max-height: 500px; }
.rp-faq-a p { font-family: var(--font-body); font-size: 15.5px; line-height: 1.7; color: var(--rebels-gray-mid); margin: 0; padding: 0 0 26px; max-width: 720px; }

/* Book form */
.rp-book-section { padding-top: 64px; }
.rp-book-form { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.rp-field { display: flex; flex-direction: column; }
.rp-field-wide { grid-column: 1 / -1; }
.rp-field span { font-family: var(--font-condensed); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rebels-gold); margin-bottom: 8px; }
.rp-field input, .rp-field select {
  background: var(--rebels-bg2);
  border: 1px solid var(--rebels-border2);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body); font-size: 15px; color: #fff;
}
.rp-field input:focus, .rp-field select:focus { outline: none; border-color: var(--rebels-white); }

/* Fix Chrome/Safari autofill & autocomplete: keep text white on dark fields */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px var(--rebels-bg2) inset !important;
  box-shadow: 0 0 0 1000px var(--rebels-bg2) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}
.rp-field input::placeholder { color: var(--rebels-gray); }
.rp-book-submit { grid-column: 1 / -1; justify-content: center; font-size: 16px; padding: 16px 32px; cursor: pointer; border: 0; }

/* Inner pages responsive */
@media (max-width: 900px) {
  .rp-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .rp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rp-split { grid-template-columns: 1fr; gap: 28px; }
  .rp-spot-card { grid-template-columns: 1fr; }
  .rp-spot-img { min-height: 200px; }
}
@media (max-width: 560px) {
  .rp-grid-2, .rp-grid-3, .rp-grid-4 { grid-template-columns: 1fr; }
  .rp-book-form { grid-template-columns: 1fr; }
  .rp-banner { min-height: 54vh; }
  .rp-spot-meta { gap: 20px; }
}
