/* ============================================
   InterVIS – Estilos principales
   Estructura: css/styles.css
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --primary: #0369a1;
  --primary-dark: #025a8c;
  --accent: #2dd4bf;
  --accent-dark: #14b8a6;
  --secondary: #f59e0b;
  --foreground: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg-gray: #f8fafc;
  --white: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 1rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--foreground); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Utilities ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.bg-white { background: var(--white); }
.bg-gray { background: var(--bg-gray); }
.gradient-text { background: linear-gradient(135deg, var(--secondary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.accent-gold { color: var(--secondary); }

/* ---------- Section Headers ---------- */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label { display: inline-block; color: var(--primary); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.section-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; color: var(--foreground); line-height: 1.2; }
.section-subtitle { margin-top: 1rem; color: var(--muted); max-width: 37rem; margin-left: auto; margin-right: auto; font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--primary); color: var(--white);
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; transition: var(--transition);
  box-shadow: 0 4px 14px rgba(3,105,161,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(3,105,161,0.4); }

.btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--accent); color: var(--foreground);
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; transition: var(--transition);
  box-shadow: 0 4px 14px rgba(45,212,191,0.3);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--white); color: var(--primary);
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem; transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.btn-white:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }

.btn-glass {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; transition: var(--transition);
}
.btn-glass:hover { background: rgba(255,255,255,0.2); }

.btn-outline-primary {
  display: block; text-align: center;
  background: var(--bg-gray); color: var(--foreground);
  border: 1.5px solid var(--border);
  padding: 0.75rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.85rem; transition: var(--transition);
  margin-top: 1.25rem;
}
.btn-outline-primary:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  cursor: pointer;
}
.nav-logo-img {
  /* Tamaño para COMPUTADORAS (Muy visible y destacado) */
  height: 12rem; 
  width: auto;
  border-radius: 0.5rem; 
  transition: var(--transition);
  object-fit: contain;
}

/* TABLETS (Pantallas menores a 1024px) */
@media (max-width: 1024px) {
  .nav-logo-img {
    height: 8rem; /* Mantiene una muy buena presencia en pantallas medianas */
  }
}

/* TELÉFONOS (Pantallas menores a 768px) */
@media (max-width: 768px) {
  .nav-logo-img {
    height: 5.5rem; /* El tamaño máximo recomendado para que no tape todo el menú en celular */
  }
}

#navbar.scrolled .nav-logo-icon { background: var(--primary); }
.nav-logo-text {
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600;
  color: var(--white); transition: var(--transition);
}
#navbar.scrolled .nav-logo-text { color: var(--foreground); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links button {
  padding: 0.5rem 1rem; border-radius: 0.6rem;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.8); transition: var(--transition);
}
.nav-links button:hover { background: rgba(255,255,255,0.1); color: var(--white); }
#navbar.scrolled .nav-links button { color: rgba(15,23,42,0.7); }
#navbar.scrolled .nav-links button:hover { background: var(--bg-gray); color: var(--foreground); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-whatsapp-nav {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--foreground);
  padding: 0.5rem 1.1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; transition: var(--transition);
}
.btn-whatsapp-nav:hover { filter: brightness(1.1); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 0.4rem; border-radius: 0.5rem; transition: var(--transition);
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}
#navbar.scrolled .nav-hamburger span { background: var(--foreground); }

.nav-mobile {
  display: none; flex-direction: column;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border); padding: 1rem 1.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile button {
  display: block; width: 100%; text-align: left;
  padding: 0.75rem 1rem; border-radius: 0.75rem;
  color: rgba(15,23,42,0.75); font-weight: 500; transition: var(--transition);
}
.nav-mobile button:hover { background: var(--bg-gray); color: var(--foreground); }
.mobile-ctas { display: flex; gap: 0.75rem; padding-top: 0.75rem; }
.mobile-ctas a { flex: 1; text-align: center; padding: 0.75rem; border-radius: 0.75rem; font-weight: 600; font-size: 0.9rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}
.hero-badge {
  position: absolute; top: 5.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); padding: 0.6rem 1rem; border-radius: 0.75rem;
  font-size: 0.85rem; font-weight: 500;
  display: none;
}
.hero-content { position: relative; z-index: 1; padding-top: 5rem; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-heading); font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.8);
  max-width: 36rem; margin-bottom: 2rem; line-height: 1.7;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; max-width: 24rem; }
.stat { text-align: center; }
.stat-value { display: block; font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; color: var(--white); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); animation: bounce 2s infinite; transition: var(--transition);
}
.scroll-indicator:hover { color: var(--white); }

/* ---------- ABOUT ---------- */
.benefits-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 3.5rem; }
.pill {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(3,105,161,0.06); border: 1px solid rgba(3,105,161,0.12);
  color: var(--primary); padding: 0.6rem 1rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500;
}
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.about-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 2rem; transition: var(--transition);
}
.about-card:hover { border-color: rgba(3,105,161,0.2); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.about-icon { font-size: 2rem; margin-bottom: 1.25rem; }
.about-card h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; color: var(--foreground); }
.about-card ul { display: flex; flex-direction: column; gap: 0.75rem; }
.about-card li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.875rem; color: var(--muted);
}
.about-card li::before { content: "✅"; font-size: 0.8rem; margin-top: 0.1rem; flex-shrink: 0; }

/* ---------- DESTINATIONS ---------- */
.destinations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 3.5rem; }
.dest-card { background: var(--white); border-radius: 1.5rem; overflow: hidden; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-sm); }
.dest-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.dest-img { position: relative; height: 15rem; overflow: hidden; }
.dest-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.dest-card:hover .dest-img img { transform: scale(1.08); }
.dest-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%); }
.dest-name { position: absolute; bottom: 1rem; left: 1.25rem; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.dest-body { padding: 1.25rem; }
.dest-tagline { color: var(--primary); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; }
.dest-desc { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.dest-link { display: inline-block; margin-top: 1rem; color: var(--primary); font-weight: 600; font-size: 0.875rem; transition: var(--transition); }
.dest-card:hover .dest-link { letter-spacing: 0.02em; }

.international { text-align: center; }
.intl-label { color: var(--muted); font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.intl-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.intl-tags span {
  background: var(--white); border: 1px solid var(--border);
  padding: 0.5rem 1.25rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; transition: var(--transition); cursor: default;
}
.intl-tags span:hover { border-color: rgba(3,105,161,0.3); background: rgba(3,105,161,0.04); }

/* ---------- PACKAGES ---------- */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.pkg-card {
  position: relative; background: var(--white);
  border: 1.5px solid var(--border); border-radius: 1.5rem; overflow: hidden;
  transition: var(--transition);
}
.pkg-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(3,105,161,0.2); }
.pkg-highlight { border-color: rgba(3,105,161,0.3); box-shadow: 0 8px 30px rgba(3,105,161,0.1); }
.pkg-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  background: var(--secondary); color: var(--foreground);
  padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
}
.pkg-img { height: 11rem; overflow: hidden; }
.pkg-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pkg-card:hover .pkg-img img { transform: scale(1.05); }
.pkg-body { padding: 1.5rem; }
.pkg-body h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.pkg-nights { color: var(--muted); font-size: 0.875rem; margin-bottom: 1rem; }
.pkg-features { display: flex; flex-direction: column; gap: 0.6rem; }
.pkg-features li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--muted); }
.pkg-features li::before { content: "✔"; color: var(--accent-dark); font-size: 0.8rem; flex-shrink: 0; }
.pkg-highlight .btn-outline-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pkg-highlight .btn-outline-primary:hover { background: var(--primary-dark); }

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item {
  position: relative; border-radius: 1rem; overflow: hidden; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-hover {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: var(--transition);
  display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-hover { background: rgba(0,0,0,0.3); }
.gallery-hover span { color: var(--white); font-weight: 500; font-size: 0.9rem; opacity: 0; transform: translateY(8px); transition: var(--transition); }
.gallery-item:hover .gallery-hover span { opacity: 1; transform: translateY(0); }
.span-2x2 { grid-column: span 2; grid-row: span 2; }
.span-2x1 { grid-column: span 2; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(16px);
  align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: rgba(255,255,255,0.7); font-size: 1.5rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); cursor: pointer;
}
.lightbox-close:hover { color: var(--white); background: rgba(255,255,255,0.1); }
#lightboxImg { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 1rem; }

/* ---------- CTA ---------- */
.cta-section { position: relative; padding: 7rem 0; overflow: hidden; text-align: center; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(3,105,161,0.9), rgba(3,105,161,0.8), rgba(45,212,191,0.8)); }
.cta-content { position: relative; z-index: 1; max-width: 56rem; margin: 0 auto; }
.cta-title { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; color: var(--white); margin-bottom: 1.5rem; }
.cta-subtitle { color: rgba(255,255,255,0.85); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 40rem; margin: 0 auto 2.5rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-location { margin-top: 2rem; color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ---------- FOOTER ---------- */
.footer { background: var(--foreground); color: rgba(255,255,255,0.65); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem;
  padding: 4rem 1.5rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-col h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col li, .footer-col button, .footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-col button:hover, .footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.35);
  flex-wrap: wrap; gap: 0.5rem;
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25); transition: var(--transition);
}
.whatsapp-float:hover { background: #20BD5A; transform: scale(1.1); }

/* ---------- Animations ---------- */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-down { animation: fadeDown 0.8s ease 0.5s both; }
.animate-fade-up { animation: fadeUp 0.8s ease both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

.animate-on-scroll { opacity: 0; transform: translateY(25px); transition: opacity 0.65s ease, transform 0.65s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .hero-badge { display: flex; }
  .nav-hamburger { display: none; }
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .span-2x2 { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary, .hero-buttons .btn-glass { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .mobile-ctas { flex-direction: column; }
}