/* ===================================================
   NUEVO IMPULSO ANDALUCÍA — Estilos CSS
   Paleta: Verde profesional + Blanco
=================================================== */

/* ---------- VARIABLES ---------- */
:root {
  --green-900:   #063E20;
  --green-800:   #0A5C30;
  --green-700:   #0D7A40;
  --green-600:   #119148;
  --green-500:   #16A85A;
  --green-400:   #3DBE77;
  --green-200:   #A8DFC0;
  --green-100:   #D4EFE1;
  --green-50:    #EEF8F3;

  --gold:        #C9A93C;
  --gold-light:  #F0D98E;

  --white:       #FFFFFF;
  --off-white:   #F8FAFA;
  --gray-50:     #F4F6F5;
  --gray-100:    #E8EDEA;
  --gray-300:    #B0BDB6;
  --gray-500:    #6B7B72;
  --gray-700:    #3A4A40;
  --dark:        #0A1A10;

  --shadow-sm:   0 2px 8px rgba(10, 26, 16, 0.08);
  --shadow:      0 4px 20px rgba(10, 26, 16, 0.10);
  --shadow-lg:   0 12px 40px rgba(10, 26, 16, 0.16);
  --shadow-xl:   0 20px 60px rgba(10, 26, 16, 0.20);

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --transition:  0.28s ease;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Lato', sans-serif;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- UTILIDADES ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 6rem 0; position: relative; }
.section-alt { background: var(--green-50); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block;
  background: var(--green-700);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto;
}

/* Accent line under headings */
.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--green-500);
  margin: 0.9rem auto 0;
  border-radius: 2px;
}

/* Green stripe decorative border */
.green-stripe {
  position: absolute;
  left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green-900), var(--green-500), var(--gold), var(--green-500), var(--green-900));
}
.green-stripe.top    { top: 0; }
.green-stripe.bottom { bottom: 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}
.btn-primary:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 122, 64, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}
.btn-outline:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--green-800);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}
.full-width { width: 100%; margin-top: 1.5rem; }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(10, 26, 16, 0.10); }

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}
.nav-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text span { color: var(--green-700); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-link:hover { background: var(--green-50); color: var(--green-700); }
.nav-cta {
  background: var(--green-700) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.3rem !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--green-900) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 9rem 2rem 5rem;
  text-align: center;
  background-image:
    linear-gradient(160deg, rgba(6,62,32,0.88) 0%, rgba(10,92,48,0.82) 50%, rgba(13,122,64,0.78) 100%),
    url('imagen%201.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.hero-title em { color: var(--gold-light); font-style: italic; }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 1.75rem 3rem;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.2); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  animation: bounce 2.2s infinite;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- NOSOTROS ---------- */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.mvv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.mvv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.mvv-card.featured {
  background: linear-gradient(145deg, var(--green-800), var(--green-700));
  color: var(--white);
  border-color: transparent;
}
.mvv-card.featured h3 { color: var(--white); }
.mvv-card.featured p  { color: rgba(255,255,255,0.85); }
.mvv-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.mvv-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.valores-list { margin-top: 0.5rem; }
.valores-list li {
  padding: 0.4rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  gap: 0.5rem;
}
.valores-list li:last-child { border-bottom: none; }
.valores-list span { font-weight: 700; color: #FFE08A; }

.diferenciacion {
  background: var(--green-50);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--green-100);
}
.diferenciacion h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
  text-align: center;
}
.dif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.dif-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.dif-item:hover { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.dif-icon { font-size: 1.5rem; flex-shrink: 0; }
.dif-item p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.55; }

/* ---------- ACTIVIDADES ---------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.activity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.activity-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.activity-body {
  padding: 1.5rem;
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.activity-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.activity-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.activity-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 1rem; }
.activity-tag {
  display: inline-block;
  background: var(--green-700);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.jornada-box {
  background: linear-gradient(145deg, var(--green-900), var(--green-800));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
}
.jornada-box h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--gold-light);
  text-align: center;
}
.horario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.horario-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.08);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--green-400);
  transition: background var(--transition);
}
.horario-item:hover { background: rgba(255,255,255,0.12); }
.hora {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--gold-light);
  white-space: nowrap;
  font-weight: 700;
}
.horario-item p { font-size: 0.85rem; color: rgba(255,255,255,0.82); }

/* ---------- PRECIOS ---------- */
.pricing-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  background: var(--gray-50);
  border-radius: 50px;
  padding: 0.35rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.tab-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--gray-500);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(13, 122, 64, 0.3);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  position: relative;
  transition: all var(--transition);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  background: linear-gradient(160deg, var(--green-800), var(--green-700));
  border-color: transparent;
  color: var(--white);
}
.price-card.featured .price-badge { color: var(--white); }
.price-card.featured .price-duration { color: rgba(255,255,255,0.75); }
.price-card.featured .price-row span { color: rgba(255,255,255,0.8); }
.price-card.featured .price-row strong { color: var(--gold-light); font-size: 1.2rem; }
.price-card.featured .price-row { border-color: rgba(255,255,255,0.15); }

.price-featured-label {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}
.price-badge {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.price-duration { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.price-options { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.5rem; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.price-row:last-child { border-bottom: none; }
.price-row span { font-size: 0.875rem; color: var(--gray-500); }
.price-row strong { font-size: 1.05rem; color: var(--green-800); font-weight: 700; }

/* Talleres table */
.talleres-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.talleres-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9rem;
}
.talleres-table thead { background: var(--green-800); color: var(--white); }
.talleres-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.talleres-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.talleres-table tbody tr:last-child td { border-bottom: none; }
.talleres-table tbody tr:hover { background: var(--green-50); }
.talleres-table td:first-child { font-weight: 600; color: var(--dark); }
.talleres-table td:not(:first-child) { text-align: center; font-weight: 700; color: var(--green-900); }

/* Descuentos */
.descuentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.descuento-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--green-100);
}
.descuento-pct {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.descuento-card h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.descuento-card p  { font-size: 0.875rem; color: var(--gray-500); }

.condiciones-box {
  background: var(--green-50);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  border-left: 4px solid var(--green-500);
}
.condiciones-box h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1rem;
}
.condiciones-box li {
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: var(--gray-500);
  padding-left: 1.2rem;
  position: relative;
}
.condiciones-box li::before { content: '→'; position: absolute; left: 0; color: var(--green-800); }
.condiciones-box strong { color: var(--dark); }

/* ---------- EQUIPO ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--green-200); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(13, 122, 64, 0.35);
}
.team-avatar::before { content: attr(data-initials); }
.team-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.team-role {
  display: inline-block;
  background: var(--green-700);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.4rem;
}
.team-card > p { font-size: 0.82rem; color: var(--gray-300); margin-bottom: 1rem; }
.team-tasks {
  text-align: left;
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
}
.team-tasks li {
  font-size: 0.83rem;
  color: var(--gray-500);
  padding: 0.25rem 0 0.25rem 1.1rem;
  position: relative;
}
.team-tasks li::before {
  content: '✦';
  position: absolute; left: 0;
  color: var(--green-500);
  font-size: 0.55rem;
  top: 0.45rem;
}

/* ---------- CRONOGRAMA ---------- */
.timeline { position: relative; margin-bottom: 3rem; padding-left: 1rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 29px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-700), var(--green-300), var(--green-700));
}
.timeline-item {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.timeline-dot {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green-700);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--white);
  transition: all var(--transition);
  font-family: var(--font-head);
}
.timeline-item:hover .timeline-dot { background: var(--green-700); color: var(--white); }
.timeline-item[data-phase="4"] .timeline-dot,
.timeline-item[data-phase="5"] .timeline-dot { border-color: var(--green-500); color: var(--green-500); }
.timeline-item[data-phase="4"]:hover .timeline-dot,
.timeline-item[data-phase="5"]:hover .timeline-dot { background: var(--green-500); color: var(--white); }
.timeline-item[data-phase="6"] .timeline-dot,
.timeline-item[data-phase="7"] .timeline-dot { border-color: var(--gold); color: var(--gold); }
.timeline-item[data-phase="6"]:hover .timeline-dot,
.timeline-item[data-phase="7"]:hover .timeline-dot { background: var(--gold); color: var(--white); }

.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  flex: 1;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow); border-color: var(--green-100); }
.timeline-date {
  display: inline-block;
  background: var(--green-700);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.timeline-content h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.timeline-content p { font-size: 0.875rem; color: var(--gray-500); }

.map-provincias {
  background: var(--green-50);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  border: 1px solid var(--green-100);
}
.map-provincias h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--dark);
  text-align: center;
  margin-bottom: 1.5rem;
}
.provincias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.provincia-group {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.trimestre-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.trimestre-badge.t1 { background: var(--green-800); }
.trimestre-badge.t2 { background: var(--green-600); }
.trimestre-badge.t3 { background: var(--gold); }
.provincia-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.provincia-list span {
  font-size: 0.82rem;
  color: var(--gray-500);
  background: var(--green-50);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--green-100);
}
.ya {
  font-style: italic;
  color: var(--gray-300) !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  width: 100%;
  font-size: 0.78rem !important;
  margin-top: 0.2rem;
}

/* ---------- ODS ---------- */
.ods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.ods-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--green-500);
  transition: all var(--transition);
}
.ods-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ods-card[data-ods="3"]  { border-left-color: #4CAF50; }
.ods-card[data-ods="4"]  { border-left-color: #E53935; }
.ods-card[data-ods="10"] { border-left-color: #8E24AA; }
.ods-card[data-ods="11"] { border-left-color: #F4511E; }
.ods-card[data-ods="12"] { border-left-color: #D4870B; }
.ods-card[data-ods="17"] { border-left-color: #1565C0; }
.ods-number {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-300);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.ods-card h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.ods-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* ---------- CONTACTO ---------- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.5rem;
  align-items: start;
}
.contacto-info h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.social-link {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--green-200); box-shadow: var(--shadow); transform: translateX(4px); }
.social-icon { font-size: 1.4rem; flex-shrink: 0; }
.social-link strong { display: block; font-size: 0.875rem; color: var(--dark); }
.social-link small  { font-size: 0.78rem; color: var(--gray-300); }
.info-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.info-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--gray-700);
  border: 1px solid var(--green-100);
}
.info-card span { font-size: 1.2rem; }

.contacto-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--off-white);
  transition: all var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(22, 168, 90, 0.1);
}
.form-group textarea { resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--gray-300); text-align: center; margin-top: 0.75rem; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.footer-pattern {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13, 122, 64, 0.12) 0%, transparent 60%);
}
.footer > .container { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-top: 0.75rem; line-height: 1.6; }
.footer-legal { font-size: 0.78rem !important; color: rgba(255,255,255,0.3) !important; margin-top: 0.25rem; }
.footer-logo { color: var(--white); }
.footer-logo .logo-text span { color: var(--green-400); }
.footer-logo-img {
  border-radius: 6px;
  background: var(--white);
  padding: 2px;
}
.footer-links h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-links a:hover { color: var(--green-400); }
.footer-social h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-social-icons { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-social-btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.footer-social-btn:hover { background: var(--green-800); color: var(--white); border-color: var(--green-700); }
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--green-700);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--green-900); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--green-700);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transition: transform 0.4s ease;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ========================================
   ANIMACIONES AVANZADAS
======================================== */

/* --- Scroll progress bar --- */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green-500), var(--gold), var(--green-400));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(22,168,90,0.6);
}

/* --- Canvas partículas hero --- */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-pattern, .hero-content, .hero-scroll { z-index: 1; }

/* --- Cursor tipado --- */
#typedText::after {
  content: '|';
  animation: blink 0.75s step-end infinite;
  color: var(--gold-light);
}
@keyframes blink { 50% { opacity: 0; } }

/* --- PRELOADER --- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.fade-out { opacity: 0; visibility: hidden; }

.preloader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.preloader-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: white;
  border-radius: 50%;
  padding: 6px;
  animation: preloaderPulse 1s ease-in-out infinite alternate;
}
@keyframes preloaderPulse {
  from { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  to   { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255,255,255,0); }
}
.preloader-text {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  animation: fadeInUp 0.6s ease 0.3s both;
}
.preloader-text span { color: var(--gold-light); }
.preloader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-400), var(--gold-light));
  border-radius: 2px;
  animation: loadBar 1.6s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* --- Hero entrada --- */
.hero-badge   { animation: fadeInDown 0.7s ease 2s both; }
.hero-title   { animation: fadeInUp 0.8s ease 2.1s both; }
.hero-subtitle { animation: fadeInUp 0.8s ease 2.3s both; }
.hero-buttons  { animation: fadeInUp 0.8s ease 2.5s both; }
.hero-stats    { animation: fadeInUp 0.8s ease 2.7s both; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Scroll reveal classes --- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.from-left  { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.scale-in   { transform: scale(0.85); }
.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* --- Glow en botones --- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--green-400), var(--gold), var(--green-500));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}
.btn-primary:hover::after { opacity: 0.6; }

/* --- Tarjetas 3D tilt --- */
.activity-card, .price-card, .team-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* --- Hover glow en tarjetas --- */
.activity-card:hover {
  box-shadow: 0 20px 60px rgba(13,122,64,0.2), 0 0 0 1px var(--green-100);
}
.team-card:hover {
  box-shadow: 0 20px 60px rgba(13,122,64,0.18);
}

/* --- Pulse en avatar equipo --- */
.team-avatar {
  position: relative;
}
.team-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green-400);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: scale(0.9);
}
.team-card:hover .team-avatar::after {
  opacity: 1;
  transform: scale(1);
}

/* --- Número estadísticas hero animado --- */
.stat-number {
  background: linear-gradient(135deg, var(--gold-light), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Sección header reveal --- */
.section-header {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Línea animada bajo h2 --- */
.section-header h2::after {
  width: 0;
  transition: width 1s ease 0.4s;
}
.section-header.visible h2::after { width: 48px; }

/* --- Wave decorativo entre secciones --- */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
}
.wave-divider svg { display: block; width: 100%; }

/* --- Shimmer en la barra de nav al hacer scroll --- */
#navbar.scrolled::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-400), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* --- Floating shapes en hero --- */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  animation: floatShape 6s ease-in-out infinite;
  pointer-events: none;
}
.hero-shape:nth-child(1) { width: 300px; height: 300px; top: 10%; left: -5%; animation-delay: 0s; }
.hero-shape:nth-child(2) { width: 200px; height: 200px; top: 60%; right: -3%; animation-delay: 2s; }
.hero-shape:nth-child(3) { width: 150px; height: 150px; top: 30%; right: 15%; animation-delay: 4s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-25px) rotate(10deg); }
}

/* --- Activity card img zoom on hover --- */
.activity-card:hover .activity-img {
  transform: scale(1.07);
  transition: transform 0.5s ease;
}
.activity-img { transition: transform 0.5s ease; }

/* --- Precios card shine effect --- */
.price-card.featured::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  animation: cardShine 3s infinite;
}
@keyframes cardShine {
  0%   { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* --- Input focus animado --- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transform: translateY(-1px);
}

/* --- Footer link hover underline animado --- */
.footer-links a {
  position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--green-400);
  transition: width 0.3s ease;
}
.footer-links a:hover::after { width: 100%; }


/* ========================================
   TICKER / MARQUEE
======================================== */
.ticker-section {
  background: var(--green-900);
  padding: 0.85rem 0;
  overflow: hidden;
  border-top: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
}
.ticker-track { overflow: hidden; white-space: nowrap; }
.ticker-inner {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}
.ticker-inner span {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ticker-inner span:hover { color: var(--gold-light); }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   FLIP CARDS — TARJETAS GIRATORIAS
======================================== */
.flip-card {
  perspective: 1000px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: 340px;
}
.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.flip-card:hover .flip-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.flip-front {
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.flip-front .activity-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.flip-front-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flip-front-body .activity-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.flip-front-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.flip-hint {
  font-size: 0.72rem;
  color: var(--green-500);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
}

.flip-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--white);
}
.flip-back-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.flip-back h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.flip-back p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.flip-back .activity-tag {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ========================================
   SPLIT TEXT (palabras animadas)
======================================== */
.word-wrap { overflow: hidden; display: inline-block; }
.word-inner {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), opacity 0.6s ease;
}
.word-inner.visible { transform: translateY(0); opacity: 1; }

/* ========================================
   RIPPLE EN BOTONES
======================================== */
.btn { position: relative; overflow: hidden; }
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ========================================
   CONFETI
======================================== */
.confetti-piece {
  position: fixed;
  width: 10px; height: 10px;
  top: -10px;
  border-radius: 2px;
  animation: confettiFall 3s ease-in forwards;
  pointer-events: none;
  z-index: 99999;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ========================================
   FONDO ANIMADO EN SECCIONES
======================================== */
.section-alt {
  background: linear-gradient(135deg, var(--green-50) 0%, #e8f5f0 50%, var(--green-50) 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Hero fondo animado */
.hero {
  background-size: cover, cover;
  animation: heroBgPulse 10s ease-in-out infinite alternate;
}
@keyframes heroBgPulse {
  from { filter: brightness(1); }
  to   { filter: brightness(1.08); }
}

/* ========================================
   GLOW EN TEAM AVATARS + PRECIOS FEATURED
======================================== */
.price-card.featured {
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(13,122,64,0.3); }
  50%       { box-shadow: 0 0 40px rgba(13,122,64,0.6), 0 0 80px rgba(13,122,64,0.2); }
}

/* ========================================
   ANIMACIÓN NÚMERO STATS (pop)
======================================== */
@keyframes statPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.stat-number.popped { animation: statPop 0.4s ease; }

/* ========================================
   MÓVIL — flip cards al tap
======================================== */
@media (hover: none) {
  .flip-card { height: auto; }
  .flip-inner { transform-style: flat; transition: none; }
  .flip-card .flip-inner { transform: none !important; }
  .flip-back  { display: none; }
  .flip-front { position: relative; inset: auto; }
  .flip-front .activity-img { height: 160px; }
  .flip-hint  { display: none; }
  .flip-card.flipped .flip-front { display: none; }
  .flip-card.flipped .flip-back  {
    display: flex;
    position: relative;
    inset: auto;
    transform: none;
    min-height: 240px;
    border-radius: var(--radius-lg);
  }
}

/* ========================================
   RESPONSIVE — Tablet (≤ 960px)
======================================== */
@media (max-width: 960px) {

  /* Navbar */
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 3px solid var(--green-700);
    box-shadow: 0 16px 40px rgba(10, 26, 16, 0.12);
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    display: block;
  }
  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
    margin-top: 0.5rem;
  }

  /* Secciones */
  .section { padding: 5rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  /* Hero */
  .hero { background-attachment: scroll; } /* Fix iOS parallax */

  /* Nosotros */
  .mvv-grid { grid-template-columns: 1fr; }
  .dif-grid  { grid-template-columns: 1fr 1fr; }

  /* Actividades */
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .flip-card { height: 300px; }
  .horario-grid { grid-template-columns: 1fr 1fr; }

  /* Precios */
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  /* Equipo */
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contacto */
  .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ========================================
   RESPONSIVE — Móvil grande (≤ 640px)
======================================== */
@media (max-width: 640px) {

  /* ── Base ── */
  .container { padding: 0 1.1rem; }
  .section   { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 1.55rem; line-height: 1.25; }
  .section-desc { font-size: 0.9rem; }

  /* ── Navbar ── */
  .nav-container { padding: 0 1rem; height: 62px; }
  .nav-logo-img  { width: 34px; height: 34px; }
  .logo-text     { font-size: 0.88rem; }

  /* ── Ticker ── */
  .ticker-section { padding: 0.6rem 0; }
  .ticker-inner span { font-size: 0.78rem; letter-spacing: 0.05em; }

  /* ── Hero ── */
  .hero { padding: 6.5rem 1.1rem 3.5rem; background-attachment: scroll; min-height: auto; }
  .hero-badge    { font-size: 0.68rem; padding: 0.35rem 0.9rem; margin-bottom: 1.25rem; }
  .hero-title    { font-size: 1.85rem; line-height: 1.2; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 2rem; }
  .hero-buttons  { flex-direction: column; align-items: stretch; width: 100%; gap: 0.75rem; margin-bottom: 2.5rem; }
  .hero-buttons .btn { width: 100%; justify-content: center; padding: 0.9rem 1rem; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; padding: 1.25rem 1rem; width: 100%; }
  .stat { min-width: 80px; text-align: center; }
  .stat-divider { display: none; }
  .stat-number  { font-size: 2rem; }
  .stat-label   { font-size: 0.7rem; }
  .hero-scroll  { display: none; }

  /* ── Nosotros ── */
  .dif-grid       { grid-template-columns: 1fr; gap: 0.75rem; }
  .dif-item       { padding: 1rem; }
  .diferenciacion { padding: 1.5rem 1rem; }
  .diferenciacion h3 { font-size: 1.1rem; }

  /* ── Flip cards — desactivar flip, mostrar como tarjeta normal ── */
  .activities-grid { grid-template-columns: 1fr; gap: 1rem; }
  .flip-card       { height: auto !important; perspective: none !important; }
  .flip-inner      { transform-style: flat !important; transform: none !important; transition: none !important; }
  .flip-card:hover .flip-inner { transform: none !important; }
  .flip-back       { display: none !important; }
  .flip-front      { position: relative !important; inset: auto !important; backface-visibility: visible !important; border-radius: var(--radius-lg); overflow: hidden; }
  .flip-front .activity-img { height: 170px; }
  .flip-front-body { padding: 1.1rem 1.25rem 1.25rem; }
  .flip-front-body h3 { font-size: 1rem; }
  .flip-front-body .activity-icon { font-size: 1.6rem; }
  .flip-hint { display: none; }

  /* ── Jornada box ── */
  .jornada-box    { padding: 1.5rem 1rem; border-radius: var(--radius); }
  .jornada-box h3 { font-size: 1.1rem; margin-bottom: 1.25rem; }
  .horario-grid   { grid-template-columns: 1fr; gap: 0.75rem; }
  .horario-item   { padding: 0.85rem 1rem; }
  .hora           { font-size: 0.85rem; min-width: 48px; }
  .horario-item p { font-size: 0.82rem; }

  /* ── Precios ── */
  .pricing-tabs { flex-direction: column; width: 100%; border-radius: var(--radius); gap: 0.3rem; padding: 0.35rem; }
  .tab-btn { width: 100%; text-align: center; padding: 0.7rem 1rem; font-size: 0.85rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
  .price-card { padding: 1.5rem 1.25rem; }
  .price-badge { font-size: 1.2rem; }
  .price-featured-label { font-size: 0.68rem; }
  .talleres-table { font-size: 0.78rem; }
  .talleres-table th, .talleres-table td { padding: 0.65rem 0.6rem; }
  .descuentos-grid { grid-template-columns: 1fr; }
  .condiciones-box { padding: 1.25rem; }

  /* ── Equipo ── */
  .team-grid  { grid-template-columns: 1fr; gap: 1rem; }
  .team-card  { padding: 1.5rem 1.25rem; }
  .team-avatar { width: 68px; height: 68px; font-size: 1.2rem; }
  .team-card h3 { font-size: 1.05rem; }

  /* ── Contacto ── */
  .social-link  { padding: 0.85rem; gap: 0.75rem; }
  .social-link strong { font-size: 0.85rem; }
  .social-link small  { font-size: 0.72rem; }
  .info-card { font-size: 0.82rem; padding: 0.65rem 0.85rem; }
  .contacto-form { padding: 1.5rem 1rem; border-radius: var(--radius); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group label { font-size: 0.8rem; }
  .form-group input, .form-group select, .form-group textarea { padding: 0.7rem 0.9rem; font-size: 0.875rem; }

  /* ── Footer ── */
  .footer { padding: 2.5rem 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; margin-bottom: 2rem; padding-bottom: 2rem; }
  .footer-links ul { align-items: center; }
  .footer-social-icons { align-items: center; }
  .footer-social-btn { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
  .footer-bottom { font-size: 0.72rem; }

  /* ── Misc ── */
  .back-to-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; font-size: 0.95rem; }
  .toast { font-size: 0.8rem; padding: 0.8rem 1rem; white-space: normal; text-align: center; width: 92%; max-width: 320px; }
  .green-stripe { height: 4px; }
}

/* ========================================
   RESPONSIVE — Móvil pequeño (≤ 390px)
======================================== */
@media (max-width: 390px) {
  .hero-title    { font-size: 1.65rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .nav-logo-img  { width: 30px; height: 30px; }
  .logo-text     { font-size: 0.82rem; }
  .stat-number   { font-size: 1.75rem; }
  .section-header h2 { font-size: 1.35rem; }
  .btn { padding: 0.8rem 1.2rem; font-size: 0.85rem; }
  .flip-front .activity-img { height: 150px; }
  .talleres-table { font-size: 0.72rem; }
  .talleres-table th, .talleres-table td { padding: 0.5rem 0.4rem; }
}
