/* ===== Global ===== */
body, html {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Segoe UI', sans-serif !important;
  color: #050505 !important;
  /* Nuevo fondo */
  background-color: #90adf0 !important;
  background-image: url("img/fondo.png") !important;
  background-repeat: repeat !important;
  background-attachment: fixed !important;
}

/* ===== Boton de contacto===== */
.btn-rainbow {
  position: relative !important;
  z-index: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 2px !important; /* este es el borde del arcoíris */
  border-radius: 9999px !important; /* completamente redondo */
  background-color: rgba(9, 87, 233, 0.938) !important; /* fondo semitransparente */
  transition: transform 0.3s ease !important;
  text-decoration: none !important;
}

.btn-rainbow:hover {
  transform: scale(1.05) !important;
}

.btn-rainbow:active {
  transform: scale(1) !important;
}

.btn-rainbow span {
  display: inline-block !important;
  padding: 0.75rem 2rem !important; /* py-3 px-8 */
  border-radius: 9999px !important;
  background-color: rgba(17, 24, 39, 0.8) !important; /* gris oscuro con transparencia */
  backdrop-filter: blur(4px) !important;
  color: white !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important; /* text-sm */
  line-height: 1.25rem !important;
  transition: background-color 0.2s !important;
  width: 100% !important;
  text-align: center !important;
}

.btn-rainbow::before {
  content: '' !important;
  position: absolute !important;
  z-index: -2 !important;
  left: -50% !important;
  top: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background-repeat: no-repeat !important;
  background-size: 50% 30% !important;
  background-position: 100% 50% !important;
  background-image: conic-gradient(
    from 0deg at 50% 50%,
    #ff0000,
    #ff8000,
    #ffff00,
    #80ff00,
    #00ff00,
    #00ff80,
    #00ffff,
    #0080ff,
    #0000ff,
    #8000ff,
    #ff00ff,
    #ff0080,
    #ff0000
  ) !important; /* efecto arcoíris */
  filter: blur(6px) !important;
  animation: rotate 4s linear infinite !important;
}

@keyframes rotate {
  100% {
    transform: rotate(1turn);
  }
}

/* ===== ESTILO VIDRIO (GLASSMORPHISM) ===== */
.glass-section {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
  margin: 3rem 0 !important;
  padding: 4rem 0 !important;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease !important;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: #4a90e2 !important;
  transform: translateY(-6px) !important;
  box-shadow: 0 15px 35px rgba(74, 144, 226, 0.2) !important;
}

.glass-chip {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #333 !important;
  padding: 0.8rem 2rem !important;
  border-radius: 50px !important;
  font-weight: 500 !important;
  transition: all 0.3s !important;
}

.glass-chip:hover {
  background: white !important;
  border-color: #4a90e2 !important;
  color: #005baa !important;
  transform: scale(1.05) !important;
}

/* ===== SECCIÓN SERVICIOS (base) ===== */
.servicios-section .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 0.5rem !important;
}

.section-title {
  font-size: 2.5rem !important;
  color: hsl(236, 95%, 62%) !important;
  text-align: center !important;
  margin-bottom: 1.5rem !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
  position: relative !important;
}

.section-title::after {
  content: '' !important;
  display: block !important;
  width: 80px !important;
  height: 4px !important;
  background: #4a90e2 !important;
  margin: 1rem auto 0 !important;
  border-radius: 2px !important;
}

.section-description {
  text-align: center !important;
  max-width: 800px !important;
  margin: 0 auto 3rem !important;
  color: #00070e !important;
  line-height: 1.8 !important;
  font-size: 1.1rem !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.servicios-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem !important;
  margin-bottom: 3rem !important;
}

.servicio-item {
  padding: 2rem !important;
  border-radius: 16px !important;
}

.servicio-item h3 {
  color: #005baa !important;
  margin-bottom: 0.8rem !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
}

.servicio-item p {
  color: #333 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.servicios-extra {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 1.5rem !important;
  margin-top: 2rem !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .servicios-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .section-description {
    font-size: 1rem !important;
    padding: 0 1rem !important;
  }

  .servicios-extra {
    gap: 1rem !important;
  }

  .glass-chip {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 480px) {
  .servicio-item {
    padding: 1.5rem !important;
  }

  .servicio-item h3 {
    font-size: 1.2rem !important;
  }
}

/* Botón grande de WhatsApp */
.whatsapp-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 2rem 0 !important;
}

.btn-whatsapp-largo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 15px !important;
  background: #25D366 !important;
  color: white !important;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  padding: 18px 70px !important;  /* Horizontal largo */
  border-radius: 60px !important;
  text-decoration: none !important;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4) !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
  width: fit-content !important;
  max-width: 100% !important;
  cursor: pointer !important;
}

.btn-whatsapp-largo:hover {
  background: #20B859 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6) !important;
  border-color: rgba(255,255,255,0.3) !important;
}

.btn-whatsapp-largo:active {
  transform: scale(0.98) !important;
}

.btn-icon svg {
  width: 45px !important;
  height: 45px !important;
  fill: currentColor !important;
}

.btn-text {
  line-height: 1.2 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .btn-whatsapp-largo {
    font-size: 1.3rem !important;
    padding: 15px 50px !important;
    gap: 12px !important;
  }
  .btn-icon svg {
    width: 35px !important;
    height: 35px !important;
  }
}

@media (max-width: 480px) {
  .btn-whatsapp-largo {
    font-size: 1.2rem !important;
    padding: 12px 30px !important;
    gap: 10px !important;
    width: 90% !important; /* En móviles muy pequeños ocupa casi todo el ancho */
  }
  .btn-icon svg {
    width: 30px !important;
    height: 30px !important;
  }
}

 
/* RESET BÁSICO */
* {
  box-sizing: border-box !important;
  font-family: Arial, sans-serif !important;
}

/* ===== BOTÓN FLOTANTE CON SVG ===== */
.asistente-flotante {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    background: #4a90e2 !important; /* Azul sólido */
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: pulse-asistente 2s infinite !important;
    padding: 0 !important;
    outline: none !important;
}

.asistente-flotante svg {
    fill: white !important;
    width: 36px !important;
    height: 36px !important;
}

.asistente-flotante:hover {
    transform: scale(1.1) translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.7) !important;
    animation: none !important;
}

.asistente-flotante .chat-tooltip {
    position: absolute !important;
    right: 75px !important;
    background: #333 !important;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    pointer-events: none !important;
}

.asistente-flotante .chat-tooltip::after {
    content: '' !important;
    position: absolute !important;
    right: -5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-width: 5px 0 5px 5px !important;
    border-style: solid !important;
    border-color: transparent transparent transparent #333 !important;
}

.asistente-flotante:hover .chat-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    right: 85px !important;
}

@keyframes pulse-asistente {
    0% { box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(74, 144, 226, 0.9); }
    100% { box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4); }
}

/* ===== WIDGET DE CHAT (corregido y con colores integrados) ===== */
.chatbox {
    position: fixed !important;
    bottom: 60px !important;
    right: 30px !important;
    width: 380px !important;
    max-width: 95vw !important;
    background: white !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25) !important;
    overflow: hidden !important;
    display: none !important;
    flex-direction: column !important;
    z-index: 1001 !important;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif !important;
    border: 1px solid rgba(74,144,226,0.3) !important;
}

.chatbox.open {
    display: flex !important;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background: #4a90e2 !important;
    color: white !important;
    padding: 18px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    cursor: grab !important;
    user-select: none !important;
}

.chat-header:active {
    cursor: grabbing !important;
}

.chat-close {
    cursor: pointer !important;
    font-size: 24px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.25) !important;
    transition: all 0.2s !important;
    color: white !important;
    font-weight: bold !important;
}

.chat-close:hover {
    background: rgba(255,255,255,0.4) !important;
    transform: rotate(90deg) !important;
}

.chat-body {
    height: 380px !important;
    overflow-y: auto !important;
    padding: 20px !important;
    background: #f0f4f8 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    scroll-behavior: smooth !important;
}

/* Mensajes */
.msg {
    max-width: 80% !important;
    padding: 12px 16px !important;
    border-radius: 18px !important;
    line-height: 1.5 !important;
    font-size: 0.95rem !important;
    word-wrap: break-word !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    animation: fadeIn 0.3s ease !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg.bot {
    background: #ffffff !important;
    color: #000000 !important;
    align-self: flex-start !important;
    border-bottom-left-radius: 4px !important;
    border: 1px solid #ddd !important;
}

.msg.user {
    background: #4a90e2 !important;
    color: white !important;
    align-self: flex-end !important;
    border-bottom-right-radius: 4px !important;
}

/* Área de entrada */
.chat-input-area {
    background: white !important;
    border-top: 1px solid #ddd !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.chat-input-area input[type="text"],
.chat-input-area input[type="tel"],
.chat-input-area input[type="date"] {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid #eaeef2 !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
    color: #000 !important;
}

.chat-input-area input:focus {
    border-color: #4a90e2 !important;
    box-shadow: 0 0 0 4px rgba(74,144,226,0.1) !important;
}

/* Botones de opciones */
.opciones-botones {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
}

.opcion-btn {
    background: white !important;
    border: 2px solid #4a90e2 !important;
    color: #4a90e2 !important;
    padding: 10px 20px !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    flex: 1 0 auto !important;
    min-width: 120px !important;
}

.opcion-btn:hover {
    background: #4a90e2 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(74,144,226,0.2) !important;
}

/* Botón de enviar */
.btn-enviar {
    background: #4a90e2 !important;
    color: white !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    width: 100% !important;
}

.btn-enviar:hover {
    background: #357abd !important;
    transform: scale(1.02) !important;
    box-shadow: 0 6px 14px rgba(74,144,226,0.4) !important;
}

/* Opciones de contacto al final */
.opciones-contacto {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

.btn-contacto {
    background: white !important;
    border: 2px solid #4a90e2 !important;
    color: #4a90e2 !important;
    padding: 12px !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
}

.btn-contacto:hover {
    background: #4a90e2 !important;
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .asistente-flotante {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
    }
    .asistente-flotante svg {
        width: 30px !important;
        height: 30px !important;
    }
    .asistente-flotante .chat-tooltip {
        display: none !important;
    }
    .chatbox {
        bottom: 90px !important;
        right: 20px !important;
        width: 350px !important;
    }
    .chat-body {
        height: 350px !important;
    }
}

@media (max-width: 480px) {
    .chatbox {
        width: calc(100% - 40px) !important;
        left: 20px !important;
        right: 20px !important;
        bottom: 90px !important;
    }
}


body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.5;
}

/* ===== HEADER ===== */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 50px;
}

/* ===== NAV DESKTOP ===== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 70px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: #005baa;
  border-bottom-color: #005baa;
  background: transparent;
}

/* ===== SUBMENÚ DESKTOP ===== */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 2px solid #005baa;
  border-radius: 0 0 8px 8px;
  padding: 8px 0;
  min-width: 280px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: #444;
  font-size: 13.5px;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: normal;
}

.sub-menu li a:hover {
  background: #f0f7ff;
  color: #005baa;
  border-left-color: #005baa;
}

/* Flecha */
.arrow {
  font-size: 0.65rem;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.25s;
}

.menu-item-has-children:hover .arrow {
  transform: rotate(180deg);
}

/* ===== HAMBURGUESA ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: #005baa;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: block;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.07);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.3s ease;
  }

  .nav.open {
    max-height: 600px;
    opacity: 1;
    pointer-events: all;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .nav-links li {
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links > li > a {
    height: auto;
    padding: 14px 24px;
    justify-content: space-between;
    border-bottom: none;
  }

  .nav-links > li > a:hover,
  .nav-links > li > a.active {
    background: #f5faff;
    border-bottom: none;
  }

  .sub-menu {
    position: static !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #f8f9fb !important;
    padding: 0 !important;
    min-width: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease !important;
  }

  .menu-item-has-children.submenu-open .sub-menu {
    max-height: 500px;
  }

  .menu-item-has-children.submenu-open .arrow {
    transform: rotate(180deg);
  }

  .sub-menu li a {
    padding: 11px 24px 11px 38px !important;
    border-left: none !important;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #555;
  }

  .sub-menu li a:hover {
    background: #e0f0ff !important;
    color: #005baa !important;
    border-left: none !important;
  }
}

/* === HERO CON GALERÍA DE VIDEOS === */
.video-gallery-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.video-gallery-container {
    position: relative;
    width: 110%;
    height: 100%;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 1;
}

.video-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.gallery-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay y contenido (se mantienen igual, pero ajusta z-index) */
.video-gallery-hero .overlay {
    z-index: 3;
    background: rgb(0, 0, 0); /* Ajusta opacidad */
}

.video-gallery-hero .video-content {
    z-index: 4;
}
/* Contenedor principal del carrusel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides con los videos */
.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Cada video */
.carousel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Video activo */
.carousel-video.active {
    opacity: 1;
    z-index: 2;
}

/* Overlay (capa semitransparente) */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(70, 69, 69); /* Ajusta opacidad según prefieras */
    z-index: 3;
}

/* Contenido de texto y botón */
.video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 900px;
    padding: 0 1rem;
}

/* Asegurar que el texto sea legible */
.video-content h1 {
    font-size: clamp(4rem, 5.5vw, 10rem); /* Tamaño fluido más grande */
    color: #f5f5f8; /* Azul vibrante, cámbialo si prefieres otro tono */
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8); /* Sombra más fuerte para destacar */
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; /* Inicia invisible para la animación */
    margin-bottom: 0.5rem; /* Espacio inferior opcional */
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; /* Extra bold para el título */
}

/* Animación de entrada para el título */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Opcional: animación para el párrafo con retraso */
.video-content p {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 650;
    color: #fdfdfd;
    font-size: clamp(1rem, 1.8vw, 2rem);
}

/* Ajustes responsivos para el título */
@media (max-width: 768px) {
    .video-content h1 {
        font-size: clamp(2.2rem, 7vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    .video-content h1 {
        font-size: 2.2rem; /* Tamaño fijo en móviles pequeños */
    }
}


/* Indicadores (puntos) */
.gallery-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .gallery-nav.prev {
        left: 10px;
    }
    
    .gallery-nav.next {
        right: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* === 5. SECCIÓN DE PORTAFOLIO === */
.portfolio-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    padding: 4rem 1rem;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #1a2b3c;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #000000;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

/* Galería (si la tienes) */
.gallery {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 400px;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    flex-grow: 1;
    width: 14rem;
    height: 100%;
    transition: all 0.5s;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    width: 100%;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 0.75rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.overlay-description {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 90%;
}

/* ===== Procedimiento Conciliatorio ===== */
.procedimiento-conciliatorio {
  max-width: 900px !important;
  margin: 2rem auto !important;
  background: #f5fbff !important;
  padding: 1.5rem !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.titulo-principal {
  text-align: center !important;
  color: #1976d2 !important;
  margin-bottom: 1.5rem !important;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
}

/* Cada ítem (cada <details>) */
.procedimiento-conciliatorio .item {
  background: #e3f2fd !important;
  border-left: 4px solid #1976d2 !important;
  margin-bottom: 0.8rem !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  transition: background 0.3s, box-shadow 0.3s !important;
}
.procedimiento-conciliatorio .item:hover {
  box-shadow: 0 2px 12px rgba(25,118,210,0.2) !important;
}

/* El encabezado (summary) */
.procedimiento-conciliatorio .item summary {
  position: relative !important;
  padding: 0.8rem 1rem 0.8rem 2.8rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #0d47a1 !important;
  cursor: pointer !important;
  user-select: none !important;
  list-style: none !important; /* oculta marcador por defecto */
}

/* Ocultamos el marcador por defecto */
.procedimiento-conciliatorio .item summary::-webkit-details-marker {
  display: none !important;
}

/* Icono “+” / “–” */
.procedimiento-conciliatorio .item summary::before {
  content: "+" !important;
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1.2rem !important;
  color: #1976d2 !important;
  transition: transform 0.2s !important;
}

/* Cuando está abierto, cambiamos fondo y el signo */
.procedimiento-conciliatorio .item[open] {
  background: #bbdefb !important;
}
.procedimiento-conciliatorio .item[open] summary::before {
  content: "–" !important;
}

/* El contenido desplegable */
.procedimiento-conciliatorio .item p {
  margin: 0 !important;
  padding: 0.75rem 1rem 1rem 2.8rem !important;
  background: #fff !important;
  border-top: 1px solid #cce0f5 !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: #333 !important;
}

/* Responsive */
@media (max-width: 600px) {
  .procedimiento-conciliatorio {
    padding: 1rem !important;
  }
  .procedimiento-conciliatorio .item summary,
  .procedimiento-conciliatorio .item p {
    padding-left: 2.4rem !important;
  }
}

/* ================================================================
   FOOTER — Cultura Legal
   ================================================================ */

/* ── Variables ── */
:root {
  --fl-bg:          #141416;
  --fl-bg-top:      #1c1c1f;
  --fl-accent:      #4a8fd4;
  --fl-accent-dim:  #2f6aa8;
  --fl-text:        #d4d4d8;
  --fl-muted:       #71717a;
  --fl-border:      rgba(255,255,255,0.07);
  --fl-link-hover:  #ffffff;
}

/* ── Base ── */
.cl-footer {
  background: var(--fl-bg-top);
  color: var(--fl-text);
  font-family: 'Segoe UI', Arial, sans-serif;
}

.cl-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Sección superior ── */
.cl-footer__top {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--fl-border);
}

.cl-footer__top .cl-footer__container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

/* ── Columna brand ── */
.cl-footer__brand {}

.cl-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.cl-footer__logo img {
  height: 44px;
  width: auto;
  border-radius: 6px;
}

.cl-footer__logo span {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.cl-footer__desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--fl-muted);
  margin: 0 0 1.5rem;
  max-width: 320px;
}

/* ── Redes sociales ── */
.cl-footer__social {
  display: flex;
  gap: 0.6rem;
}

.cl-footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--fl-border);
  color: var(--fl-muted);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
  flex-shrink: 0;
}

.cl-footer__social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.cl-footer__social-icon:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.cl-footer__social-icon:nth-child(1):hover { background: #1877f2; border-color: #1877f2; }
.cl-footer__social-icon:nth-child(2):hover { background: #111; border-color: #555; }
.cl-footer__social-icon:nth-child(3):hover { background: #c13584; border-color: #c13584; }
.cl-footer__social-icon:nth-child(4):hover { background: #25d366; border-color: #25d366; }

/* ── Columnas de links ── */
.cl-footer__col {}

.cl-footer__col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fl-accent);
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--fl-border);
}

.cl-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cl-footer__links a {
  font-size: 0.9rem;
  color: var(--fl-muted);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.cl-footer__links a:hover {
  color: var(--fl-link-hover);
  padding-left: 4px;
}

/* ── Lista de contacto ── */
.cl-footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cl-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.cl-footer__contact-list svg {
  width: 17px;
  height: 17px;
  stroke: var(--fl-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.cl-footer__contact-list span,
.cl-footer__contact-list a {
  font-size: 0.875rem;
  color: var(--fl-muted);
  text-decoration: none;
  line-height: 1.55;
  transition: color 0.2s;
}

.cl-footer__contact-list a:hover {
  color: var(--fl-link-hover);
}

/* ── Barra inferior ── */
.cl-footer__bottom {
  background: var(--fl-bg);
  padding: 1.25rem 0;
}

.cl-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cl-footer__copyright {
  font-size: 0.82rem;
  color: var(--fl-muted);
  margin: 0;
}

.cl-footer__legal-links {
  display: flex;
  gap: 0;
}

.cl-footer__legal-links a {
  font-size: 0.82rem;
  color: var(--fl-muted);
  text-decoration: none;
  padding: 0 1rem;
  border-right: 1px solid var(--fl-border);
  transition: color 0.2s;
  white-space: nowrap;
}

.cl-footer__legal-links a:last-child {
  border-right: none;
  padding-right: 0;
}

.cl-footer__legal-links a:first-child {
  padding-left: 0;
}

.cl-footer__legal-links a:hover {
  color: var(--fl-link-hover);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── Tablet (≤ 1024px) — 3 columnas ── */
@media (max-width: 1024px) {
  .cl-footer__top .cl-footer__container {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cl-footer__brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 1.5rem;
  }

  .cl-footer__desc {
    max-width: 100%;
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .cl-footer__social {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    justify-content: flex-end;
  }
}

/* ── Tablet pequeña (≤ 768px) — 2 columnas ── */
@media (max-width: 768px) {
  .cl-footer__top {
    padding: 3rem 0 2.5rem;
  }

  .cl-footer__container {
    padding: 0 1.25rem;
  }

  .cl-footer__top .cl-footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .cl-footer__brand {
    grid-column: 1 / -1;
    display: block;
  }

  .cl-footer__desc {
    max-width: 100%;
  }

  .cl-footer__social {
    margin-top: 1.25rem;
    justify-content: flex-start;
  }

  .cl-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cl-footer__legal-links {
    flex-wrap: wrap;
    gap: 0.25rem 0;
  }

  .cl-footer__legal-links a {
    padding: 0.15rem 0.75rem;
  }

  .cl-footer__legal-links a:first-child {
    padding-left: 0;
  }
}

/* ── Móvil (≤ 480px) — 1 columna ── */
@media (max-width: 480px) {
  .cl-footer__top {
    padding: 2.5rem 0 2rem;
  }

  .cl-footer__top .cl-footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cl-footer__logo span {
    font-size: 1rem;
  }

  .cl-footer__desc {
    font-size: 0.875rem;
  }

  .cl-footer__legal-links {
    flex-direction: column;
    gap: 0.4rem;
  }

  .cl-footer__legal-links a {
    border-right: none;
    padding: 0;
  }

  .cl-footer__bottom-inner {
    gap: 1rem;
  }
}
/* ===== SECCIÓN DE EQUIPO ===== */
.team-section {
    width: 100% !important;
    padding: 5rem 1rem !important;
    background-color: #f8fafc !important; /* Fondo muy suave, igual que el de tu sección de portafolio */
}

.team-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    text-align: center!important;
}

.team-title {
    font-size: 2.5rem !important;
    font-weight: 700;
    color: #1a2b3c; /* Mismo color de títulos de otras secciones */
    margin-bottom: 1rem;
}

.team-description {
    font-size: 1.1rem !important;
    color: #334155  !important;
    max-width: 800px !important;
    margin: 0 auto 3rem auto !important;
    line-height: 1.6 !important;
}

/* Grid responsive */
.team-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 2.5rem !important;
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Tarjeta de cada miembro */
.team-member {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    padding: 1.5rem 1rem !important;
    border-radius: 1rem !important;
    background-color: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.team-member:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 89, 170, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Imagen del miembro */
.member-image {
    width: 180px !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 50% !important; /* Círculo – puedes cambiarlo a 1rem si prefieres bordes cuadrados */
    border: 4px solid #e0f0ff !important; /* Borde suave con el color de hover del menú */
    margin-bottom: 1rem !important;
}

/* Nombre */
.member-name {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 0.25rem !important;
}

/* Cargo */
.member-role {
    font-size: 0.95rem !important;
    color: #005baa !important; /* Tu color corporativo */
    font-weight: 500 !important;
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .member-image {
        width: 140px !important;
        height: 140px !important;
    }
    
    .member-name {
        font-size: 1.1rem !important;
    }
    
    .member-role {
        font-size: 0.85rem !important;
    }
}
/* ===== BANNER DE COOKIES FLOTANTE ===== */
.cookie-banner.floating {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important; /* Cambia a left: 20px si quieres izquierda */
    width: 320px !important;
    max-width: 90vw !important;
    background-color: #ffffff !important;
    color: #6b7280 !important;
    text-align: center !important;
    padding: 1.5rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
    font-size: 0.875rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    z-index: 9999 !important;
    display: none !important; /* Oculto por defecto */
    box-sizing: border-box !important;
}

.cookie-image {
    width: 3.5rem !important;
    height: 3.5rem !important;
    margin: 0 auto 0.5rem !important;
}

.cookie-title {
    color: #1f2937 !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    padding-bottom: 0.75rem !important;
    margin-top: 0.5rem !important;
}

.cookie-text {
    width: 100% !important;
    margin: 0 auto !important;
    line-height: 1.5 !important;
}

.cookie-text a {
    font-weight: 500 !important;
    text-decoration: underline !important;
    color: inherit !important;
}

.cookie-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 1.5rem !important;
    gap: 1rem !important;
    width: 100% !important;
}

.cookie-btn {
    font-weight: 500 !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 0.25rem !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    border: none !important;
    font-size: 0.875rem !important;
    flex: 1 !important;
}

.cookie-btn-decline {
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
    background: transparent !important;
    color: inherit !important;
}

.cookie-btn-decline:hover {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.cookie-btn-accept {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
}

.cookie-btn-accept:hover {
    background-color: #4338ca !important;
}

.cookie-btn:active {
    transform: scale(0.95) !important;
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .cookie-banner.floating {
        bottom: 10px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: none !important;
    }
    
    .cookie-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .cookie-btn {
        width: 100% !important;
    }
}
/* Contenedor principal */
.featured-section {
    padding: 5rem 1rem !important;
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%) !important;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Encabezado */
.section-header {
    text-align: center !important;
    margin-bottom: 4rem !important;
}

.section-header h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 1rem !important;
}

.section-header h2 span {
    color: #4f46e5 !important;
    position: relative !important;
    display: inline-block !important;
}

.section-header h2 span::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: #4f46e5 !important;
    border-radius: 2px !important;
    opacity: 0.4 !important;
}

.section-header p {
    font-size: 1.125rem !important;
    color: #475569 !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

/* Grid de tarjetas */
.services-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2rem !important;
    margin-bottom: 3rem !important;
}

/* Tarjeta de servicio (estilo glass) */
.service-card {
    flex: 1 1 300px !important;
    max-width: 350px !important;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px !important;
    padding: 2rem 1.5rem !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
}

.service-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 30px 50px -15px #4f46e5 !important;
    border-color: #4f46e5 !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Icono de la tarjeta */
.card-icon {
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #ffffff, #eef2ff) !important;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2) !important;
    transition: transform 0.3s ease !important;
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg) !important;
}

.card-icon svg {
    width: 50px !important;
    height: 50px !important;
    fill: none !important;
    stroke: #4f46e5 !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* Títulos y textos */
.service-card h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 0.75rem !important;
}

.service-card p {
    font-size: 0.95rem !important;
    color: #475569 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
}

/* Enlace "Saber más" */
.card-link {
    display: inline-block !important;
    font-weight: 500 !important;
    color: #4f46e5 !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent !important;
    transition: border-color 0.3s, color 0.3s !important;
    padding-bottom: 2px !important;
}

.card-link:hover {
    color: #4338ca !important;
    border-bottom-color: #4338ca !important;
}

/* Botón de acción principal */
.btn-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #4f46e5 !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    padding: 1rem 2.5rem !important;
    border-radius: 60px !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.3) !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.btn-action:hover {
    background: #282bf0 !important;
    transform: scale(1.02) !important;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn-action:active {
    transform: scale(0.98) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem !important;
    }
    .section-header p {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }
    .service-card {
        max-width: 400px !important;
    }
}

@media (max-width: 480px) {
    .featured-section {
        padding: 3rem 0.5rem !important;
    }
    .service-card {
        padding: 1.5rem 1rem !important;
    }
    .card-icon {
        width: 70px !important;
        height: 70px !important;
    }
    .card-icon svg {
        width: 40px !important;
        height: 40px !important;
    }
    .service-card h3 {
        font-size: 1.3rem !important;
    }
}
/* ╔══════════════════════════════════════════════════════════════════╗
   ║            CHATBOX IA — ESTILOS NUEVOS                         ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* ----- Botón flotante (reemplaza el anterior) ----- */
.asistente-flotante {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #4a90e2, #2563eb) !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(74, 144, 226, 0.55) !important;
  z-index: 1000 !important;
  transition: transform .25s, box-shadow .25s !important;
  animation: pulse-asistente 2.5s infinite !important;
  padding: 0 !important;
  outline: none !important;
}
.asistente-flotante svg { fill: white !important; width: 30px !important; height: 30px !important; }
.asistente-flotante:hover {
  transform: scale(1.1) translateY(-4px) !important;
  box-shadow: 0 8px 28px rgba(74, 144, 226, 0.7) !important;
  animation: none !important;
}
@keyframes pulse-asistente {
  0%,100% { box-shadow: 0 4px 18px rgba(74,144,226,0.45); }
  50%      { box-shadow: 0 4px 30px rgba(74,144,226,0.9); }
}

/* Tooltip */
.chat-tooltip {
  position: absolute !important;
  right: 74px !important;
  background: #1a2b3c !important;
  color: white !important;
  padding: 7px 14px !important;
  border-radius: 20px !important;
  font-size: 0.82rem !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.25s ease !important;
  pointer-events: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}
.chat-tooltip::after {
  content: '' !important;
  position: absolute !important;
  right: -5px !important; top: 50% !important;
  transform: translateY(-50%) !important;
  border: 5px solid transparent !important;
  border-left-color: #1a2b3c !important;
}
.asistente-flotante:hover .chat-tooltip { opacity: 1 !important; visibility: visible !important; right: 82px !important; }

/* ----- Widget chatbox ----- */
.chatbox {
  position: fixed !important;
  bottom: 104px !important;
  right: 28px !important;
  width: 390px !important;
  max-width: calc(100vw - 40px) !important;
  border-radius: 22px !important;
  background: white !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2) !important;
  display: none !important;
  flex-direction: column !important;
  z-index: 1001 !important;
  overflow: hidden !important;
  border: 1px solid rgba(74,144,226,0.18) !important;
  font-family: 'Segoe UI', system-ui, sans-serif !important;
}
.chatbox.open {
  display: flex !important;
  animation: chatSlideUp 0.35s cubic-bezier(.16,1,.3,1) !important;
}
@keyframes chatSlideUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Header del chat */
.chat-header {
  background: linear-gradient(135deg, #4a90e2, #2563eb) !important;
  color: white !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  user-select: none !important;
}
.chat-avatar-header {
  width: 40px !important; height: 40px !important;
  background: rgba(255,255,255,0.2) !important;
  border-radius: 50% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 1.25rem !important; flex-shrink: 0 !important;
}
.chat-header-info { flex: 1 !important; }
.chat-header-name { font-weight: 700 !important; font-size: 0.97rem !important; }
.chat-header-status {
  font-size: 0.74rem !important; opacity: 0.88 !important;
  display: flex !important; align-items: center !important; gap: 5px !important; margin-top: 2px !important;
}
.chat-status-dot {
  width: 7px !important; height: 7px !important;
  background: #4ade80 !important; border-radius: 50% !important;
  animation: statusBlink 1.6s infinite !important;
}
@keyframes statusBlink { 0%,100%{opacity:1} 50%{opacity:.3} }

.chat-close {
  background: rgba(255,255,255,0.2) !important;
  border: none !important; color: white !important;
  width: 32px !important; height: 32px !important;
  border-radius: 50% !important; font-size: 1.05rem !important;
  cursor: pointer !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  transition: background .2s, transform .2s !important;
  line-height: 1 !important;
}
.chat-close:hover { background: rgba(255,255,255,0.35) !important; transform: rotate(90deg) !important; }

/* Cuerpo de mensajes */
.chat-body {
  flex: 1 !important;
  height: 360px !important;
  overflow-y: auto !important;
  padding: 14px !important;
  background: #f3f6fb !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  scroll-behavior: smooth !important;
}
.chat-body::-webkit-scrollbar { width: 4px !important; }
.chat-body::-webkit-scrollbar-thumb { background: #c4d3e8 !important; border-radius: 4px !important; }

/* Mensajes */
.msg {
  max-width: 83% !important;
  padding: 10px 14px !important;
  border-radius: 18px !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
  animation: msgFade .28s ease !important;
  word-wrap: break-word !important;
}
@keyframes msgFade {
  from { opacity:0; transform:translateY(7px); }
  to   { opacity:1; transform:translateY(0); }
}
.msg.bot {
  background: white !important;
  color: #1a2b3c !important;
  align-self: flex-start !important;
  border-bottom-left-radius: 5px !important;
  border: 1px solid #dde8f5 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.msg.user {
  background: linear-gradient(135deg, #4a90e2, #2563eb) !important;
  color: white !important;
  align-self: flex-end !important;
  border-bottom-right-radius: 5px !important;
}
.msg.bot strong { color: #2563eb !important; }
.msg.bot a     { color: #2563eb !important; }

/* Indicador de escritura */
.typing-indicator {
  display: flex !important; gap: 5px !important; align-items: center !important;
  padding: 10px 14px !important;
  background: white !important; border-radius: 18px !important; border-bottom-left-radius: 5px !important;
  border: 1px solid #dde8f5 !important; align-self: flex-start !important; width: fit-content !important;
  animation: msgFade .28s ease !important;
}
.typing-dot {
  width: 8px !important; height: 8px !important;
  background: #4a90e2 !important; border-radius: 50% !important;
  animation: typingBounce 1.2s infinite !important;
}
.typing-dot:nth-child(2) { animation-delay: .2s !important; }
.typing-dot:nth-child(3) { animation-delay: .4s !important; }
@keyframes typingBounce {
  0%,60%,100% { transform:translateY(0); }
  30%          { transform:translateY(-7px); }
}

/* Chips de sugerencias */
.chat-suggestions {
  display: flex !important; flex-wrap: wrap !important; gap: 7px !important;
  padding: 2px 0 !important; align-self: flex-start !important;
}
.chat-chip {
  background: white !important;
  border: 1.5px solid #4a90e2 !important;
  color: #2563eb !important;
  padding: 6px 13px !important;
  border-radius: 30px !important;
  font-size: 0.79rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .2s !important;
  white-space: nowrap !important;
}
.chat-chip:hover { background: #4a90e2 !important; color: white !important; transform: translateY(-2px) !important; }

/* Footer de entrada */
.chat-footer-input {
  background: white !important;
  border-top: 1px solid #e4ecf5 !important;
  padding: 11px 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}
#chat-input {
  flex: 1 !important;
  border: 2px solid #e4ecf5 !important;
  border-radius: 26px !important;
  padding: 10px 15px !important;
  font-size: 0.9rem !important;
  outline: none !important;
  transition: border-color .25s, box-shadow .25s !important;
  color: #1a2b3c !important;
  background: #f8fafc !important;
}
#chat-input:focus {
  border-color: #4a90e2 !important;
  box-shadow: 0 0 0 3px rgba(74,144,226,0.12) !important;
  background: white !important;
}
#chat-input::placeholder { color: #aab4c4 !important; }
#chat-input:disabled { opacity: 0.6 !important; cursor: not-allowed !important; }

#chat-send-btn {
  width: 41px !important; height: 41px !important;
  background: linear-gradient(135deg, #4a90e2, #2563eb) !important;
  border: none !important; border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  transition: transform .2s, box-shadow .2s !important;
  flex-shrink: 0 !important;
}
#chat-send-btn:hover   { transform: scale(1.1) !important; box-shadow: 0 4px 14px rgba(74,144,226,0.5) !important; }
#chat-send-btn:active  { transform: scale(.95) !important; }
#chat-send-btn:disabled { opacity: 0.5 !important; cursor: not-allowed !important; transform: none !important; }
#chat-send-btn svg { fill: white !important; width: 17px !important; height: 17px !important; }

/* Responsive chatbox */
@media (max-width: 480px) {
  .chatbox { right: 14px !important; bottom: 88px !important; width: calc(100vw - 28px) !important; }
  .asistente-flotante { bottom: 18px !important; right: 14px !important; width: 54px !important; height: 54px !important; }
  .asistente-flotante svg { width: 26px !important; height: 26px !important; }
  .asistente-flotante .chat-tooltip { display: none !important; }
  .chat-body { height: 320px !important; }
}