/* ======================================================
   VARIABLES GENERALES
====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

:root {
  --naranja: #FF8C42;
  --azul: #1E90FF;
  --beige: #FFF8F0;
  --gris: #444;
  --blanco: #fff;
  --fuente: "Poppins", sans-serif;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background: var(--beige);
  color: var(--gris);
  scroll-behavior: smooth;
}

/* Para escritorio, mantener una sola línea */
@media (min-width: 1024px) {
  .hero-content h1 {
    margin-bottom: 5px;
    white-space: nowrap;
  }
}


/* ======================================================
   NAVBAR
====================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* Contenedor principal */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo y texto */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 60px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
  background: linear-gradient(45deg, var(--naranja), var(--azul));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.logo-text span {
  font-weight: 700;
  color: var(--naranja);
  -webkit-text-fill-color: var(--naranja);
}

/* Enlaces */
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  transition: transform 0.4s ease;
}

.nav-links a {
  text-decoration: none;
  color: var(--gris);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--azul);
}

/* Botón menú hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  width: 100%;
  background: var(--gris);
  border-radius: 2px;
  transition: 0.3s;
}

/* ======================================================
   MÓVIL
====================================================== */
@media (max-width: 900px) {
  .nav-container {
    padding: 12px 5%;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 220px;
    transform: translateX(100%);
    padding: 25px 0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-links a {
    margin: 12px 0;
    color: var(--gris);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  /* animación del icono */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

/* ======================================================
   HERO SECTION
====================================================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-content span {
  color: var(--naranja);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-weight: 300;
}

/* Línea decorativa debajo del título */
.hero-line {
  width: 80px;
  height: 4px;
  background: var(--naranja);
  margin: 0 auto 25px;
  border-radius: 2px;
}

/* Botones del hero */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-primary {
  background: var(--azul);
  color: white;
  padding: 12px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.btn-primary:hover {
  background: var(--naranja);
}

.btn-outline {
  border: 2px solid var(--blanco);
  color: white;
  padding: 12px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.btn-outline:hover {
  background: var(--naranja);
  border-color: var(--naranja);
}

/* HERO - CELULAR */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .logo-text {
    font-size: 1rem;
  }
  .logo-img {
    height: 45px;
  }
}

/* ======================================================
   DESTINOS (ajustado)
====================================================== */
.destinos {
  padding: 100px 5%;
  background: var(--beige);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  color: var(--azul);
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--gris);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.chip {
  border: none;
  background: #fff;
  color: var(--gris);
  border-radius: 25px;
  padding: 10px 18px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip:hover {
  background: var(--azul);
  color: white;
}

.chip.active {
  background: var(--naranja);
  color: white;
}

@media (max-width: 768px) {
  .chips {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    row-gap: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .chip {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
}

/* Tarjetas */
.grid-rutas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  justify-items: center;
}

.card-ruta {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 320px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.card-ruta:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-ruta__media {
  position: relative;
}

.card-ruta__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Badge arriba a la izquierda */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--azul);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-ruta__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 180px;
}

.card-ruta__body h3 {
  color: var(--azul);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.card-ruta__body p {
  color: var(--gris);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 15px;
}

.btn-card {
  display: inline-block;
  padding: 8px 20px;
  background: var(--naranja);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.3s;
  align-self: center;
}

.btn-card:hover {
  background: var(--azul);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .grid-rutas {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .card-ruta {
    width: 100%;
  }
}

/* ======================================================
   EFECTO ANIMADO EN ICONOS DE LOS CHIPS
====================================================== */

/* Animación de rebote */
@keyframes chipBounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-4px); }
  60%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

/* Animación de brillo (cuando está activo) */
@keyframes iconGlow {
  0%   { text-shadow: 0 0 0 rgba(255,255,255,0); }
  50%  { text-shadow: 0 0 8px rgba(255,255,255,0.7); }
  100% { text-shadow: 0 0 0 rgba(255,255,255,0); }
}

/* Cuando pasas el mouse por encima */
.chip:hover i {
  animation: chipBounce 0.4s ease;
}

/* Cuando está activo, el icono tiene un brillo sutil */
.chip.active i {
  animation: iconGlow 1.5s ease-in-out infinite;
}




/* ======================================================
   SECCIÓN NOSOTROS
====================================================== */
.nosotros {
  padding: 100px 5%;
  background: linear-gradient(to bottom, #ffffff 0%, #fff8f0 100%);
}

.nosotros-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.nosotros-texto {
  flex: 1;
}

.nosotros-texto h2 {
  color: var(--azul);
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.nosotros-texto p {
  color: var(--gris);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.btn-nosotros {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 25px;
  background: var(--naranja);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-nosotros:hover {
  background: var(--azul);
}

/* Imagen fija y dinámica */
.nosotros-imagen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nosotros-imagen img {
  width: 100%;
  max-width: 450px;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* efecto de movimiento dinámico */
.nosotros-imagen img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Responsivo */
@media (max-width: 900px) {
  .nosotros-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .nosotros-imagen img {
    max-width: 100%;
    height: 280px;
  }

  .nosotros-texto h2 {
    font-size: 1.8rem;
  }
}


/* ======================================================
   CTA CON IMAGEN DE FONDO + DEGRADADO ANIMADO (CORREGIDO)
====================================================== */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 20px;
  color: white;
}

/* Imagen de fondo (va abajo de todo) */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('media/cta.png') center/cover no-repeat;
  z-index: 0;
  filter: brightness(0.9);
}

/* Capa de degradado animado (encima de la imagen) */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,144,255,0.7), rgba(255,140,66,0.7));
  background-size: 300% 300%;
  animation: gradientFlow 10s ease infinite;
  z-index: 1;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Contenido */
.cta-content {
  position: relative;
  z-index: 2; /* por encima del degradado */
  max-width: 800px;
  margin: 0 auto;
}

.cta-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.cta-text p {
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 40px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Botones CTA */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.btn-azul {
  background: white;
  color: var(--azul);
}

.btn-azul:hover {
  background: var(--naranja);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-blanco {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-blanco:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

/* Responsivo */
@media (max-width: 768px) {
  .cta {
    padding: 80px 20px;
  }
  .cta-text h2 {
    font-size: 2rem;
  }
  .cta-text p {
    font-size: 1rem;
  }
}


/* ======================================================
   CONTACTO (VERSIÓN FINAL ELEGANTE)
====================================================== */
.contacto {
  position: relative;
  padding: 120px 5%;
  background: #f9f9f9; /* Fondo limpio sin degradado */
  overflow: hidden;
}

.contacto-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--gris);
}

/* ===================== */
/* INFORMACIÓN IZQUIERDA */
/* ===================== */
.contacto-info {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 20px;
  padding: 40px 35px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.contacto-info h2 {
  color: var(--azul);
  font-size: 2rem;
  margin-bottom: 15px;
}

.contacto-info p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* ===================== */
/* INFORMACIÓN IZQUIERDA (ICONOS MINIMALISTAS) */
/* ===================== */
.contacto-lista {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.contacto-lista li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--gris);
  transition: color 0.3s ease;
}

.contacto-lista i {
  color: var(--azul);
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contacto-lista li:hover i {
  color: var(--naranja);
  transform: translateY(-3px);
}

.contacto-lista a {
  color: var(--azul);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contacto-lista a:hover {
  color: var(--naranja);
  text-decoration: underline;
}


/* ===================== */
/* FORMULARIO DERECHA */
/* ===================== */
.contacto-formulario {
  flex: 1;
  min-width: 340px;
  background: white;
  border-radius: 20px;
  padding: 40px 35px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.contacto-formulario h3 {
  color: var(--azul);
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.6rem;
  font-weight: 700;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--azul);
  font-size: 1rem;
}

.contacto-formulario input,
.contacto-formulario textarea {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
  border-color: var(--naranja);
  box-shadow: 0 0 0 2px rgba(255,140,66,0.3);
}

.btn-enviar {
  width: 100%;
  background: var(--naranja);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.btn-enviar:hover {
  background: var(--azul);
  transform: translateY(-3px);
}

/* ===================== */
/* RESPONSIVO */
/* ===================== */
@media (max-width: 900px) {
  .contacto-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .contacto-info,
  .contacto-formulario {
    width: 100%;
    padding: 30px 25px;
  }

  .contacto-info h2 {
    font-size: 1.7rem;
  }

  .contacto-formulario h3 {
    font-size: 1.4rem;
  }
}

/* ======================================================
   SUBRAYADO ANIMADO EN EL TÍTULO
====================================================== */
.contacto-info h2 {
  position: relative;
  display: inline-block;
  color: var(--azul);
  font-size: 2rem;
  margin-bottom: 20px;
  overflow: hidden;
}

.contacto-info h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--azul), var(--naranja));
  transition: width 0.6s ease-in-out;
}

.contacto-info h2.reveal-line::after {
  width: 100%;
}

/* ======================================================
   CORRECCIÓN DE MÁRGENES Y DESBORDAMIENTO EN MÓVIL
====================================================== */
.contacto {
  overflow-x: hidden; /* evita que algo se salga horizontalmente */
}

.contacto-wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.contacto-info,
.contacto-formulario {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .contacto-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .contacto-info,
  .contacto-formulario {
    width: 100%;
    max-width: 600px;
    padding: 30px 25px;
    margin: 0 auto;
  }

  .contacto-info h2 {
    font-size: 1.7rem;
    text-align: center;
  }

  .contacto-info p {
    text-align: center;
  }

  .contacto-lista {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }

  .contacto-lista li {
    justify-content: flex-start;
  }

  .contacto-formulario {
    padding: 30px 25px;
  }
}



/* ======================================================
   FOOTER (OPTIMIZADO Y COMPACTO)
====================================================== */
.footer {
  background: #0e1a2b;
  color: white;
  text-align: center;
  padding: 50px 5% 25px;
  font-family: inherit;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 25px;
}

/* Logo y slogan */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.footer-logo img {
  width: 80px;
  height: auto;
  margin-bottom: 5px;
}

.footer-logo .slogan {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  font-style: italic;
}

/* Contacto */
.footer-contacto {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-contacto h4 {
  color: var(--naranja);
  font-size: 1rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contacto .direccion {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  line-height: 1.4;
  max-width: 300px;
}

.footer-contacto a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: color 0.3s;
}

.footer-contacto a i {
  color: var(--naranja);
  font-size: 1rem;
}

.footer-contacto a:hover {
  color: var(--naranja);
}

/* Parte inferior */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 15px;
}

.footer-bottom p {
  margin: 3px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.footer-bottom .creditos a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom .creditos a:hover {
  color: var(--naranja);
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-logo,
  .footer-contacto {
    align-items: center;
    text-align: center;
  }

  .footer-contacto .direccion {
    max-width: 90%;
  }

  .footer {
    padding: 40px 20px 20px;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

/* ===================== */
/* RESPONSIVO */
/* ===================== */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    align-items: center;
  }

  .footer-contacto {
    align-items: center;
  }

  .footer-contacto a {
    justify-content: center;
  }

  .footer {
    padding: 50px 20px 25px;
  }
}
