/* ============================================
   MALAQUITA VIAJES - Estilo FLY FLY
   Tema blanco, colores del logo (teal + dorado)
   ============================================ */

:root {
  /* Colores del logo Malaquita Viajes */
  --teal: #00A7BA;
  --teal-dark: #007A8A;
  --teal-light: #30C6DC;
  --gold: #F5BD00;
  --gold-dark: #e0a800;
  --bg: #ffffff;
  --bg-light: #f8fafb;
  --text: #1a1a1a;
  --text-muted: #555555;
  --radius: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease);
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

/* HEADER - transparente en hero, sólido al scroll */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: transparent;
  transition: background 0.4s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.header-visible {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled {
  padding: 0.75rem 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  height: 130px;
  width: auto;
  transition: height 0.35s var(--ease);
}

.site-header.scrolled .brand img {
  height: 48px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  transition: color 0.2s;
}

.site-header.header-visible .nav-links a {
  color: var(--text);
}

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

.site-header.header-visible .nav-links a:hover {
  color: var(--teal);
}

.btn-nav {
  background: var(--teal) !important;
  color: white !important;
  padding: 0.6rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
}

.btn-nav:hover {
  background: var(--teal-dark) !important;
  color: white !important;
}

/* HERO */
.hero-fly {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-fly .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-fly .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
}

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

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 480px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(245, 189, 0, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 189, 0, 0.4);
}

.hero-cards {
  position: relative;
  display: flex;
  gap: 1rem;
}

.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-card-main {
  flex: 1;
  aspect-ratio: 4/5;
  max-width: 280px;
}

.hero-card-secondary {
  flex: 0.8;
  aspect-ratio: 4/5;
  max-width: 220px;
  margin-top: 3rem;
}

.hero-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease);
}

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

.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.hero-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 1;
}

.hero-card-region {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-card-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.25rem 0;
  color: white;
}

.hero-card-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ONDAS FIJAS - divisores entre secciones (sin animación) */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  width: 100%;
  height: 80px;
  display: block;
  vertical-align: middle;
}

/* Onda abajo del hero */
.hero-fly {
  position: relative;
}

.wave-divider.wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}

/* Onda arriba del footer */
.wave-divider.wave-top {
  display: block;
  width: 100%;
}

/* ESTADÍSTICAS */
.stats-section {
  padding: 4rem 2rem;
  background: var(--bg-light);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
  color: var(--teal);
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* INFORMACIÓN + GALERÍA */
.info-section {
  padding: 4rem 2rem;
  background: var(--bg);
}

.info-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.info-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.info-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.info-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.info-features span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.info-feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--teal);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--teal);
  font-weight: 500;
  transition: opacity 0.2s;
}

.link-more:hover {
  opacity: 0.85;
}

.link-arrow {
  width: 18px;
  height: 18px;
}

.info-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-img {
  height: 180px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gallery-img:nth-child(2) {
  margin-left: 2rem;
}

.gallery-img:nth-child(3) {
  margin-left: 4rem;
}

/* NOSOTROS */
.about-section {
  padding: 4rem 2rem;
  background: var(--bg-light);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  height: 400px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: top center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-features {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.about-feature-icon {
  width: 32px;
  height: 32px;
  color: var(--teal);
}

.about-feature-icon svg {
  width: 100%;
  height: 100%;
}

.about-feature span:last-child {
  font-size: 0.95rem;
  font-weight: 500;
}

/* DESTINOS - Carrusel */
.destinos-section {
  padding: 4rem 2rem;
  background: var(--bg);
}

.destinos-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.destinos-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.destinos-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Contenedor del carrusel */
.carousel-destinos {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--bg-light) 0%, #fff 100%);
  box-shadow: 0 20px 60px rgba(0, 167, 186, 0.12), 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 2rem;
}

/* Flechas */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--teal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s var(--ease);
  opacity: 0.9;
}

.carousel-arrow:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
}

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

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

/* Track - slides en fila */
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 0.5rem;
}

.carousel-slide-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.carousel-badge {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 167, 186, 0.35);
}

.carousel-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Cards dentro del carrusel - 4 en fila */
.carousel-cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-cards .destino-card {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 4/5;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 167, 186, 0.25);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.carousel-dot:hover {
  background: rgba(0, 167, 186, 0.5);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--teal);
  width: 28px;
  border-radius: 5px;
}

/* Contador de progreso */
.carousel-progress {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.carousel-counter {
  color: var(--teal);
  font-size: 1.1rem;
}

.carousel-sep {
  margin: 0 0.2rem;
  opacity: 0.5;
}

/* Responsive carrusel */
@media (max-width: 768px) {
  .carousel-destinos {
    padding: 1.5rem 0.5rem;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    top: 35%;
  }

  .carousel-prev {
    left: 0.5rem;
  }

  .carousel-next {
    right: 0.5rem;
  }

  .carousel-cards {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-cards .destino-card {
    flex: 0 0 45%;
    min-width: 140px;
  }

  .carousel-progress {
    position: static;
    text-align: center;
    margin-top: 1rem;
  }
}

.destinos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.destino-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease);
}

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

.destino-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease);
}

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

.destino-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.destino-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 1;
}

.destino-card-info h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: white;
}

.destino-card-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* CONTACTO */
.contacto-section {
  padding: 4rem 2rem;
  background: var(--bg-light);
}

.contacto-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contacto-info h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contacto-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacto-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contacto-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 167, 186, 0.12);
  color: var(--teal);
  border-radius: 10px;
}

.contacto-icon svg {
  width: 22px;
  height: 22px;
}

.contacto-list strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.contacto-list p,
.contacto-list a {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.contacto-list a:hover {
  color: var(--teal);
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.contacto-form input,
.contacto-form textarea,
.contacto-form select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.contacto-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 20px;
  padding-right: 2.5rem;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
  color: var(--text-muted);
}

.contacto-form input:focus,
.contacto-form textarea:focus,
.contacto-form select:focus {
  outline: none;
  border-color: var(--teal);
}


.btn-submit {
  padding: 1rem 1.5rem;
  background: var(--teal);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--teal-dark);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold) !important;
  color: var(--text) !important;
  margin-top: 0.5rem;
}

.btn-whatsapp:hover {
  background: var(--gold-dark) !important;
  color: var(--text) !important;
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
}

/* FOOTER */
.site-footer {
  padding: 3rem 2rem 1.5rem;
  background: var(--teal);
  color: white;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-col {
  text-align: left;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  height: 200px;
  width: auto;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
}

.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
}

.footer-list a:hover {
  color: var(--gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all 0.2s;
}

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

.footer-social-link:hover {
  background: var(--gold);
  color: var(--teal);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Animaciones al scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cards {
    justify-content: center;
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .info-inner {
    grid-template-columns: 1fr;
  }

  .info-gallery {
    order: -1;
  }

  .gallery-img:nth-child(2),
  .gallery-img:nth-child(3) {
    margin-left: 0;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-img {
    order: -1;
  }

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

  .form-row-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn-nav) {
    display: none;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-cards {
    flex-direction: column;
    align-items: center;
  }

  .hero-card-secondary {
    margin-top: 0;
  }

  .stat-number {
    font-size: 2rem;
  }

}
