/* ==========================================================================
   ALEGRÍAS TOURS - FUENTES CORPORATIVAS OFICIALES
   Century Gothic (Títulos y Textos) & Stoic (Agencia de Viajes)
   ========================================================================== */

@font-face {
  font-family: 'Century Gothic';
  src: url('../assets/fonts/CenturyGothic.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Century Gothic';
  src: url('../assets/fonts/CenturyGothic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Century Gothic';
  src: url('../assets/fonts/CenturyGothic-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Century Gothic';
  src: url('../assets/fonts/CenturyGothic-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Stoic';
  src: url('../assets/fonts/Stoic-Font.ttf') format('truetype'),
       url('../assets/fonts/Stoic-Font.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Core Palette - Luminous, Sunny & Warm */
  --color-brand-yellow: #FFC700;
  --color-brand-yellow-hover: #F0B800;
  --color-brand-yellow-subtle: rgba(255, 199, 0, 0.15);
  --color-brand-yellow-border: rgba(255, 199, 0, 0.35);
  
  /* Luminous Warm Surfaces (Zero gloomy black) */
  --color-canvas: #FAF9F5;
  --color-sand: #F3EFEA;
  --color-sand-light: #F7F5F0;
  --color-white: #FFFFFF;
  --color-offwhite: #F8F9FA;
  --color-light-surface: #F1F4F8;
  --color-light-border: rgba(15, 23, 42, 0.08);
  --color-light-border-hover: rgba(255, 199, 0, 0.45);
  
  /* Deep Rich Contrast Accents (Navy & Warm Slate instead of pitch black) */
  --color-deep-navy: #0F172A;
  --color-navy-surface: #1E293B;
  --color-black: #0F172A;
  
  /* Typography Colors */
  --color-text-main: #0F172A;
  --color-text-muted: #526071;
  --color-text-light: #F8FAFC;
  --color-text-light-muted: #94A3B8;
  
  /* Status & Accents */
  --color-success: #10B981;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #128C7E;
  
  /* Typography System Oficial */
  --font-heading: 'Century Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Century Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Stoic', cursive, 'Brush Script MT', sans-serif;
  
  /* Spacing */
  --container-max-width: 1240px;
  --container-gutter: 24px;
  --header-height: 104px;
  --mobile-dock-height: 68px;
  
  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  
  /* Shadows - Luminous & Atmospheric */
  --shadow-subtle: 0 4px 20px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 12px 32px -8px rgba(15, 23, 42, 0.07), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 22px 48px -10px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(255, 199, 0, 0.15);
  --shadow-elevated: 0 25px 55px -12px rgba(15, 23, 42, 0.15);
  --shadow-dock: 0 12px 36px rgba(15, 23, 42, 0.22);
  
  /* Transitions - Spring and Smooth Curves */
  --transition-fast: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 320ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Typography Utilities */
.font-script, .script-agency, .brand-script, .agencia-script {
  font-family: inherit !important;
  font-weight: normal;
}

/* Base Reset & Box Sizing - Zero browser blue tap flashes on all touch / mobile screens */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  background-color: var(--color-white);
  color: var(--color-text-main);
  font-family: var(--font-body);
  overflow-x: clip;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip; /* Native, modern protection without breaking sticky / scroll listeners */
  max-width: 100vw;
  background-color: var(--color-white);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Media Elements */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

/* Core Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

/* Editorial Section Helpers */
.section-padding {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-dark {
  background-color: var(--color-black);
  color: var(--color-white);
  position: relative;
}

.section-light {
  background-color: var(--color-offwhite);
  color: var(--color-text-main);
}

.section-white {
  background-color: var(--color-white);
  color: var(--color-text-main);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-yellow);
  margin-bottom: 12px;
}

.section-dark .eyebrow {
  color: var(--color-brand-yellow);
}

.section-light .eyebrow,
.section-white .eyebrow {
  color: #8C6600; /* Rich contrast yellow-ochre on light bg for 100% WCAG readability */
}

/* Buttons - Fluent Spring Dynamics & Ambient Glows */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 220ms ease,
              border-color 220ms ease,
              color 220ms ease;
  will-change: transform, box-shadow;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn:active {
  transform: translateY(0px) scale(0.97);
  transition-duration: 100ms;
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--color-brand-yellow);
  color: var(--color-deep-navy);
  border-color: var(--color-brand-yellow);
}

.btn-primary:hover {
  background-color: var(--color-brand-yellow-hover);
  border-color: var(--color-brand-yellow-hover);
  color: var(--color-deep-navy);
  box-shadow: 0 12px 28px -4px rgba(255, 199, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-dark {
  background-color: var(--color-deep-navy);
  color: var(--color-white);
  border-color: var(--color-deep-navy);
}

.btn-dark:hover {
  background-color: #1E293B;
  border-color: #1E293B;
  color: var(--color-white);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.35);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-text-main);
  border-color: rgba(15, 23, 42, 0.2);
}

.btn-outline-dark:hover {
  border-color: var(--color-text-main);
  background-color: rgba(15, 23, 42, 0.05);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.btn-whatsapp {
  background-color: #128C7E;
  color: var(--color-white);
  border-color: #128C7E;
}

.btn-whatsapp:hover {
  background-color: #075E54;
  border-color: #075E54;
  color: var(--color-white);
  box-shadow: 0 12px 28px -4px rgba(18, 140, 126, 0.5), 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   FLUID INTERACTION & TAP/FOCUS RESET
   Eliminates browser blue focus rings and tap rectangles across all browsers.
   ========================================================================== */
:focus {
  outline: none !important;
}

:focus-visible {
  outline: 2px solid rgba(255, 199, 0, 0.6) !important;
  outline-offset: 2px !important;
}

button,
a,
input,
select,
textarea,
label,
summary,
[role="button"],
[tabindex] {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}

:focus,
:focus-visible {
  outline: none !important;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-select:focus,
[role="button"]:focus {
  outline: none !important;
  border-color: #FFC700 !important;
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.25) !important;
}

/* Fluid tactile feedback: instantaneous response without lag or blue box */
button,
[role="button"],
.dock-item,
.btn-primary,
.btn-secondary,
.at-btn-ver-plan,
.at-btn-reservar-wa {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* Upright Smiling Face Component (2 ojos arriba, sonrisa abajo) */
.upright-face-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.16em;
  margin-left: 0.18em;
  color: var(--color-brand-yellow, #FFC700);
  filter: drop-shadow(0 2px 5px rgba(255, 199, 0, 0.35));
}

.upright-face-inline svg {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.upright-face-inline:hover svg {
  transform: scale(1.25) rotate(-6deg);
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* ==========================================================================
   OPTIMIZACIONES DE RENDIMIENTO DE SCROLL Y RENDERIZADO (60/120 FPS)
   ========================================================================== */
.dest-card, .review-card, .footer-col, .service-card, .hotel-preview-card {
  contain: content;
}

img[loading="lazy"] {
  content-visibility: auto;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
