* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
  background: linear-gradient(to bottom, #002147, #e6f0ff);
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  zoom: 106%; 
  overflow-x: hidden; /* ✅ Solo oculta desbordes horizontales */
  height: 100%;
}

 /* Estructura principal del header */
/* ==== MAIN HEADER ==== */
.main-header {
  background: linear-gradient(to bottom, #ffffff, #002147);
  color: #ffffff;
  padding: 3rem 2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* cambiado */
  align-items: center;
  margin-bottom: -1rem;  border-bottom: 4px solid #a3c4ff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* min-height: 500px; ⛔ Eliminar esto */
  position: relative;
}


.main-header h1 {
  
  margin: 0;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  font-weight: 600;
  border-radius: 8px;
  max-width: fit-content;
  animation: pulse 1.8s infinite ease-in-out;
  margin-bottom: -10px;
  font-size: 2rem;
}

/* Solo cambia la fuente del enlace dentro del h1 */
.main-header h1 a {

  color: #ff0000d7; /* Azul fuerte para el texto */
  text-decoration: none;
  font-weight: bold;
  font-size: 2rem; /* Tamaño más grande */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* Contorno oscuro para resaltar contra fondo claro */
  text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #fffefe,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
}
@media (max-width: 600px) {
  .main-header h1 {
    font-size: 0.6rem; /* más pequeño que 1.3rem */
    animation-duration: 1.5s;
    margin-bottom: -15px; /* un poco más rápido si quieres */
  }

  .main-header h1 a {
    font-size: 0.7rem; /* más pequeño que 0.8rem */
    text-shadow:
      -0.8px -0.8px 0 #ffffff,
       0.8px -0.8px 0 #fffefe,
      -0.8px  0.8px 0 #ffffff,
       0.8px  0.8px 0 #ffffff;
  }
}


/* Animación de palpitación */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}


.main-header p {
  font-size: 1.2rem;
  margin: 0;
  color: #7eabdd;
  opacity: 0.85;
}
@media (max-width: 600px) {
  .main-header {
    padding: 4rem 2rem 2rem; /* ⬅️ Más espacio arriba y abajo */
    min-height: 199px;       /* ⬅️ Asegura que tenga una altura mínima mayor */
  }


  .main-header p {
    font-size: 1.3rem;
  }
}



/* ==== LOGOS ==== */
.logo-container {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
    padding: 0;
    margin: 0;
    line-height: 0;
  }

.logo-container:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
}

/* Logo 1: animación más sutil y natural - tamaño aumentado */
.logo1 {
  width: 180px;
  height: auto;
  border-radius: 15px;
  cursor: pointer;
  animation: smoothZoom 2s ease-out forwards;
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateX(-100px) scale(0.8);
  margin-right: -10px;
}

/* Efecto reflexión mejorado */
.logo1::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
  transform: scaleY(-1);
  filter: blur(1px);
  opacity: 0.2;
  border-radius: 15px;
}

/* Animación más natural del logo */
@keyframes smoothZoom {
  0% {
    transform: translateX(-100px) scale(0.8);
    opacity: 0;
    filter: blur(2px);
  }
  50% {
    transform: translateX(-20px) scale(0.9);
    opacity: 0.7;
    filter: blur(1px);
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: blur(0px);
  }
}

/* Logo 2: aparece con efecto más suave - tamaño aumentado */
.logo2 {
  width: 400px;
  height: 55px;
  opacity: 0;
  animation: fadeInLogo 1s ease-out forwards;
  animation-delay: 1.2s;
  display: block;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  margin: 0;
  padding: 0;
  z-index: 9999;
  margin-left: -120px;
}

/* Animación suave para logo2 */
@keyframes fadeInLogo {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Imágenes internas de los logos */
.logo img {
  max-width: 50%;
  height: auto;
  display: block;
  
  padding: 0;
}

/* Contenedores de logos individuales */
.logo {
  display: inline-block;
  margin: 0;
  padding: 0;
  line-height: 0;
  vertical-align: top;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1200px) {
  .logo-container {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
    padding: 0;
  }
  
  .logo1 {
    width: 150px;
  }
  
  .logo2 {
    width: 320px;
    height: 45px;
  }
}

@media (max-width: 768px) {
  .logo-container {
    position: fixed;
    top: 5px;
    left: 5px;
    z-index: 10000;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
    padding: 0;
  }
  
  .logo1 {
    width: 120px;
  }
  
  .logo2 {
    width: 250px;
    height: 35px;
  }
}

@media (max-width: 600px) {
  .logo-container {
    position: fixed;
    top: 5px;
    left: 5px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    padding: 0;
  }
  
  .logo1 {
    width: 100px;
  }
  
  .logo2 {
    width: 200px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .logo-container {
    position: fixed;
    top: 3px;
    left: 3px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    padding: 0;
  }
  
  .logo1 {
    width: 80px;
  }
  
  .logo2 {
    width: 160px;
    height: 22px;
  }
}


/* ==== SLIDER ==== */
  .carousel {
  position: relative;
  overflow: visible;
  width: 100%;
}
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 110px;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%; /* Ocupa todo el contenedor .slider */
}

.slide {
  width: 100%; /* Cada slide ocupa 100% del .slider */
  flex-shrink: 0;
  position: relative;
  display: block;
}

.slide img {
  width: 90%;
  margin-top: 50px;
  max-height: 400px;
  display: block;
  margin-left: auto;
  margin-right: auto;

  /* Máscara con desvanecimiento más amplio */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%);
  
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* === GENERAL === */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* ✅ evita desbordamientos horizontales */
}

/* === CELULAR === */
@media (max-width: 600px) {
  .slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin-top: 0;
    overflow: hidden;
  }

  .slides {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
  }

  .slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .slide img {
    width: 140%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;

    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}



/* Flechas de navegación */
.prev, .next {
  position: absolute;
  top: 50%;
  background-color: rgba(0,0,0,0.5);
  color: #ffffff;
  border: none;
  padding: 10px;
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 18px;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

@media (max-width: 600px) {
  .prev,
  .next {
    display: none !important;
  }
}


/* Botón promo imagen en banner */
.promo-bird {
  position: fixed;
  right: 10px;
  top: var(--promo-top, 0);
  bottom: auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  z-index: 9999;
}
.promo-bird img {
  display: block;
  width: 340px;
  height: auto;
  transition: transform 150ms ease, filter 150ms ease;
  border-radius: 0;
}
.promo-bird:hover img,
.promo-bird:focus-visible img {
  transform: scale(1.08);
  filter: brightness(1.06) drop-shadow(0 0 2px rgba(255,255,255,0.95)) drop-shadow(0 0 18px rgba(0,153,255,0.85));
}

/* Modal promoción */
.promo-modal[hidden] { display: none; }
.promo-modal__backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  z-index: 30;
}
.promo-modal__content {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(320px, 92vw, 520px);
  background: #ffffff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 12px 38px rgba(0,0,0,0.28), 0 0 18px rgba(0,153,255,0.25);
  padding: 24px;
  z-index: 31;
  animation: promoIn 180ms ease-out both;
}
.promo-modal__content h2 {
  margin: 0 0 10px 0;
  font-size: clamp(20px, 4.5vw, 28px);
  background-image: linear-gradient(135deg, #007efc, #00d0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.promo-modal__content p {
  font-size: clamp(14px, 3.6vw, 16px);
}
.promo-modal__cta {
  margin-top: 14px;
  background: linear-gradient(135deg, #007efc, #00d0ff);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,126,252,0.35);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.promo-modal__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,126,252,0.45);
}
.promo-modal__backdrop { animation: backdropIn 160ms ease-out both; }
@keyframes promoIn { from { transform: translate(-50%, -48%) scale(0.96); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
.promo-modal__close {
  position: absolute; right: 10px; top: 10px;
  border: none; background: transparent; font-size: 20px; cursor: pointer;
}
.promo-modal__cta {
  margin-top: 12px;
  background: #0099ff; color: #fff; border: none;
  padding: 10px 14px; border-radius: 8px; cursor: pointer;
}

@media (max-width: 600px) {
  .promo-bird { right: 12px; top: auto; bottom: 84px; }
  .promo-bird img { width: 150px; }
  .promo-modal__content { width: 92vw; padding: 18px; border-radius: 14px; }
  .promo-modal__close { font-size: 22px; }
}

/* eliminado contenedor inline para no afectar el flujo */

/* ==== RESPONSIVE ==== */
@media (max-width: 600px) {
  .main-header h1 {
    font-size: 0.6rem;
    margin-top:10px; /* ≈ 9.6px */

  
  }

  .main-header p {
    font-size: 1rem;
  }



  .logo2 {
    width: 90px;
    height: 40px;
    margin-left: -30px;
  }

  .slider {
    margin-top: 80px;
  }

}

/* ICONOS */
.iconos {
    position: absolute;
    top: 20px;
    right: 10px; /* Antes era left */
    display: flex;
    flex-direction: row;
    gap: 15px;
}

/* Contenedor individual */
.iconos a {
    position: relative;
    display: flex;
    align-items: center;
    width: 60px; /* ancho inicial más grande */
    height: 60px; /* alto más grande */
    background-color: #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    transition: width 0.7s ease;
    padding-left: 5px; /* espacio para el ícono */
}

/* Imagen del ícono */
.iconos img {
    width: 32px; /* ícono más grande */
    height: 32px;
    margin-left: 8px; /* mantiene desplazamiento hacia la derecha */
    transition: transform 0.3s ease;
}


/* Texto del ícono (oculto inicialmente) */
.iconos span {
    position: absolute;
    left: 50px;
    opacity: 0;
    white-space: nowrap;
    color: black;
    font-size: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
}

/* Hover: expansión y animación */
.iconos a:hover {
    width: 240px;
 
}

.iconos a:hover span {
    opacity: 1;
    transform: translateX(0);
}

.iconos a:hover img {
    transform: scale(1.1);
}
@media (max-width: 600px) {
  .iconos {
    top: 10px;
    right: 5px;
    gap: 8px;
  }

  .iconos a {
    width: 34px;
    height: 34px;
    border-radius: 50%; /* Más redondeado */
    padding: 0;
  }

  .iconos img {
    width: 18px;
    height: 18px;
    margin-left: 8px;
  }

  .iconos span {
    display: none; /* Oculta el texto en móvil */
  }

  .iconos a:hover {
    width: 34px; /* No expandirse en móvil */

  }
}



/* Contenedor externo que permite scroll horizontal */
.catalogo-container {
    width: 100%;        /* O el ancho que quieras */
    overflow-x: auto;   /* Scroll horizontal si el contenido desborda */
    -webkit-overflow-scrolling: touch; /* Mejor scroll en móviles */
    border: 1px solid #ccc; /* Opcional, para visualizar */
    padding: 0.5rem 0;    /* Opcional, para separar un poco */
}

/* Catalogo usa flex row para filas horizontales */
.catalogo {
    display: flex;
    flex-direction: row;
    gap: 0.5rem; /* Espacio entre tarjetas */
    padding: 0 1rem;
    /* No uses grid-template-columns si usas flex */
}

/* Responsive para móviles: apilar vertical */
@media (max-width: 576px) {
    .catalogo {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0;
    }
}


.tarjeta {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 240px;
    height: 280px; /* Altura fija */
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tarjeta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tarjeta img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0; /* Para que la imagen no se reduzca */
}

/* Si tienes texto o contenido, asegúrate que no aumente la tarjeta */

.tarjeta .contenido {
    padding: 10px;
    flex-grow: 1; /* Para que el contenido ocupe el resto */
    overflow: hidden; /* Evita que el texto expanda la tarjeta */
    text-overflow: ellipsis; /* Opcional: añade "..." si el texto es muy largo */
}



.info {
    padding: 1rem;
}

.info h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #0078ff; /* Azul para títulos */
}

.info p {
    font-size: 0.9rem;
    color: #555; /* Texto más oscuro */
}

.info span {
    display: block;
    margin-top: 0.5rem;
    font-weight: bold;
}

/* Botón WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* Azul principal */
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.whatsapp-btn img {
    width: 24px;
    height: 24px;
}

.whatsapp-btn:hover {
    background-color: #045f1b; /* Azul más oscuro al pasar el mouse */
}
/* Estilos para el contenedor de pestañas */
/* Estilos para el contenedor de pestañas */
.tab-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 5px 5px;
  background-color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.tab {
  text-decoration: none;
  color: #333;
  background: #f2f2f2;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  transition: background 0.3s ease, color 0.3s ease;
}

.tab:hover {
  background: #e0e0e0;
  color: #007BFF;
}

/* Responsivo */
@media (max-width: 600px) {
  .tab-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .tab {
    width: 100%;
    text-align: center;
  }
}



/* Testimonios */
.testimonial-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  padding: 15px;
  z-index: 9999;
}

.testimonial {
  display: none;
}

.testimonial.active {
  display: block;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 70%;
  float: left;
  margin-right: 10px;
  object-fit: cover;
  border: 2px solid #004aad;
}

.comment {
  font-style: italic;
  font-size: 0.95em;
  margin: 0;
}

.testimonial h4 {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #004aad;
  clear: both;
}
.comment-btn {
  margin-top: 10px;
  background: #004aad;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

.comment-btn:hover {
  background: #002c80;
}

.comment-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-inner {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-inner input,
.modal-inner textarea {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 0.9em;
}

.modal-inner button {
  padding: 8px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-inner button:first-of-type {
  background: #00c853;
  color: white;
}

.modal-inner button:last-of-type {
  background: #e53935;
  color: white;
}
.upload-label {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.upload-label:hover {
  background-color: #2980b9;
}
.close-comments {
  position: absolute;
  top: 5px;
  right: 10px;
  background: transparent;
  border: none;
  color: rgb(12, 1, 1);
  font-size: 20px;
  cursor: pointer;
  z-index: 1001;
}
@media (max-width: 480px) {
  .testimonial-container {
    width: 220px;
    left: 10px;
    bottom: 10px;
    padding: 10px;
    border-radius: 10px;
  }

  .avatar {
    width: 50px;
    height: 50px;
    margin-right: 8px;
  }

  .comment {
    font-size: 0.75em;
  }

  .testimonial h4 {
    font-size: 0.75em;
  }

  .comment-btn {
    font-size: 0.75em;
    padding: 5px 8px;
  }

  .modal-inner {
    width: 85%;
    padding: 15px;
  }
}


/* Estilos base (como los tuyos) */
.dropdown {
  position: relative;
  display: inline-block;
  vertical-align: middle;
 
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  right: 0;
  border-radius: 8px;
  overflow: hidden;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(20%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

/* === Responsivo para móviles === */
@media (max-width: 600px) {
  .dropdown {
    display: block; /* Ocupa todo el ancho disponible */
    width: 100%;
    top: 0;
    margin-bottom: 10px;
  }

  .dropdown-content {
    position: static; /* Para que el contenido se inserte en el flujo normal */
    box-shadow: none;
    border-radius: 0;
    min-width: 100%;
    max-height: 200px; /* Limita alto para scroll */
    overflow-y: auto;
    display: none; /* Se controla con una clase JS o :focus, porque hover no es confiable en móvil */
  }

  /* Mostrar contenido al hacer foco en dropdown (por ejemplo, con tab o click) */
  .dropdown:focus-within .dropdown-content,
  .dropdown.open .dropdown-content {
    display: block;
  }

  /* Ajustar enlaces */
  .dropdown-content a {
    padding: 14px 20px;
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .dropdown-content {
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }
}
