/* -------- VARIABLES Y RESET -------- */
:root {
  --primary-color: #8c2d8b;
  --secondary-color: #7d39eb;
  --accent-color: #03b9df;
  --text-color: #333;
  --light-text: #fff;
  --light-bg: #f3e6fa;
  --dark-bg: #333;
  --transition-speed: 0.3s;
  --container-max-width: 1200px;
  --header-height: 70px;
  --top-bar-height: 45px;
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
  background-color: #fff;
  transition: opacity 0.3s ease;
  opacity: 1;
  line-height: 1.6;
}

body.fade-out {
  opacity: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed) ease;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border: none;
}

button:focus,
a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

/* -------- UTILIDADES -------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(28px, 5vw, 40px);
  color: var(--primary-color);
  text-align: center;
  margin-top: 50px;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: clamp(16px, 3vw, 25px);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  padding: 0 10px;
}

/* -------- BARRA SUPERIOR -------- */
.top-bar {
  width: 100%;
  background: linear-gradient(90deg, var(--light-bg) 0%, #e8d6f5 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 10px 20px;
  font-size: 15px;
  z-index: 100;
  position: relative;
  height: var(--top-bar-height);
}

.top-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 500;
}

.top-bar-content i {
  font-size: 16px;
  color: var(--secondary-color);
}

.top-bar-content .label {
  font-weight: bold;
  font-size: 15px;
}

.top-bar-content a {
  color: #6a1b9a;
  font-weight: bold;
}

.top-bar-content a:hover {
  color: #c2185b;
}

.top-bar-content .separator {
  color: #aaa;
  font-weight: 600;
}

/* -------- NAVBAR -------- */
.main-navbar {
  background-color: transparent;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 1000;
  position: absolute;
  top: var(--top-bar-height);
  transition: background-color var(--transition-speed) ease, 
              box-shadow var(--transition-speed) ease;
}

.main-navbar.scrolled {
  position: fixed;
  top: 0;
  background-color: var(--accent-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand .logo {
  height: auto;
  max-height: 100px;
  vertical-align: middle;
}

.navbar-links ul {
  display: flex;
}

.navbar-links li {
  margin-left: 30px;
}

.navbar-links a {
  color: var(--light-text);
  font-weight: 700;
  padding: 8px 0;
  white-space: nowrap;
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}

.main-navbar.scrolled .navbar-links a {
  color: var(--light-text);
}

.navbar-links a:hover {
  color: var(--light-bg);
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: all 0.4s ease-in-out;
}

.main-navbar.scrolled .hamburger-menu .bar {
  background-color: var(--light-text);
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* -------- HERO SECTION -------- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  background: linear-gradient(to bottom right, #51e6ff, #51e6ff);
  overflow: hidden;
  padding-top: calc(var(--top-bar-height) + var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 50% 100px;
  border-bottom-right-radius: 50% 100px;
  box-shadow: 0 0 0 40px var(--primary-color);
  margin-bottom: 40px;
}

.bubble-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.bubble {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: bubble-float linear infinite;
  will-change: transform, opacity;
}

@keyframes bubble-float {
  0% { transform: translateY(calc(100% + 50vh)) translateX(0) scale(1); opacity: 1; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-300px) translateX(var(--translate-x)) scale(var(--scale)); opacity: 0; }
}

.content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 100px 5% 60px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
}

.slogan {
  font-size: clamp(1.5em, 4vw, 2.2em);
  font-weight: bold;
  line-height: 1.3;
  width: 60%;
}

.ship-image {
  width: 30%;
  max-width: 350px;
  margin-top: -50px;
  animation: floatShip 3s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes floatShip {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

/* -------- CARRUSELES -------- */
.contenedor-carruseles {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  min-height: 260px;
  margin: 20px auto;
  max-width: 1200px;
}

.mini-carrusel {
  flex: 1 1 100%;
  min-width: 300px;
  aspect-ratio: 16 / 9; /* mantiene proporción tipo video */
  background-size: contain; /* que no corte la imagen */
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 15px;
  transition: background-image 1s ease-in-out, transform 0.5s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.mini-carrusel:hover {
  transform: scale(1.03);
}

@media screen and (max-width: 768px) {
  .mini-carrusel {
    flex: 1 1 100%;
  }
}


/* -------- PAQUETES -------- */
.nuevo-contenedor {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 60px auto;
  padding: 20px;
}

.paquetes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 30px auto;
}

.paquete-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 350px;
  width: 100%;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: transparent;
}

.paquete-item:hover {
  transform: translateY(-5px);
}

.paquete-item img {
  width: 100%;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.btn-contratar {
  display: inline-block;
  padding: 12px 30px;
  margin: 15px 0;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: background-color var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

.btn-contratar:hover {
  background-color: var(--secondary-color);
  transform: scale(1.05);
}

/* -------- LOGO SLIDER -------- */
.logo-slider {
  background-color: var(--light-bg);
  padding: 30px 0;
  margin: 40px 0;
  overflow: hidden;
  white-space: nowrap;
}

.slider-track {
  display: inline-block;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
}

.slider-track img {
  display: inline-block;
  height: 35px;
  margin: 0 40px;
  vertical-align: middle;
  opacity: 0.8;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.slider-track img:hover {
  opacity: 1;
  transform: scale(1.2);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* -------- COBERTURA -------- */
.section-cobertura {
  background-color: #f9f9f9;
  padding: 40px 0;
  margin: 40px 0;
}

.cobertura-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.column {
  flex: 1 1 300px;
  margin-bottom: 30px;
}

.cobertura-subtitle {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 5px;
  display: inline-block;
}

.cobertura-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.cobertura-list i {
  color: var(--secondary-color);
  margin-right: 10px;
}

.cobertura-list a {
  color: var(--text-color);
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
  display: inline-block;
}

.cobertura-list a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.buscador-container {
  flex: 1 1 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.buscador-container h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.search-container {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.search-container input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 16px;
}

.search-container button {
  padding: 12px 20px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
}

.search-container button:hover {
  background-color: var(--primary-color);
}

#resultado {
  margin-top: 20px;
  text-align: center;
  font-weight: 500;
  min-height: 30px;
}

/* -------- CONTACTOS -------- */
.seccion-contacto {
  background-color: var(--light-bg);
  padding: 60px 20px;
  text-align: center;
}

.seccion-contacto h2 {
  color: var(--primary-color);
  font-size: 40px;
  margin-bottom: 10px;
}

.contact-subtitle {
  color: var(--primary-color);
  margin-bottom: 40px;
  font-size: 20px;
}

.tarjetas-contacto {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.tarjeta {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 30px 20px;
  width: 280px;
  box-shadow: 0 10px 30px rgb(140, 45, 139);
  transition: transform var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tarjeta:hover {
  transform: translateY(-10px);
}

.tarjeta img {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
}

.tarjeta h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 22px;
}

.tarjeta p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.contact-btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: #8c2d8b;
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

.contact-btn:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

/* -------- FOOTER -------- */
.footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 50px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--container-max-width);
}

.footer-column {
  flex: 1 1 250px;
  margin-bottom: 30px;
}

.footer-column h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;

}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #bbb;
  transition: color var(--transition-speed) ease;
}

.footer-column ul li a:hover {
  color: var(--accent-color);
}

.legal-lists ul {
  font-size: 14px;
}

.social-link {
  display: flex;
  gap: 15px;
}

.social-link a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  transition: background-color var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

.social-link a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 30px;
  text-align: center;
}

.logo-footer {
  margin: 0 auto;
}

/* -------- RESPONSIVO -------- */
@media screen and (max-width: 1024px) {
  .content {
    flex-direction: column-reverse;
    padding: 80px 5% 40px;
    align-items: center;
    text-align: center;
  }
  
  .slogan {
    width: 100%;
    margin-top: 30px;
  }
  
  .ship-image {
    width: 50%;
    margin-top: 0;
  }
  
  .tarjetas-contacto {
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .top-bar-content {
    justify-content: flex-start;
  }
  
  .hamburger-menu {
    display: block;
  }
  
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-speed) ease;
    z-index: 1000;
  }
  
  .navbar-links.active {
    right: 0;
  }
  
  .navbar-links ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .navbar-links li {
    margin: 15px 0;
    width: 100%;
    text-align: center;
  }
  
  .navbar-links a {
    font-size: 20px;
    width: 100%;
    display: block;
    padding: 10px 0;
  }
  
  .hero-section {
    min-height: 500px;
    border-bottom-left-radius: 30% 50px;
    border-bottom-right-radius: 30% 50px;
    box-shadow: 0 0 0 20px var(--primary-color);
  }
  
  .mini-carrusel {
    min-width: 100%;
    margin-bottom: 20px;
  }
  
  .footer-column {
    flex: 1 1 100%;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-subtitle {
    font-size: 18px;
  }
  
  .column {
    flex: 1 1 100%;
  }
}

@media screen and (max-width: 480px) {
  .top-bar {
    padding: 8px;
  }
  
  .top-bar-content {
    font-size: 14px;
  }
  
  .top-bar-content .label {
    display: none;
  }
  
  .slogan {
    font-size: 1.3em;
  }
  
  .ship-image {
    width: 70%;
  }
  
  .tarjeta {
    width: 100%;
  }
  
  .search-container {
    flex-direction: column;
  }
  
  .search-container input,
  .search-container button {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }
}

/* -------- TITULOS -------- */
h2 {
  text-align: center;
  font-size: 2rem;
  padding-top: 50px;
}

.contenedor {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
}

.cajas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.caja {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 20px;
  width: 300px;
  flex-grow: 1;
  transition: transform 0.2s;
}

.caja:hover {
  transform: translateY(-5px);
}

.icono {
  font-size: 40px;
  margin-bottom: 10px;
}

.caja h3 {
  color: #2c3e50;
  font-size: 18px;
  margin-bottom: 10px;
}

.caja p {
  font-size: 15px;
  margin-bottom: 15px;
}

.caja a {
  display: inline-block;
  margin: 5px 5px 0;
  padding: 8px 16px;
  background-color: #8c2d8b;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.caja a:hover {
  background-color: #03b9df;
}

.img-establecimiento {
  width: 80px;        /* Cambia este valor según el tamaño deseado */
  height: auto;       /* Mantiene la proporción original */
  max-height: 60px;   /* Limita la altura si es necesario */
  object-fit: contain; /* Ajuste sin recorte */
  transition: transform 0.3s ease;
}

.img-establecimiento:hover {
  transform: scale(1.1); /* Efecto de zoom suave al pasar el mouse */
}