/* css/styles.css */
/* Estilos adicionales para Fonoamérica - Soluciones Telemáticas */

/* Menú móvil - estilos */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: white;
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-link {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
  color: #1f2937;
  font-weight: 500;
  transition: background 0.2s ease;
}

.mobile-menu-link:hover {
  background: #f3f4f6;
  color: #2563eb;
}

/* ========== CARRUSEL ========== */
.carrusel-container {
  width: 100%;
  background: #0a0a2a;
}

.carrusel-container .carrusel-relative {
  position: relative;
  width: 100%;
}

.carrusel-container .carrusel-image {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Texto superpuesto - CENTRADO */
.carrusel-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
  text-align: center;
  padding: 40px 60px;
}

/* ========== TÍTULO - CON EFECTOS ELEGANTES ========== */
.carrusel-text-overlay h2 {
  font-size: 4.5rem !important;
  line-height: 1.2 !important;
  margin-bottom: 1rem !important;
  font-weight: 800 !important;
  max-width: 80%;
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  display: inline-block;
  cursor: default;
}

/* Efecto hover para el título - Zoom elegante */
.carrusel-text-overlay h2:hover {
  transform: scale(1.05);
  text-shadow: 0 0 25px rgba(255,255,255,0.6), 0 0 10px rgba(255,255,255,0.3), 2px 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Efecto de subrayado elegante al hover */
.carrusel-text-overlay h2::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #3b82f6, #22c55e);
  margin-top: 8px;
  transition: width 0.5s ease;
  border-radius: 3px;
}

.carrusel-text-overlay h2:hover::after {
  width: 100%;
}

/* ========== SUBTÍTULO - CON EFECTOS ELEGANTES ========== */
.carrusel-text-overlay p:first-of-type {
  font-size: 2rem !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  max-width: 80%;
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
  opacity: 0;
  transition: all 0.3s ease;
  cursor: default;
}

/* Efecto hover para el subtítulo */
.carrusel-text-overlay p:first-of-type:hover {
  transform: scale(1.02);
  text-shadow: 0 0 15px rgba(255,255,255,0.4), 1px 1px 4px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

/* Descripción - CON ANIMACIÓN */
#carouselDescripcion {
  font-size: 1.25rem !important;
  margin-bottom: 1rem !important;
  color: white;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

/* Texto extra - CON ANIMACIÓN */
#carouselExtra {
  font-size: 1.25rem !important;
  margin-top: 1rem !important;
  color: white;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

/* ========== LISTA (VIÑETAS) - CENTRADA CON EFECTOS ========== */
#carouselLista {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

#carouselLista ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 12px;
  max-width: 1000px;
  width: 100%;
}

#carouselLista li {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  cursor: default;
}

/* Efecto hover para las viñetas */
#carouselLista li:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-3px) scale(1.02);
  border-color: #22c55e;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Dots (indicadores) */
.dot {
  transition: all 0.2s ease;
}

.dot:hover {
  opacity: 0.8 !important;
  transform: scale(1.2);
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== AGRANDAR IMAGEN EN DESKTOP ========== */
@media (min-width: 1025px) {
  .carrusel-container {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .carrusel-image {
    transform: scale(1.90);
    transition: transform 0.3s ease;
  }
  
  .carrusel-container .carrusel-relative {
    height: 100vh !important;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .carrusel-container .carrusel-relative {
    height: 550px !important;
  }
  .carrusel-container .carrusel-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  
  .carrusel-text-overlay h2 {
    font-size: 2.8rem !important;
    max-width: 90% !important;
  }
  
  .carrusel-text-overlay p:first-of-type {
    font-size: 1.6rem !important;
    max-width: 90% !important;
  }
  
  #carouselLista li {
    font-size: 0.85rem;
    padding: 6px 14px;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .carrusel-container .carrusel-relative {
    height: auto !important;
  }
  .carrusel-container .carrusel-image {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .carrusel-text-overlay {
    padding: 20px 20px !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .carrusel-text-overlay h2 {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  
  /* Deshabilitar efectos hover en móvil */
  .carrusel-text-overlay h2:hover {
    transform: none;
  }
  
  .carrusel-text-overlay h2::after {
    display: none;
  }
  
  .carrusel-text-overlay p:first-of-type {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  
  .carrusel-text-overlay p:first-of-type:hover {
    transform: none;
  }
  
  #carouselDescripcion {
    font-size: 0.7rem !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
  }
  
  #carouselExtra {
    font-size: 0.7rem !important;
    margin-top: 0.5rem !important;
    text-align: center !important;
  }
  
  #carouselLista {
    display: none !important;
  }
}

/* ========== LOGO EL DOBLE DE GRANDE EN DESKTOP ========== */
@media (min-width: 1025px) {
  .absolute.bottom-4.right-4 img {
    height: 160px !important;
    width: auto !important;
  }
}

/* ========== TRANSICIONES GLOBALES ========== */
* {
  transition: all 0.2s ease;
}

/* ========== GRADIENTES PERSONALIZADOS ========== */
.bg-gradient-custom {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

/* ========== EFECTO DE BRILLO EN BOTONES ========== */
.btn-glow:hover {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* ========== SCROLL SUAVE ========== */
html {
  scroll-behavior: smooth;
}

/* ========== PERSONALIZACIÓN DE SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e3a8a;
}

/* ========== MEJORAS PARA EL MODAL ========== */
.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ========== ANIMACIONES ADICIONALES ========== */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-scale {
  animation: fadeInScale 0.3s ease-out;
}

/* ========== UTILIDADES RESPONSIVE ========== */
@media (max-width: 768px) {
  .scroll-mt-16 {
    scroll-margin-top: 60px;
  }
}

/* Navbar más grande */
.sticky-top {
  padding: 0.5rem 0;
}

.sticky-top .h-16 {
  height: 80px;
}

.sticky-top .logo-img {
  max-height: 55px;
}

.sticky-top .space-x-8 {
  gap: 2.5rem;
}

.sticky-top .font-medium {
  font-size: 1.05rem;
}

.sticky-top .px-4 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.sticky-top .py-2 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

/* Ajustes para móvil */
@media (max-width: 768px) {
  .whatsapp-float img {
    width: 50px;
    height: 50px;
  }
  .whatsapp-float {
    bottom: 70px;
  }
}