/* ==========================================================================
   RESET Y BASE RESPONSIVE (Añadir al inicio del CSS)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Crucial: evita que el padding expanda el ancho */
}

body {
  overflow-x: hidden; /* Evita el scroll horizontal */
  width: 100%;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Esto empuja el texto hacia adentro en móviles */
}

/* Ocultar el botón de reserva en móvil para que no estorbe con el menú */
@media (max-width: 768px) {
  .btn-reserva {
    display: none;
  }
}

/* ==========================================================================
   ESTILOS GENERALES Y VARIABLES - SELVATOURS
   ========================================================================== */
:root {
  --primary: #00509d; /* Azul Profesional (Agencia) */
  --secondary: #ffb703; /* Naranja/Amarillo (Aventura/Botones) */
  --accent: #2a9d8f; /* Verde (Selva/Chiapas) */
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --font-main: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 15px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Botones */
.btn-primary {
  background-color: var(--secondary);
  color: var(--text-dark);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-block;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background-color: #e5a402;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* =========================================
   LOADER ANIMADO (Escena)
========================================= */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--primary, #00509d);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  color: var(--white, #ffffff);
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
  padding: 20px;
  text-align: center;
}

.loader-scene {
  position: relative;
  width: 200px;
  height: 150px;
  background: #87ceeb;
  border-radius: 50% 50% 0 0;
  overflow: hidden;
  border: 4px solid var(--secondary, #ffb703);
  margin-bottom: 20px;
}

.sun {
  position: absolute;
  font-size: 3rem;
  animation: sun-cycle 4s infinite linear;
}

.palm-tree {
  position: absolute;
  bottom: -5px;
  right: 20px;
  font-size: 4rem;
  z-index: 3;
}

.waterfall {
  position: absolute;
  bottom: 0;
  left: 50px;
  font-size: 4rem;
  z-index: 2;
  animation: flow 1s infinite alternate;
}

.birds {
  position: absolute;
  font-size: 2rem;
  top: 20px;
  z-index: 4;
  transform: scaleX(-1);
  animation: fly-birds 4s infinite linear;
}

@keyframes sun-cycle {
  0% {
    bottom: -40px;
    left: 180px;
    transform: rotate(360deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    bottom: 80px;
    left: 70px;
    transform: rotate(180deg);
  }
  80% {
    opacity: 1;
  }
  100% {
    bottom: -40px;
    left: -30px;
    transform: rotate(0deg);
    opacity: 0;
  }
}

@keyframes fly-birds {
  0% {
    left: -50px;
    transform: scaleX(-1) translateY(0);
  }
  50% {
    transform: scaleX(-1) translateY(-10px);
  }
  100% {
    left: 220px;
    transform: scaleX(-1) translateY(0);
  }
}

.loader-text {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white, #ffffff);
}

/* ==========================================================================
   TOP BAR & NAVBAR
   ========================================================================== */
.top-bar {
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--secondary);
}

.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* ==========================================================================
   HERO INDEX & HERO INNER
   ========================================================================== */
.hero {
  background:
    linear-gradient(rgba(0, 80, 157, 0.75), rgba(0, 80, 157, 0.35)),
    url("https://images.unsplash.com/photo-1586627867946-f57ed2816cf1?q=80&w=1173&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
      no-repeat center center/cover;
  padding: 100px 0 140px;
  color: var(--white);
  text-align: center;
  position: relative;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-inner {
  background:
    linear-gradient(rgba(0, 80, 157, 0.85), rgba(0, 80, 157, 0.35)),
    url("https://images.unsplash.com/photo-1586627867946-f57ed2816cf1?q=80&w=1173&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
      no-repeat center center/cover;
  padding: 70px 0;
  color: var(--white);
  text-align: center;
  margin-bottom: 0;
}

.hero-inner h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.hero-inner p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* Buscador del Index */
.search-box-container {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  bottom: -50px;
  transform: translateX(-50%);
  width: calc(100% - 40px);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 15px;
  align-items: end;
}

.search-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  text-align: left;
}

.search-field select,
.search-field input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* ==========================================================================
   RESPONSIVE GLOBAL Y MÓVILES (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
  .search-form {
    grid-template-columns: 1fr 1fr;
  }

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

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  /* Alinea el logo y la hamburguesa a los extremos */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
  }

  /* Oculta el botón amarillo de reserva a la fuerza */
  .nav-container .btn-primary {
    display: none !important;
  }

  /* Muestra la hamburguesa */
  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100; /* Asegura que esté por encima del menú */
  }

  /* Menú lateral desplegable */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease-in-out;
    z-index: 1050; /* Por debajo de la hamburguesa pero arriba del resto */
  }

  /* Clase que activa JS para mostrar el menú */
  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    font-size: 1.5rem;
    text-decoration: none;
    color: #333;
  }
}

@media (max-width: 480px) {
  .loader-scene {
    width: 150px;
    height: 115px;
    border-width: 3px;
  }

  .sun {
    font-size: 2.2rem;
  }

  .palm-tree {
    font-size: 3rem;
    right: 10px;
  }

  .waterfall {
    font-size: 3rem;
    left: 30px;
  }

  .birds {
    font-size: 1.5rem;
    top: 15px;
  }

  .loader-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
}

/* ==========================================================================
   FEATURES / BENEFICIOS
   ========================================================================== */
.features {
  padding: 80px 0 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-box {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-box i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.feature-box h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ==========================================================================
   TARJETAS Y GRID DE VIAJES / PAQUETES
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pkg-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pkg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.pkg-img {
  position: relative;
  height: 220px;
}

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

/* AJUSTE DE LA TERCERA IMG PERSONALIZADO */
.grid-3 .pkg-card:nth-child(3) img {
  /* Tus ajustes aquí, por ejemplo: */
  object-fit: cover;
  object-position: 50% 35%; 
}
.grid-3 .pkg-card:nth-child(4) img {
  /* Tus ajustes aquí, por ejemplo: */
  object-fit: cover;
  object-position: 50% 10%; 
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary);
  color: var(--text-dark);
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pkg-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pkg-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.pkg-meta i {
  color: var(--accent);
}

.pkg-content h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.pkg-content p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.pkg-includes {
  display: flex;
  gap: 15px;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.pkg-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 10px;
}

.price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

/* ==========================================================================
   FILTROS PARA PÁGINAS DE VIAJES Y PAQUETES
   ========================================================================== */
.filter-section {
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-btn {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   SECCIÓN SOBRE NOSOTROS (INDEX)
   ========================================================================== */
.about-section {
  background-color: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.about-img img {
  width: 100%;
  top: 20%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  height: 380px;
  object-fit: cover;
  object-position: 50% 100%;
}

.about-content h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-list {
  margin-bottom: 30px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-dark);
}

.about-list li i {
  color: var(--accent);
}

/* ==========================================================================
   ACORDEÓN FAQ (PREGUNTAS FRECUENTES)
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.faq-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
  gap: 15px;
}

.faq-header i {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-header.active i {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  color: var(--text-light);
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}

.faq-content p {
  padding-bottom: 20px;
}

/* ==========================================================================
   RESPONSIVE (MEDIA QUERIES PARA ESTOS BLOQUES)
   ========================================================================== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-img img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .features {
    padding: 60px 0 30px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }

  .pkg-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .pkg-footer .btn-primary,
  .pkg-footer .btn-outline,
  .pkg-footer a {
    width: 100%;
    text-align: center;
  }

  .price {
    text-align: center;
    margin-bottom: 5px;
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  .faq-header {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .faq-content {
    padding: 0 20px;
  }
}
/* ==========================================================================
   CONTACTO Y FORMULARIO
   ========================================================================== */
.contact-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card,
.contact-form-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-info-card h2,
.contact-form-card h2 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.contact-info-card p {
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-details-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-details-list li i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 4px;
}

.contact-details-list strong {
  color: var(--text-dark);
  display: block;
  margin-bottom: 3px;
}

.contact-details-list p {
  margin: 0;
  color: var(--text-light);
}

.contact-socials-box h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.social-icons-large {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--bg-light);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 80, 157, 0.1);
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: var(--secondary);
  color: var(--text-dark);
  transition: var(--transition);
  text-align: center;
}

.btn-block:hover {
  background-color: #e5a402;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.map-section {
  width: 100%;
  line-height: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: #0b192c;
  color: var(--white);
  padding: 70px 0 20px;
}

footer a {
  color: #2a9d8f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.footer-col p {
  color: #adb5bd;
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.footer-socials a:hover {
  background-color: var(--secondary);
  color: var(--text-dark);
}

.footer-col h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #adb5bd;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  color: #adb5bd;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.contact-list li i {
  color: var(--secondary);
  margin-top: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .features-grid,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .search-form {
    grid-template-columns: 1fr;
  }
  .search-box-container {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 30px 20px 0;
    width: auto;
  }
  .hero {
    padding-bottom: 60px;
  }
  .contact-info-card,
  .contact-form-card {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .features-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .top-bar {
    display: none;
  }
  .contact-info-card,
  .contact-form-card {
    padding: 20px 15px;
  }
}

/* ==========================================================================
   MENÚ DE HAMBURGUESA Y NAVEGACIÓN MÓVIL
   ========================================================================== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
  z-index: 1001;
  padding: 5px;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }
}
