/* ============================================
   AXKAN HISTORIA - Destination Landing Pages
   Mobile-First Design with AXKAN Brand Colors
   ============================================ */

/* ---------- FONTS ---------- */
@font-face {
  font-family: 'RL AQVA';
  src: url('../../fonts/rl-aqva-black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- VARIABLES ---------- */
:root {
  /* AXKAN Brand Colors */
  --rosa: #e72a88;
  --verde: #8ab73b;
  --naranja: #f39223;
  --turquesa: #09adc2;
  --rojo: #e52421;
  --oro: #D4A574;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-500: #737373;
  --gray-700: #404040;
  --gray-900: #171717;
  --black: #0A0A0A;

  /* Typography */
  --font-display: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
}

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

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

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- KEYFRAMES ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

@keyframes drawSpiral {
  to { stroke-dashoffset: 0; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}


/* ============================================
   SECTION 1: HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  overflow: hidden;
}

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

.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Hide fallback image when video is playing */
.hero-video + .hero-fallback {
  display: none;
}

/* Show fallback if video fails to load */
.hero-video:not([src]),
.hero-video[src=""] {
  display: none;
}

.hero-video:not([src]) + .hero-fallback,
.hero-video[src=""] + .hero-fallback {
  display: block;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.2s var(--ease-out) 0.3s both;
}

.caracol-watermark {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 150px;
  height: 150px;
  opacity: 0.5;
}

.spiral-path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawSpiral 3s var(--ease-out) 1s forwards;
}

.destination-name {
  font-family: 'RL AQVA', 'Fredoka', sans-serif;
  font-size: clamp(3.5rem, 14vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  margin-bottom: var(--space-md);

  /* Vibrant AXKAN color shine effect */
  background:
    linear-gradient(
      110deg,
      transparent 0%,
      transparent 20%,
      #e72a88 22%,
      #8ab73b 26%,
      #f39223 30%,
      #09adc2 34%,
      #e52421 38%,
      transparent 40%,
      transparent 100%
    ),
    linear-gradient(#FFFFFF, #FFFFFF);
  background-size: 200% 100%, 100% 100%;
  background-clip: text, text;
  -webkit-background-clip: text, text;
  -webkit-text-fill-color: transparent;
  animation: metallicShine 3s ease-in-out infinite;

  /* Bright glow effect */
  filter: drop-shadow(0 0 25px rgba(255,255,255,0.5)) drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

@keyframes metallicShine {
  0% {
    background-position: -50% 0, 0 0;
  }
  100% {
    background-position: 150% 0, 0 0;
  }
}

.hero-tagline {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  color: var(--white);
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1.2s forwards;
}

.tagline-main {
  display: block;
  font-weight: 400;
}

.tagline-twist {
  display: block;
  font-weight: 600;
  font-style: italic;
  color: var(--naranja);
}

.hero-subtitle {
  font-family: 'RL AQVA', 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #FFFFFF !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.6), 0 0 30px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1.4s forwards;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 2.8rem;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--white);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1.8s forwards;
}

.scroll-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

.scroll-arrow svg {
  width: 24px;
  height: 24px;
}


/* ============================================
   SECTION 2: THE TWIST
   ============================================ */
.twist {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--off-white);
}

.twist-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.twist-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.twist-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.twist-badge {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  background: var(--rosa);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(231,42,136,0.4);
}

.badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.badge-unit {
  font-size: 0.8rem;
  opacity: 0.9;
}

.twist-content {
  text-align: center;
}

.twist-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rosa);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.twist-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
}

.twist-title strong {
  color: var(--rosa);
}

.twist-comparison {
  margin-top: var(--space-lg);
}

.comparison-but {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
}

.comparison-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.comparison-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.comparison-info {
  padding: var(--space-md);
  text-align: left;
}

.comparison-destination {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xs);
}

.comparison-stat {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--turquesa);
  margin-bottom: var(--space-xs);
}

.stat-number {
  display: inline-block;
}

.comparison-hook {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
}


/* ============================================
   SECTION 3: PHOTO GALLERY
   ============================================ */
.gallery {
  padding: var(--space-2xl) 0;
  background: var(--white);
  overflow: hidden;
}

.gallery-header {
  text-align: center;
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-lg);
}

.gallery-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}

.gallery-header p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.gallery-track {
  display: flex;
  gap: var(--space-md);
  padding: 0 var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 85%;
  scroll-snap-align: center;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
}

.caption-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.caption-desc {
  font-size: 0.85rem;
  opacity: 0.8;
}

.gallery-progress {
  margin-top: var(--space-md);
  padding: 0 var(--space-lg);
}

.progress-bar {
  height: 3px;
  background: var(--gray-200);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 20%;
  background: var(--rosa);
  border-radius: 2px;
  transition: width 0.3s ease;
}


/* ============================================
   SECTION 4: COMPARISONS GRID
   ============================================ */
.comparisons {
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}

.comparisons-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.comparisons-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}

.comparisons-header p {
  font-size: 1rem;
  color: var(--gray-500);
}

.comparisons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-tile {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.comparison-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.tile-image {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.comparison-tile:hover .tile-image img {
  transform: scale(1.1);
}

.tile-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tile-content {
  padding: var(--space-md);
}

.tile-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.tile-location {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: var(--space-sm);
}

.tile-hook {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.comparisons-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

.cta-question {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--rosa);
}


/* ============================================
   SECTION 5: ANIMAL
   ============================================ */
.animal {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  overflow: hidden;
}

.animal-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.animal-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.animal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.7) 100%
  );
}

.animal-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  text-align: center;
  color: var(--white);
}

.animal-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--naranja);
  margin-bottom: var(--space-sm);
}

.animal-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.animal-story {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}

.animal-story strong {
  color: var(--naranja);
}

.animal-fact {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: var(--space-md);
  border-radius: 12px;
  text-align: left;
  font-size: 0.95rem;
}

.fact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.animal-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  opacity: 0.5;
}

.pattern-svg {
  width: 100%;
  height: 100%;
}


/* ============================================
   SECTION 6: PRODUCTS
   ============================================ */
.products {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--white);
}

.products-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.products-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rosa);
  margin-bottom: var(--space-xs);
}

.products-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}

.products-header p {
  font-size: 1rem;
  color: var(--gray-500);
  font-style: italic;
}

.products-carousel {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}

.products-carousel::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 75%;
  scroll-snap-align: center;
  background: var(--off-white);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-placeholder {
  text-align: center;
}

.placeholder-icon {
  display: block;
  font-size: 3rem;
  margin-bottom: var(--space-xs);
}

.placeholder-text {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.product-info {
  padding: var(--space-md);
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: var(--space-sm);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rosa);
}

.products-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: #25D366;
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.cta-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,211,102,0.5);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
}


/* ============================================
   SECTION 7: FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-2xl) var(--space-lg);
}

.footer-next {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-next h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  color: rgba(255,255,255,0.9);
}

.next-destinations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.next-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-md) var(--space-lg);
  border-radius: 12px;
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.next-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--rosa);
}

.next-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.next-hook {
  font-size: 0.8rem;
  color: var(--naranja);
}

.footer-brand {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.brand-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.3s ease;
}

.footer-social a:hover {
  background: var(--rosa);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-legal {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-nfc {
  margin-top: var(--space-xs);
  color: var(--turquesa);
}


/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .twist-container {
    flex-direction: row;
    align-items: center;
  }

  .twist-visual {
    flex: 1;
  }

  .twist-content {
    flex: 1;
    text-align: left;
  }

  .comparison-card {
    flex-direction: row;
  }

  .comparison-card img {
    width: 200px;
    height: auto;
  }

  .gallery-item {
    flex: 0 0 45%;
  }

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

  .product-card {
    flex: 0 0 40%;
  }
}


/* ============================================
   DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero-content {
    max-width: 800px;
  }

  .gallery-item {
    flex: 0 0 35%;
  }

  .comparisons-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tile-image {
    height: 200px;
  }

  .product-card {
    flex: 0 0 28%;
  }

  .next-destinations {
    gap: var(--space-md);
  }
}


/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
