/* ============================================================
   RIMAY VIAJES — Design System & Layout
   ============================================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  --primary-dark: #2c3e2d;
  --primary-dark-rgb: 44, 62, 45;
  --primary-dark-hover: #1b261c;
  --background-light: #fdfbf7;
  --background-alt: #f5efe4;
  --accent-gold: #d4af37;
  --accent-gold-hover: #b89528;
  --accent-earth: #8e6f3e;
  --text-main: #333333;
  --text-muted: #626b63;
  --text-light: #fdfbf7;
  --border-color: #e6dfd3;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', Helvetica, Arial, sans-serif;

  --shadow-sm: 0 2px 8px rgba(44, 62, 45, 0.06);
  --shadow-md: 0 8px 24px rgba(44, 62, 45, 0.1);
  --shadow-lg: 0 16px 40px rgba(44, 62, 45, 0.14);
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1200px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--background-light);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.3;
}

p {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/*
 * IMPORTANT: Only scope max-width to content images,
 * NOT to inline SVG icons which need fixed dimensions.
 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.section {
  padding: 100px 24px;
  position: relative;
}

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

/* ── Badges ── */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-earth);
  border-bottom: 2px solid var(--accent-gold);
  margin-bottom: 1.25rem;
  padding-bottom: 4px;
}

/* ── Section Titles ── */
.section-title {
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--accent-gold);
  margin-top: 14px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--primary-dark);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(44, 62, 45, 0.18);
}

.btn-primary:hover {
  background-color: var(--primary-dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 62, 45, 0.25);
}

.btn-accent {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}

.btn-accent:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-accent svg {
  transition: transform 0.3s ease;
}

.btn-accent:hover svg {
  transform: translateX(4px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  padding: 22px 0; /* Aumentado ligeramente para dar más aire vertical */
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(253, 251, 247, 0.96);
  box-shadow: var(--shadow-sm);
  padding: 12px 0; /* Aumentado ligeramente para dar espacio al logo de 50px */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

header.scrolled .nav-links a {
  color: var(--text-main);
}

header.scrolled .nav-links a.active {
  color: var(--primary-dark);
}

header.scrolled .hamburger span {
  background-color: var(--primary-dark);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo img {
  height: 50px; /* Incrementado de 42px a 50px */
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

header.scrolled .logo img {
  filter: none;
}

/* ── Logo & Lema Sweep Animation ── */
.logo-animation-container {
  height: 50px; /* Incrementado de 42px a 50px */
  width: 210px; /* Incrementado proporcionalmente de 180px a 210px para evitar recortes horizontales */
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.logo-slide-track {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Separación transparente de seguridad para evitar fugas de píxeles */
  height: 190px; /* 3 imágenes de 50px + 2 espacios de 20px = 190px */
  margin: 0;
  padding: 0;
  animation: logoSweep 10s infinite;
  /* Forzar aceleración por hardware para evitar calces subpixel/fantasmas */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.logo-slide-track img {
  height: 50px; /* Incrementado de 42px a 50px */
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  object-fit: contain;
  object-position: center center;
  /* Evitar artefactos de renderizado */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}


@keyframes logoSweep {
  0%, 50% {
    /* Muestra el Logo (Elemento 3, abajo) a -(2 * 50px + 2 * 20px) = -140px */
    transform: translate3d(0, -140px, 0);
    animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53); /* Aceleración orgánica de menos a más rápido */
  }
  55%, 75% {
    /* Muestra el Lema (Elemento 2, medio) a -(1 * 50px + 1 * 20px) = -70px */
    transform: translate3d(0, -70px, 0);
    animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53); /* Aceleración orgánica de menos a más rápido */
  }
  80%, 99.99% {
    /* Muestra el Logo (Elemento 1, arriba) a 0px */
    transform: translate3d(0, 0, 0);
  }
  100% {
    /* Salto instantáneo sin transición al inicio del ciclo */
    transform: translate3d(0, -140px, 0);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--text-light);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent-gold);
}

.header-cta .btn {
  padding: 10px 18px;
  font-size: 0.75rem;
}

.header-cta .btn svg {
  width: 14px;
  height: 14px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  cursor: pointer;
  z-index: 1100;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links .mobile-cta {
  display: none;
}

@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--background-light);
    box-shadow: -8px 0 30px rgba(44, 62, 45, 0.12);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1050;
    padding: 40px 30px;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--primary-dark) !important;
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .header-cta {
    display: none;
  }

  .nav-links .mobile-cta {
    display: inline-flex !important;
    margin-top: 10px;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  color: var(--text-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 38, 28, 0.55) 0%,
    rgba(27, 38, 28, 0.35) 50%,
    rgba(44, 62, 45, 0.75) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--text-light);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  letter-spacing: -0.3px;
}

.hero-content p {
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  color: rgba(253, 251, 247, 0.88);
  margin-bottom: 36px;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.15s;
  opacity: 0;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content .btn {
  animation: fadeInUp 1.2s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

/* Slider Controls */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(253, 251, 247, 0.1);
  border: 1px solid rgba(253, 251, 247, 0.2);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.slider-control svg {
  width: 22px;
  height: 22px;
}

.slider-control:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--primary-dark);
}

.prev-slide { left: 24px; }
.next-slide { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(253, 251, 247, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--accent-gold);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .slider-control {
    display: none;
  }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   NOSOTROS (ABOUT SPLIT & MOSAIC)
   ============================================================ */
#nosotros {
  background-color: var(--background-light);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about-left h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
  line-height: 1.25;
}

.about-left p {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.about-left .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-earth);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  margin-top: 12px;
  position: relative;
  padding-bottom: 4px;
}

.about-left .btn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

.about-left .btn-link:hover::after {
  width: 100%;
}

/* ── Photo Mosaic ── */
.about-right {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 12px;
  aspect-ratio: 1 / 1.05;
  max-height: 580px;
  position: relative;
}

.mosaic-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background-color: var(--background-alt);
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mosaic-item:hover img {
  transform: scale(1.06);
}

.mosaic-main {
  grid-column: 1 / 7;
  grid-row: 1 / 10;
  transform: rotate(-1deg);
  border: 6px solid white;
  z-index: 5;
}

.mosaic-img-1 {
  grid-column: 7 / 13;
  grid-row: 1 / 6;
  transform: rotate(1deg);
  border: 5px solid white;
  z-index: 4;
}

.mosaic-img-2 {
  grid-column: 7 / 10;
  grid-row: 6 / 12;
  transform: rotate(-1.5deg);
  border: 5px solid white;
  z-index: 3;
}

.mosaic-img-3 {
  grid-column: 10 / 13;
  grid-row: 6 / 10;
  transform: rotate(1.5deg);
  border: 5px solid white;
  z-index: 6;
}

.mosaic-img-4 {
  grid-column: 1 / 7;
  grid-row: 10 / 13;
  transform: rotate(0.5deg);
  border: 5px solid white;
  z-index: 2;
}

.mosaic-item:hover {
  transform: translateY(-6px) scale(1.03) rotate(0deg);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

@media (max-width: 992px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-right {
    max-height: 420px;
  }
}

@media (max-width: 576px) {
  .about-right {
    max-height: 320px;
    gap: 6px;
  }
  .mosaic-item {
    border-width: 3px !important;
  }
}

/* ============================================================
   PILARES (FEATURES GRID)
   ============================================================ */
#pilares {
  background-color: var(--background-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pilares-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.pilares-header .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: var(--background-light);
  padding: 36px 28px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(44, 62, 45, 0.06);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.25);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(44, 62, 45, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
    gap: 20px;
  }
}

/* ============================================================
   VIAJES (DESTINATION SHOWCASE)
   ============================================================ */
#viajes {
  background-color: var(--background-light);
}

.viajes-showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--primary-dark);
}

.viajes-img {
  position: relative;
  min-height: 450px;
  overflow: hidden;
}

.viajes-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.viajes-slide.active {
  opacity: 1;
}

.viajes-content {
  padding: 50px 44px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.viajes-content .badge {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  align-self: flex-start;
}

.viajes-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text-light);
  margin-bottom: 20px;
}

.viajes-content p {
  color: rgba(253, 251, 247, 0.82);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.viajes-content p:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .viajes-showcase {
    grid-template-columns: 1fr;
  }
  .viajes-img {
    min-height: 300px;
  }
  .viajes-content {
    padding: 36px 28px;
  }
}

/* ============================================================
   PROGRAMAS RECOMENDADOS (CARDS GRID)
   ============================================================ */
#programas {
  background-color: var(--background-light);
  padding-top: 60px;
}

.programas-header {
  text-align: center;
  margin-bottom: 40px;
}

.programas-header h2 {
  font-size: 2rem;
}

.programas-header .badge {
  margin-bottom: 0.75rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.program-card {
  background-color: var(--background-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.25);
}

.program-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--background-alt);
}

.program-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-img-wrapper img {
  transform: scale(1.05);
}

.program-meta-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(44, 62, 45, 0.85);
  color: var(--text-light);
  padding: 5px 12px;
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.program-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-title {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--primary-dark);
}

.program-info-list {
  margin-bottom: 20px;
  flex-grow: 1;
}

.program-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.program-info-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-earth);
  flex-shrink: 0;
}

.program-card .btn-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  background-color: var(--background-alt);
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.program-card:hover .btn-pdf {
  background-color: var(--primary-dark);
  color: var(--text-light);
  border-color: var(--primary-dark);
}

/* Leaf Divider */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px 0;
}

.leaf-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--border-color);
  max-width: 120px;
}

.leaf-icon {
  color: var(--accent-gold);
  width: 22px;
  height: 22px;
  opacity: 0.7;
}

.programas-footer {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 24px;
  background-color: var(--background-alt);
  border-radius: var(--border-radius-md);
  border: 1px dashed var(--accent-earth);
}

.programas-footer p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 500;
}

@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESEÑAS (TESTIMONIALS)
   ============================================================ */
#resenas {
  background-color: var(--background-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.resenas-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: flex-start;
}

.resenas-summary {
  background-color: var(--background-light);
  padding: 36px 28px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
  position: sticky;
  top: 100px;
}

.resenas-summary h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  line-height: 1.35;
}

.summary-score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.summary-score {
  font-size: 3.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}

.stars {
  display: inline-flex;
  gap: 3px;
  color: var(--accent-gold);
}

.stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.summary-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

.platform-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 24px;
  background-color: var(--background-alt);
  font-weight: 600;
}

.platform-info svg {
  width: 16px;
  height: 16px;
}

/* Reviews List */
.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  background-color: var(--background-light);
  padding: 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 62, 45, 0.04);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.15);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background-color: var(--primary-dark);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: bold;
}

.review-card:nth-child(2) .reviewer-avatar {
  background-color: var(--accent-earth);
}

.review-card:nth-child(3) .reviewer-avatar {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 1px;
}

.review-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  position: relative;
  padding-left: 18px;
}

.review-text::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -4px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-gold);
  line-height: 1;
  opacity: 0.6;
}

.resenas-cta {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 16px;
}

@media (max-width: 992px) {
  .resenas-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .resenas-summary {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================================================
   RESERVA SECTION & FORM
   ============================================================ */
.reserva-section {
  background-color: var(--background-light);
}

.reserva-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.reserva-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--primary-dark);
}

.reserva-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.6;
}

.reserva-form-box {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.reserva-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-main);
  background-color: var(--background-light);
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-submit-reserva {
  width: 100%;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 10px;
  background-color: #f2bf26 !important;
  color: var(--primary-dark) !important;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit-reserva:hover {
  background-color: var(--primary-dark) !important;
  color: white !important;
}

.reserva-success-msg {
  text-align: center;
  padding: 20px 10px;
}

.success-icon {
  width: 60px;
  height: 60px;
  background-color: #4cd964;
  color: white;
  font-size: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.reserva-success-msg h3 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.reserva-success-msg p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .reserva-form-box {
    padding: 24px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 70px 24px 28px 24px;
  border-top: 3px solid var(--accent-gold);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1.3fr;
  gap: 36px;
  max-width: var(--max-width);
  margin: 0 auto 50px auto;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(253, 251, 247, 0.08);
}

.footer-brand .footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(253, 251, 247, 0.7);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--accent-gold);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(253, 251, 247, 0.7);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(253, 251, 247, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(253, 251, 247, 0.07);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(253, 251, 247, 0.85);
  font-size: 0.68rem;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE FINE-TUNING
   ============================================================ */
@media (max-width: 768px) {
  .section {
    padding: 64px 16px;
  }

  .container {
    padding: 0 12px;
  }

  .section-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 48px 12px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.75rem;
  }
}

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */
.chatbot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  font-family: var(--font-body);
}

.chat-tooltip {
  position: absolute;
  bottom: 75px;
  right: 0;
  background-color: white;
  color: var(--text-main);
  padding: 10px 32px 10px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 1999;
  border: 1px solid rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
  transform: translateY(10px);
}

.chat-tooltip.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  animation: bounceTooltip 2s infinite alternate;
}

.chat-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 10px;
  height: 10px;
  background-color: white;
  transform: rotate(45deg);
  border-right: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.chat-tooltip-close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0 4px;
  line-height: 1;
}

.chat-tooltip-close:hover {
  opacity: 1;
}

@keyframes bounceTooltip {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

.chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
}

.chat-button:hover {
  transform: scale(1.05);
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

.chat-button svg {
  animation: svgVibrate 6s infinite;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.chat-button:hover svg {
  animation: none;
  transform: scale(1.1);
}

@keyframes svgVibrate {
  0%, 85%, 100% { transform: rotate(0deg) scale(1); }
  88% { transform: rotate(-8deg) scale(1.1); }
  91% { transform: rotate(8deg) scale(1.1); }
  94% { transform: rotate(-6deg) scale(1.1); }
  97% { transform: rotate(6deg) scale(1.1); }
}

.chat-badge-pulse {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #ff3b30;
  border-radius: 50%;
  border: 2px solid white;
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  height: 500px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  background-color: var(--primary-dark);
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header-info h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.chat-status {
  font-size: 0.75rem;
  opacity: 0.8;
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.chat-close:hover {
  opacity: 1;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #fbfaf7;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-msg.bot {
  background-color: white;
  color: var(--text-main);
  align-self: flex-start;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background-color: var(--primary-dark);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.system {
  background-color: #eaeaea;
  color: var(--text-main);
  align-self: center;
  font-size: 0.75rem;
  border-radius: 8px;
  padding: 4px 8px;
}

.chat-quick-options {
  padding: 12px 16px;
  background-color: #fbfaf7;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.reserve-main-btn {
  width: 100%;
  background-color: #f2bf26 !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 10px !important;
  font-size: 0.85rem !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(242, 191, 38, 0.2);
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.reserve-main-btn:hover {
  background-color: var(--primary-dark) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chat-chips-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.slider-arrow {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 50% !important;
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.65rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  position: absolute !important;
  z-index: 10 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  color: var(--text-main) !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

.slider-arrow:hover {
  background-color: var(--primary-dark) !important;
  color: white !important;
  border-color: var(--primary-dark) !important;
}

.arrow-left {
  left: -6px;
}

.arrow-right {
  right: -6px;
}

.chat-chips-slider {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 18px;
  width: 100%;
  scrollbar-width: none; /* Firefox */
}

.chat-chips-slider::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.chip-btn {
  white-space: nowrap;
  flex-shrink: 0;
  background-color: white;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 12px !important;
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
  color: var(--text-main) !important;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-btn:hover {
  background-color: var(--primary-dark) !important;
  color: white !important;
  border-color: var(--primary-dark) !important;
}

.chat-input-area {
  padding: 12px 16px;
  background-color: white;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  outline: none;
}

.chat-input-area button {
  background-color: var(--primary-dark);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.chat-input-area button:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

/* Form Styles inside chat */
.chat-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.chat-form input, .chat-form select, .chat-form textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  outline: none;
  font-family: var(--font-body);
}

.chat-form button {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-form button:hover {
  background-color: var(--primary-dark);
  color: white;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 8px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: rgba(0,0,0,0.4);
  border-radius: 50%;
  animation: typing-bounce 1s infinite alternate;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

@media (max-width: 480px) {
  .chat-window {
    width: 320px;
    height: 450px;
    bottom: 70px;
    right: -10px;
  }
}
