/* ===================================================
   CRAYOL - Todo es un Juego
   Diseño: colorido, dinámico, para niños
   =================================================== */

@font-face {
  font-family: 'Grandstander';
  src: url('../fonts/Grandstander-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* ─── Variables ─────────────────────────────────── */
:root {
  --teal:   #137EA1;
  --blue:   #1F90D4;
  --coral:  #F8594D;
  --orange: #F88D01;
  --yellow: #F5C946;
  --green:  #70DB71;
  --purple: #9B59B6;
  --dark:   #0D2B38;
  --white:  #FFFFFF;
  --gray:   #F7F7F7;

  --font-title: 'Grandstander', 'Arial Rounded MT Bold', sans-serif;
  --font-body:  'Fredoka', 'Arial', sans-serif;

  --radius:    20px;
  --radius-lg: 32px;
  --shadow:    0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);
}

/* ─── 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);
  font-weight: 400;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.15;
}

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

a { text-decoration: none; color: inherit; }

/* ─── Animaciones ───────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(5deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-4deg); }
  50%       { transform: rotate(4deg); }
}
@keyframes bounce-in {
  0%   { transform: scale(0) rotate(-10deg); opacity: 0; }
  70%  { transform: scale(1.1) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 141, 1, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(248, 141, 1, 0); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes slide-up {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes wave-move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes star-pop {
  0%   { transform: scale(0) rotate(0deg); }
  60%  { transform: scale(1.3) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}
@keyframes number-count {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Clases de reveal al scroll ────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Botones ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--orange); color: #fff; animation: pulse-glow 2.5s infinite; }
.btn-secondary { background: var(--white); color: var(--blue); border: 2.5px solid var(--blue); }
.btn-green { background: var(--green); color: var(--dark); }
.btn-ghost { background: rgba(255,255,255,0.2); color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-lg { padding: 18px 42px; font-size: 1.2rem; }

/* ─── NAVBAR ────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  padding: 10px 0;
}
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 6px 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--dark);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--dark);
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--white);
  z-index: 999;
  padding: 80px 32px 32px;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}
.mobile-overlay.show { display: block; }
.mobile-links { list-style: none; }
.mobile-links li { padding: 14px 0; border-bottom: 2px dashed var(--gray); }
.mobile-links a {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--dark);
}
.mobile-links a:hover { color: var(--orange); }

/* ─── HERO ──────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1F90D4 0%, #137EA1 60%, #0e6a87 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-blob-1 {
  position: absolute;
  top: -80px; right: -60px;
  width: 400px; height: 400px;
  background: var(--orange);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  opacity: 0.85;
  animation: float-slow 7s ease-in-out infinite;
}
.hero-blob-2 {
  position: absolute;
  bottom: -100px; left: -80px;
  width: 350px; height: 350px;
  background: var(--yellow);
  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
  opacity: 0.75;
  animation: float-slow 9s ease-in-out infinite reverse;
}
.hero-blob-3 {
  position: absolute;
  top: 50%; right: 30%;
  width: 200px; height: 200px;
  background: var(--purple);
  border-radius: 50%;
  opacity: 0.25;
  animation: float 11s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content { animation: slide-up 0.8s ease both; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 2px 4px 12px rgba(0,0,0,0.15);
}
.hero-title span { color: var(--yellow); display: block; }

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
  max-width: 440px;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  animation: slide-up 0.9s ease 0.2s both;
}
.hero-illustration svg {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* Confetti particles */
.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.confetti-piece {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 2px;
  animation: confetti-fall linear infinite;
}

/* Hero wave bottom */
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  line-height: 0;
  z-index: 3;
}
.hero-wave svg { width: 100%; display: block; }

/* ─── SECCIÓN GENÉRICA ──────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.15rem;
  color: #555;
  max-width: 600px;
  font-weight: 400;
}

/* ─── QUIÉNES SOMOS ─────────────────────────────── */
#nosotros {
  padding: 100px 24px 80px;
  position: relative;
  background: #fff;
}
.nosotros-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.nosotros-ilus svg {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.nosotros-blob {
  position: absolute;
  top: 60px; right: -100px;
  width: 360px; height: 360px;
  background: var(--coral);
  border-radius: 60% 40% 50% 50%;
  opacity: 0.08;
}
.nosotros-content .section-tag { background: #FFF3E0; color: var(--orange); }
.nosotros-content p {
  color: #555;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.promise-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.promise-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 4px solid var(--orange);
}
.promise-card:nth-child(2) { border-color: var(--blue); }
.promise-card:nth-child(3) { border-color: var(--green); }
.promise-card:hover { transform: translateY(-6px); }
.promise-icon {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
}
.promise-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--dark);
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: var(--radius);
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(19,126,161,0.3);
}
.stats-row .stat-item .stat-number { color: var(--yellow); font-size: 2.6rem; }
.stats-row .stat-item .stat-label { color: rgba(255,255,255,0.9); font-size: 0.95rem; }

/* ─── EXPERIENCIAS ──────────────────────────────── */
#experiencias {
  padding: 80px 24px 100px;
  background: var(--gray);
  position: relative;
}

.exp-header {
  max-width: 1200px;
  margin: 0 auto 48px;
  text-align: center;
}
.exp-title-colored span {
  display: inline-block;
}
.exp-title-colored span:nth-child(7n+1) { color: var(--coral); }
.exp-title-colored span:nth-child(7n+2) { color: var(--orange); }
.exp-title-colored span:nth-child(7n+3) { color: var(--yellow); }
.exp-title-colored span:nth-child(7n+4) { color: var(--green); }
.exp-title-colored span:nth-child(7n+5) { color: var(--blue); }
.exp-title-colored span:nth-child(7n+6) { color: var(--teal); }
.exp-title-colored span:nth-child(7n) { color: var(--purple); }

/* Filtros */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 2.5px solid #ddd;
  background: #fff;
  font-family: var(--font-title);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--dark);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
  transform: translateY(-2px);
}

/* Grid de experiencias */
.exp-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.exp-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}
.exp-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.exp-card.hidden { display: none; }

.exp-card-top {
  padding: 32px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-height: 180px;
  justify-content: center;
}
.exp-icon {
  width: 80px; height: 80px;
  margin-bottom: 16px;
  animation: float 4s ease-in-out infinite;
}
.exp-card:nth-child(odd) .exp-icon { animation-delay: -2s; }

.exp-name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #fff;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.2);
}
.exp-duration {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
}

.exp-card-bottom {
  padding: 20px 24px;
  background: #fff;
}
.exp-desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.5;
}
.exp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.exp-price {
  font-family: var(--font-title);
  font-size: 1.05rem;
}
.exp-cta {
  background: var(--dark);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.exp-cta:hover { transform: scale(1.05); }

/* Decorations */
.exp-deco-star {
  position: absolute;
  top: 10px; right: 10px;
  width: 24px; height: 24px;
  opacity: 0.6;
  animation: wiggle 3s ease-in-out infinite;
}

/* Más experiencias CTA */
.exp-more {
  max-width: 1200px;
  margin: 40px auto 0;
  text-align: center;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
}
.exp-more h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.exp-more p {
  margin-bottom: 20px;
  opacity: 0.9;
  font-size: 1.05rem;
}

/* ─── CÓMO FUNCIONA ─────────────────────────────── */
#proceso {
  padding: 80px 24px;
  background: var(--yellow);
  position: relative;
  overflow: hidden;
}

.proceso-bg-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.proceso-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.proceso-inner .section-tag { background: rgba(255,255,255,0.5); color: var(--dark); }
.proceso-inner .section-title { color: var(--dark); }

.proceso-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 56px;
}
.proceso-arrow {
  display: flex;
  align-items: center;
  padding-top: 60px;
  color: var(--orange);
}
.proceso-step {
  text-align: center;
  padding: 0 20px;
}
.proceso-step-icon {
  width: 130px; height: 130px;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 20px;
  animation: float 5s ease-in-out infinite;
}
.proceso-step:nth-child(3) .proceso-step-icon { animation-delay: -2s; }
.proceso-step:nth-child(5) .proceso-step-icon { animation-delay: -4s; }

.proceso-step-num {
  display: inline-block;
  width: 32px; height: 32px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 32px;
  text-align: center;
  margin-bottom: 12px;
}
.proceso-step h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.proceso-step p {
  font-size: 0.95rem;
  color: rgba(13,43,56,0.75);
  max-width: 200px;
  margin: 0 auto;
}

/* ─── GALERÍA ───────────────────────────────────── */
#galeria {
  padding: 80px 24px;
  background: #fff;
}
.galeria-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.galeria-header {
  text-align: center;
  margin-bottom: 48px;
}
.galeria-header .section-tag { background: #F3E8FF; color: var(--purple); }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 14px;
}
.galeria-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--gray);
  aspect-ratio: 1;
}
.galeria-item.tall { grid-row: span 2; aspect-ratio: unset; }
.galeria-item.wide { grid-column: span 2; aspect-ratio: 2/1; }

.galeria-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.galeria-item:hover img { transform: scale(1.08); }
.galeria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 126, 161, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-overlay svg { color: #fff; }

.galeria-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.9rem;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
#lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none; border: none;
  font-family: var(--font-title);
  line-height: 1;
  width: 40px; height: 40px;
}

/* ─── COBERTURA ─────────────────────────────────── */
#cobertura {
  padding: 80px 24px;
  background: var(--teal);
  position: relative;
  overflow: hidden;
}
.cobertura-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cobertura-content .section-tag { background: rgba(255,255,255,0.2); color: #fff; }
.cobertura-content .section-title { color: #fff; }
.cobertura-content p { color: rgba(255,255,255,0.85); margin-bottom: 32px; }

.cobertura-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.cobertura-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1rem;
}
.cob-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cob-note {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  border-left: 4px solid var(--yellow);
}

.cobertura-map { position: relative; }
.cobertura-map svg {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.3));
}

/* Stars decoration */
.cob-star {
  position: absolute;
  animation: wiggle 4s ease-in-out infinite;
}

/* ─── CONTACTO ──────────────────────────────────── */
#contacto {
  padding: 80px 24px 100px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.contacto-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  z-index: 0;
}

.contacto-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacto-content { padding-top: 20px; }
.contacto-content .section-tag { background: rgba(255,255,255,0.3); color: var(--dark); }
.contacto-content .section-title { color: var(--dark); }
.contacto-content p { color: rgba(13,43,56,0.8); margin-bottom: 32px; }

.contacto-ilus svg {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}

.wa-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.wa-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--dark);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.wa-icon { width: 28px; height: 28px; }

/* Formulario */
.contacto-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.contacto-form-wrap h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--dark);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2.5px solid #e8e8e8;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--gray);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-honey { display: none; }

.form-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--orange), var(--coral));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}
.form-submit:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(248, 141, 1, 0.4); }

.form-msg {
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  display: none;
}
.form-msg.success { background: #E8F8EC; color: #2d7a3a; border: 2px solid #70DB71; }
.form-msg.error   { background: #FEE8E8; color: #c0392b; border: 2px solid var(--coral); }

/* ─── FOOTER ────────────────────────────────────── */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; opacity: 0.7; margin-bottom: 20px; }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.social-link:hover { transform: translateY(-4px); }
.social-link.ig { background: linear-gradient(135deg, #E1306C, #F77737); }
.social-link.fb { background: #1877F2; }

.footer-col h4 {
  font-family: var(--font-title);
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  opacity: 0.7;
  font-size: 0.9rem;
  transition: opacity 0.2s, color 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--yellow); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.fc-icon { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-illustration { display: none; }
  .hero-stats { justify-content: center; }
  .hero-btns { justify-content: center; }
  .hero-sub { margin: 0 auto 36px; }

  .nosotros-inner { grid-template-columns: 1fr; }
  .nosotros-ilus { display: none; }

  .exp-grid { grid-template-columns: repeat(2, 1fr); }

  .proceso-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .proceso-arrow { display: none; }

  .cobertura-inner { grid-template-columns: 1fr; }
  .cobertura-map { display: none; }

  #reservarGrid { grid-template-columns: 1fr !important; }

  .contacto-inner { grid-template-columns: 1fr; }
  .contacto-ilus { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-item.tall, .galeria-item.wide { grid-row: span 1; grid-column: span 1; aspect-ratio: 1; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  .exp-grid { grid-template-columns: 1fr; }
  .promise-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cobertura-list { grid-template-columns: 1fr; }
  .stats-row { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.8rem; }
  .contacto-form-wrap { padding: 24px 20px; }
}

/* ─── BOTONES FLOTANTES ──────────────────────────── */
.floating-btns {
  position: fixed;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* WhatsApp - esquina inferior derecha */
.float-wa {
  right: 24px;
  left: auto;
}
.float-wa .float-btn-wa {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: float-pulse 2s ease-in-out infinite;
  border: none;
  cursor: pointer;
}
.float-btn-wa:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 10px 32px rgba(37,211,102,.5);
}
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.4); }
  50% { box-shadow: 0 6px 24px rgba(37,211,102,.2), 0 0 0 12px rgba(37,211,102,.1); }
}

/* Configurador - esquina inferior izquierda */
.float-cfg {
  left: 24px;
  right: auto;
  bottom: 24px;
}
.float-cfg-inner {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.float-btn-cfg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px 14px 18px;
  background: linear-gradient(135deg, var(--orange), var(--coral));
  color: #fff;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(248,89,77,.35);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: cfg-wiggle 3s ease-in-out infinite;
  white-space: nowrap;
}
.float-btn-cfg:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 10px 32px rgba(248,89,77,.45);
}
.float-btn-cfg .cfg-emoji {
  font-size: 1.4rem;
  animation: cfg-bounce 1s ease infinite alternate;
  display: inline-block;
}
@keyframes cfg-wiggle {
  0%, 85%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(-3deg); }
  91% { transform: rotate(3deg); }
  94% { transform: rotate(-2deg); }
  97% { transform: rotate(1deg); }
}
@keyframes cfg-bounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.1); }
}

/* Tooltip del WhatsApp */
.wa-tooltip {
  position: absolute;
  right: 70px;
  bottom: 14px;
  background: #fff;
  color: var(--dark);
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-title);
  font-size: .8rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
}
.float-wa:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .float-btn-cfg { padding: 12px 18px 12px 14px; font-size: .85rem; }
  .float-btn-wa { width: 52px; height: 52px; }
  .float-cfg { bottom: 18px; left: 16px; }
  .float-wa { bottom: 18px; right: 16px; }
}
