/* Estilos para el sistema de selección múltiple de servicios */
.multi-select-container {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(3, 31, 137, 0.1);
  margin: 20px 0;
}

.select-title {
  color: #031f89;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.option-item {
  position: relative;
}

.option-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.option-label {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
}

.option-label:hover {
  border-color: #031f89;
  background: #f8faff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 31, 137, 0.15);
}

.option-checkbox:checked + .option-label {
  border-color: #031f89;
  background: linear-gradient(135deg, #031f89 0%, #0d47a1 100%);
  color: white !important;
}

.option-checkbox:checked + .option-label .option-title {
  color: white !important;
}

.option-checkbox:checked + .option-label .option-description {
  color: rgba(255, 255, 255, 0.95) !important;
}

.option-icon {
  font-size: 2rem;
  margin-right: 16px;
  min-width: 40px;
  text-align: center;
}

.option-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.option-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.option-description {
  font-size: 0.9rem;
  color: #6b7280;
}

.proceed-button {
  width: 100%;
  background: linear-gradient(135deg, #031f89 0%, #0d47a1 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.6;
  pointer-events: none;
}

.proceed-button.active {
  opacity: 1;
  pointer-events: auto;
}

.proceed-button.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 31, 137, 0.3);
}

.button-icon {
  font-size: 1.2rem;
}

.selected-info {
  margin-top: 16px;
  padding: 12px;
  background: #f0f9ff;
  border-radius: 6px;
  border-left: 4px solid #031f89;
  display: none;
}

.selected-info.show {
  display: block;
}

.selected-info h4 {
  color: #031f89;
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
}

.selected-info ul {
  margin: 0;
  padding-left: 20px;
  color: #374151;
}

.selected-info li {
  margin-bottom: 4px;
}

/* Estilos del botón especial flotante para roles autorizados */
.special-admin-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  z-index: 1001;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  font-family: 'Jost', sans-serif;
  pointer-events: auto;
}

.special-admin-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
}

.special-icon {
  font-size: 18px;
  font-weight: bold;
}

.special-text {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0% { 
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); 
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5); 
    transform: scale(1.05);
  }
  100% { 
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); 
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .special-admin-float {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 13px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .multi-select-container {
    padding: 16px;
    margin: 16px 0;
  }

  .select-title {
    font-size: 1.3rem;
  }

  .option-label {
    padding: 12px 16px;
  }

  .option-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    min-width: 32px;
  }

  .option-title {
    font-size: 1rem;
  }

  .option-description {
    font-size: 0.85rem;
  }

  .proceed-button {
    padding: 14px 20px;
    font-size: 1rem;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.selected-info.show {
  animation: fadeIn 0.3s ease;
}

/* Estados de carga */
.proceed-button.loading {
  position: relative;
  color: transparent;
}

.proceed-button.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



/* despegable */

/* CSS to fix nested dropdown positioning and remove yellow border */
.dropdown-menu .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 0;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #fff;
  z-index: 1000;
  min-width: 200px;
}

.dropdown-menu .nav-item.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu .dropdown-toggle::after {
  float: right;
  margin-top: 8px;
}

/* Remove any yellow borders or outlines */
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
  border: none;
  outline: none;
}

.dropdown-menu .dropdown-toggle:focus {
  outline: none;
  box-shadow: none;
  border: none;
}

/* Ensure proper positioning for nested dropdowns */
.dropdown-menu .nav-item.dropdown {
  position: relative;
}

@media (max-width: 991px) {
  .dropdown-menu .dropdown-menu {
    position: static;
    left: auto;
    top: auto;
    margin-left: 1rem;
    box-shadow: none;
    border: none;
    background-color: transparent;
  }
}




/* css de pdf de resoluciones /*

/* CSS específico para el botón de descarga PDF */
.pdf-download-section {
  background-color: #f8f9fa;
  padding: 40px 0;
  margin-top: 40px;
  border-top: 2px solid #e9ecef;
}

.pdf-download-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.pdf-download-title {
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.pdf-download-description {
  color: #666;
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.pdf-download-btn:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  color: white;
  text-decoration: none;
}

.pdf-download-btn:active {
  transform: translateY(0);
}

.pdf-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .pdf-download-section {
    padding: 30px 0;
  }

  .pdf-download-title {
    font-size: 1.3rem;
  }

  .pdf-download-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}


/* seguridad de red */

.infor{
  text-align:center;
  padding: 60px;
  margin: 10px;
  font-size:large;
}


/* infantil */

.ti{
  text-align: center;
  padding: 20px;
  font-size: 60px;
  margin: 40px;
}

.des{
  text-align:center;
  padding: 60px;
  margin: 10px;
  font-size:large;
}

.ley{
  text-decoration: underline;
  text-decoration: red;
}


/* caracteristicas del servicio*/

.desc{
  text-align:center;
  padding: 80px;
  margin: 10px;
  font-size: 30px;
}


/* politicas */

.img3{

  display: block;
  margin: 0 auto;
  max-width: 70%;
  height: auto;
}

.info{
  text-align: auto;
  padding: 30px;
  font-size: 3rem;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;

}


.info2{
  text-align: left;
  font-size: 20px;
}


/* parental */


  /* Parental Control page enhancements */
  /* Section backgrounds */
  .pc-section-soft {
    background: #f8f9fa;
  }
  .pc-section-highlight {
    background: #eef3ff;
  }

  /* Card accents */
  .pc-card-accent {
    border-top: 4px solid #4479d9;
  }
  .pc-card--success {
    border-top: 4px solid #28a745;
  }
  .pc-card--danger {
    border-top: 4px solid #dc3545;
  }

  /* Icon circle base */
  .pc-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pc-icon-primary {
    background: #4479d922;
    color: #4479d9;
  }
  .pc-icon-success {
    background: #28a74522;
    color: #28a745;
  }
  .pc-icon-warning {
    background: #ffc10722;
    color: #ffc107;
  }
  .pc-icon-info {
    background: #17a2b822;
    color: #17a2b8;
  }
  .pc-icon-danger {
    background: #dc354522;
    color: #dc3545;
  }

  /* Gradient buttons for legal links */
  .btn-grad-ley679 {
    background: linear-gradient(135deg, #3a3dff, #8a2be2);
    border: none;
  }
  .btn-grad-ley1098 {
    background: linear-gradient(135deg, #2d4263, #b31217);
    border: none;
  }
  .btn-grad-decreto1078 {
    background: linear-gradient(135deg, #2b5876, #4e4376);
    border: none;
  }
  .btn-grad-crc5050 {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    border: none;
  }



  /* Index */
  .pqr{
    text-align: center;
    padding: 0;
    margin: 0;
    font-size:large;
  }
  
  .pqrs{
    text-align: center;
    padding: 0;
    margin: 0 auto;
    font-size:large;
    max-width: 1280px;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .pqr img{
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    border: 6px solid #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }


 /* planes */
/* Estilos específicos para pages/planes.html */
body.page-planes {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: linear-gradient(135deg, #0b3d91, #851b9a) fixed;
}

body.page-planes .login-card {
  width: 95%;
  max-width: 380px;
  background: rgba(10,16,40,0.9);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  padding: 22px;
}

body.page-planes .login-card h1 {
  font-size: 1.25rem;
  margin: 0 0 10px;
  text-align: center;
}

body.page-planes .form-group { margin-bottom: 12px; }
body.page-planes label { font-size: .9rem; display:block; margin-bottom:6px; }
body.page-planes input,
body.page-planes select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #31419a;
  background: #0f1a3a;
  color: #fff;
  outline: none;
}

body.page-planes input::placeholder { color:#a9b3d6; }

body.page-planes .actions { display:flex; gap:10px; margin-top:10px; }
body.page-planes .btn { flex:1; padding:10px 12px; border:none; border-radius:8px; cursor:pointer; font-weight:600; }
body.page-planes .btn-primary { background:#2b56ff; color:#fff; }
body.page-planes .btn-outline { background:transparent; color:#fff; border:1px solid #5f6fff; }

body.page-planes .footer-links { display:flex; justify-content:center; margin-top:12px; font-size:.95rem; }
body.page-planes .footer-links a { text-decoration:none; }
body.page-planes .back-btn {
  display:inline-flex; align-items:center; gap:8px;
  background: linear-gradient(90deg, #3551f0, #8a49d6);
  color:#fff; padding:10px 16px; border-radius:12px;
  box-shadow:0 6px 14px rgba(0,0,0,.25); font-weight:700;
}
body.page-planes .back-btn:hover { filter:brightness(1.06); }



/* carrusel banner */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Ancho máximo fijo */
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 20px;
    height: 500px; /* Altura por defecto */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    left: 0;
    right: 0;
}

.carousel-slide {
    display: flex;
    width: 800%; /* 8 imágenes al 100% de ancho cada una (100% * 8) */
    height: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    position: relative;
    left: 0;
    margin: 0;
    padding: 0;
}

.carousel-slide .carousel-link {
    display: block;
    width: 12.5%; /* Cada enlace ocupa 1/8 del ancho */
    height: 100%;
    flex-shrink: 0;
    text-decoration: none;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    display: block;
}

/* Controles de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: #333;
    font-size: 24px;
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.carousel-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
}

.prev { 
    left: 15px; 
}

.next { 
    right: 15px; 
}

/* Indicadores - Puntos de navegación del carrusel */
.carousel-indicators {
    position: absolute;  /* Posicionamiento absoluto respecto al contenedor padre */
    bottom: 20px;       /* Ajustado para posicionar más arriba */
    left: 0;            /* Alineado a la izquierda del contenedor */
    right: 0;           /* Alineado a la derecha del contenedor */
    margin: 0 auto;     /* Centrado horizontal */
    display: flex;      /* Muestra los puntos en línea */
    justify-content: center;  /* Centra los puntos horizontalmente */
    align-items: center;     /* Centra verticalmente los puntos */
    gap: 8px;          /* Espacio entre puntos */
    z-index: 10;        /* Asegura que esté por encima de otros elementos */
    padding: 8px 12px;  /* Espaciado interno */
    border-radius: 20px; /* Bordes redondeados */
    flex-wrap: wrap;    /* Permite que los puntos se envuelvan si no caben en una línea */
    max-width: 90%;     /* Ancho máximo del contenedor de indicadores */
}

/* Estilo de cada punto individual */
.carousel-indicators .dot {
    width: 10px;        /* Ancho del punto */
    height: 10px;       /* Altura del punto */
    background: rgba(255, 255, 255, 0.5);  /* Color blanco semitransparente */
    border-radius: 50%;  /* Forma circular */
    cursor: pointer;    /* Cursor de puntero al pasar el ratón */
    transition: all 0.3s ease;  /* Transición suave */
    border: 2px solid transparent;  /* Borde transparente */
}

/* Efecto al pasar el ratón sobre un punto */
.carousel-indicators .dot:hover {
    background: rgba(255, 255, 255, 0.8);  /* Se hace más visible */
    transform: scale(1.2);  /* Aumenta ligeramente de tamaño */
}

/* Estilo del punto activo */
.carousel-indicators .dot.active {
    background: white;  /* Color blanco sólido */
    transform: scale(1.3);  /* Tamaño ligeramente mayor */
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);  /* Sutil sombra */
}

/* Media Queries para ajustar la altura */
@media (max-width: 1200px) {
    .carousel-container {
        max-width: 95%; /* Más espacio en los lados */
    }
}

@media (max-width: 1024px) {
    .carousel-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
        border-radius: 0;
        margin-bottom: 20px; /* Menos espacio en móviles */
    }
    
    .carousel-btn {
        font-size: 20px;
        padding: 8px 12px;
        opacity: 0.5; /* Más visibilidad en móviles */
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 200px;
    }
    
    .carousel-indicators .dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-btn {
        padding: 6px 10px;
        font-size: 18px;
    }
}

/* Clases para ajustar la altura manualmente */
.carousel-sm { 
    height: 300px !important;     /* 📏 ALTURA pequeña (300px) */
}
.carousel-md { 
    height: 500px !important;     /* 📏 ALTURA mediana (500px) */
}
.carousel-lg { 
    height: 700px !important;     /* 📏 ALTURA grande (700px) */
}
.carousel-full { 
    height: 100vh !important;     /* 📏 ALTURA completa (100% viewport) */
    max-height: 800px;          /* 📏 ALTURA MÁXIMA (800px) para pantallas grandes */
}

/* Efecto hover para mejor interacción */
.carousel-slide .carousel-link:hover img {
    opacity: 0.9;
    transform: scale(1.02);      /* 🔄 ESCALA al 102% (crece 2%) */
}

/* Mejoras de accesibilidad */
.carousel-btn:focus {
    outline: 2px solid #4a90e2;   /* 🖱️ BORDE foco (2px) */
    outline-offset: 2px;          /* 🖱️ ESPACIO del borde (2px) */
}

/* Los estilos de .carousel-indicators ya están definidos más arriba */

.dot {
    width: 12px;                 /* ⭕ ANCHO punto normal (12px) */
    height: 12px;                /* ⭕ ALTURA punto normal (12px) */
    background: #ffffff7a;
    border-radius: 50%;           /* ⭕ FORMA circular */
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: white;
    width: 20px;                 /* ⭕ ANCHO punto activo (20px) */
    border-radius: 20px;          /* ⭕ RADIO para hacerlo ovalado */
}

/* Responsivo */
@media (max-width: 768px) {
    .carousel-container {
        border-radius: 20px;
    }
    .carousel-btn {
        font-size: 22px;
        padding: 8px 12px;
    }
}

/* ========================================
   ESTILOS CSS DEL INBOX
   ======================================== */

:root { color-scheme: light; }

body { 
  margin:0; 
  font-family: Arial, sans-serif; 
  background:#f4f6f8;
  padding-top: 0; /* Sin espacio para header */
}

.wrap { 
  display:flex; 
  height: 100vh; /* Altura completa sin header */
  margin-top: 0; /* Sin margen superior */
}

.left { 
  width:360px; 
  background:#fff; 
  border-right:1px solid #e6e6e6; 
  display:flex; 
  flex-direction:column; 
}

.right { 
  flex:1; 
  display:flex; 
  flex-direction:column; 
}

.topbar { 
  padding:12px 14px; 
  border-bottom:1px solid #e6e6e6; 
  background:#fff; 
}

.search { 
  width:100%; 
  padding:10px; 
  border:1px solid #ddd; 
  border-radius:8px; 
}

.list { 
  overflow:auto; 
}

.item { 
  padding:12px 14px; 
  border-bottom:1px solid #f0f0f0; 
  cursor:pointer; 
}

.item:hover { 
  background:#f7f7f7; 
}

.item.active { 
  background:#e9f2ff; 
}

.row1 { 
  display:flex; 
  justify-content:space-between; 
  gap:10px; 
}

.name { 
  font-weight:700; 
  color:#111; 
  max-width:230px; 
  overflow:hidden; 
  text-overflow:ellipsis; 
  white-space:nowrap; 
}

.time { 
  font-size:12px; 
  color:#666; 
}

.row2 { 
  display:flex; 
  justify-content:space-between; 
  gap:10px; 
  margin-top:6px; 
}

.preview { 
  font-size:13px; 
  color:#444; 
  max-width:250px; 
  overflow:hidden; 
  text-overflow:ellipsis; 
  white-space:nowrap; 
}

.badge { 
  min-width:22px; 
  height:22px; 
  padding:0 6px; 
  border-radius:999px; 
  background:#0b63f6; 
  color:#fff; 
  font-size:12px; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
}

.chatTop { 
  padding:12px 14px; 
  border-bottom:1px solid #e6e6e6; 
  background:#fff; 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
}

.chatTitle { 
  font-weight:700; 
}

.chatSub { 
  font-size:12px; 
  color:#666; 
  margin-top:2px; 
}

.chatBody { 
  flex:1; 
  overflow:auto; 
  padding:14px; 
}

.bubble { 
  max-width:70%; 
  padding:10px 12px; 
  border-radius:14px; 
  margin:8px 0; 
}

.in { 
  background:#fff; 
  border:1px solid #e6e6e6; 
}

.out { 
  background:#dcf8c6; 
  margin-left:auto; 
}

.meta { 
  font-size:11px; 
  color:#666; 
  margin-top:6px; 
}

.empty { 
  padding:20px; 
  color:#666; 
}

.pill { 
  font-size:12px; 
  padding:6px 10px; 
  border:1px solid #ddd; 
  border-radius:999px; 
  background:#fff; 
  cursor:pointer; 
}

.chatFooter { 
  padding:12px 14px; 
  border-top:1px solid #e6e6e6; 
  background:#f9f9f9; 
  display:flex; 
  gap:8px; 
}

.msgInput { 
  flex:1; 
  padding:10px 12px; 
  border:1px solid #ddd; 
  border-radius:20px; 
  font-size:14px; 
}

.sendBtn { 
  padding:10px 20px; 
  background:#0b63f6; 
  color:#fff; 
  border:none; 
  border-radius:20px; 
  cursor:pointer; 
  font-weight:600; 
}

.sendBtn:hover { 
  background:#0952d9; 
}

.sendBtn:disabled { 
  background:#ccc; 
  cursor:not-allowed; 
}

.userInfo { 
  display:flex; 
  align-items:center; 
  gap:10px; 
  padding:12px 14px; 
  background:#fff; 
  border-bottom:1px solid #e6e6e6; 
}

.userName { 
  font-size:14px; 
  font-weight:600; 
  color:#111; 
}

.userRole { 
  font-size:12px; 
  color:#666; 
}

.logoutBtn { 
  padding:6px 12px; 
  background:#dc3545; 
  color:#fff; 
  border:none; 
  border-radius:6px; 
  cursor:pointer; 
  font-size:12px; 
  font-weight:500; 
}

.logoutBtn:hover { 
  background:#c82333; 
}

.mediaImage { 
  max-width:300px; 
  max-height:300px; 
  border-radius:8px; 
  margin-top:6px; 
  cursor:pointer; 
  display:block; 
}

.mediaImage:hover { 
  opacity:0.9; 
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }
  
  .wrap {
    height: 100vh;
    margin-top: 0;
  }
  
  .left {
    width: 100%;
    max-width: 300px;
  }
}

/* ========================================
   ESTILOS CSS DE CONTACTO.PHP
   ======================================== */

body {
  font-family: 'Jost', sans-serif;
  background-color: #f8f9fa;
}

.header-section {
  background: linear-gradient(135deg, #2c3e50, #4a6580);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.header-title {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.header-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

#map-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: white;
}

#map {
  height: 600px;
  width: 100%;
  z-index: 1;
}

#map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 16px;
  color: #555;
  z-index: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 80%;
  max-width: 400px;
}

.map-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  max-width: 200px;
}

.map-legend {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  max-width: 200px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.legend-color {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 3px;
  border: 1px solid #777;
}

.coverage-color {
  background: rgba(0, 102, 204, 0.5);
}

.fiber-color {
  background: rgba(220, 20, 60, 0.7);
}

.location-color {
  background: #e74c3c;
}

.info-section {
  padding: 40px 0;
  background: white;
}

.coverage-list {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.coverage-list h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

.coverage-areas {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

.coverage-areas ul {
  list-style-type: none;
  padding-left: 0;
}

.coverage-areas li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.coverage-areas li:before {
  content: "•";
  color: #3498db;
  font-weight: bold;
  margin-right: 10px;
}

.contact-box {
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: white;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-box h4 {
  margin-bottom: 15px;
}

.btn-contact {
  display: inline-block;
  background: white;
  color: #2c3e50;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s;
}

.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.progress {
  height: 8px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  #map {
    height: 450px;
  }
  
  .map-legend, .map-controls {
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    padding: 10px;
    max-width: 160px;
  }
  
  .header-title {
    font-size: 2rem;
  }
}

/* Estilos para la página de encuestas */
.encuesta-container {
  padding: 80px 15px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 70vh;
}
.encuesta-title {
  color: #031f89;
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 2.5rem;
}
.encuesta-description {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.btn-encuesta {
  background: linear-gradient(135deg, #ff6b00 0%, #e05d00 100%);
  color: white;
  border: none;
  padding: 18px 35px;
  margin: 15px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  min-width: 280px;
}

/* ========================================
   ESTILOS CSS DEL BOTÓN WHATSAPP FLOTANTE
   ======================================== */

/* Contenedor WhatsApp Chat */
.whatsapp-chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    border: none;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.5);
}

/* Ventana de Chat */
.whatsapp-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.whatsapp-chat-window.active {
    display: flex;
}

.whatsapp-chat-header {
    background: #075e54;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-info strong {
    display: block;
    font-size: 16px;
}

.whatsapp-info span {
    font-size: 12px;
    opacity: 0.8;
}

.whatsapp-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.whatsapp-close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.whatsapp-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #e5ddd5;
    background-image: url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxISEhUTEhIVFRUVFRUVFRYVFRUVFRUVFRUWFhUYHSggGBolGxUVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGi0lICUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAKgBLAMBIgACEQEDEQH/xAAcAAEAAgMBAQEAAAAAAAAAAAAABAUCAwYBBwj/xABBEAACAQMCAwUEBQMFAAAAAAABAgMEBREhBjESQVFhcYEykaGx8BMkJBUjQrLh8EIzM1NygpKiwuHh/8QAGgEBAQEBAQEAAAAAAAAAAAAAAwIEAQAFBv/EAB0RAQEAwEAAwAAAAAAAAAAAAABABEhMUEhQXH/2gAMAwEAAhEDEQA/AN0A');
}

.whatsapp-message {
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.whatsapp-message.bot {
    align-self: flex-start;
    background: #dcf8c6;
}

.whatsapp-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.quick-reply {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.quick-reply:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.whatsapp-chat-footer {
    background: white;
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

.whatsapp-chat-footer input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
}

.whatsapp-chat-footer button {
    background: #25d366;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-chat-footer button:hover {
    background: #128C7E;
}

/* Responsive para WhatsApp */
@media (max-width: 768px) {
    .whatsapp-chat-window {
        width: 300px;
        height: 450px;
        right: -20px;
    }
    
    .whatsapp-chat-container {
        bottom: 80px;
        right: 20px;
    }
}

.btn-encuesta:hover {
  background: linear-gradient(135deg, #e05d00 0%, #cc5500 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}
.encuesta-card {
  background: white;
  border-radius: 15px;
  padding: 30px 25px;
  margin: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  max-width: 450px;
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  border: 1px solid rgba(3, 31, 137, 0.1);
}
.encuesta-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.encuesta-imagen {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.encuesta-card h3 {
  color: #031f89;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.3rem;
}
.encuesta-card p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Responsive para encuestas */
@media (max-width: 768px) {
  .encuesta-container {
    padding: 60px 10px;
  }
  .encuesta-title {
    font-size: 2rem;
  }
  .encuesta-card {
    margin: 10px;
    max-width: 100%;
  }
}

/* Estilos para mantener el menú desplegable abierto */
/* Mantener el menú principal abierto */
.dropdown.open > .dropdown-menu {
    display: block !important;
}

/* Asegurar que los submenús funcionen correctamente */
.dropdown-submenu .dropdown-menu {
    display: none;
    position: absolute;
    left: 100% !important;
    top: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.dropdown-submenu .dropdown-menu.show {
    display: block;
}

/* Alinear submenús horizontalmente con el menú principal */
.dropdown-submenu {
    position: relative;
}

/* Hacer que el contenedor del menú sea más ancho para acomodar submenús */
.dropdown-menu {
    min-width: 250px;
}

/* Asegurar que los submenús no se superpongan entre sí */
.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu {
    display: block;
    left: 100% !important;
    top: 0 !important;
    z-index: 1001;
}

/* Cerrar otros submenús cuando se abre uno nuevo */
.dropdown-submenu:hover > .dropdown-menu {
    z-index: 1002;
}

.dropdown-submenu > .dropdown-toggle {
    position: relative;
}

.dropdown-submenu > .dropdown-toggle::after {
    content: "›";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* Prevenir cierre automático del menú principal */
.dropdown .dropdown-menu {
    position: absolute;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    margin-top: 0 !important;
    top: 100% !important;
}

/* Estilos para opciones de menú que no cierran el dropdown */
.dropdown-menu > .dropdown-item:not(.dropdown-toggle) {
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
}

.dropdown-menu > .dropdown-item:not(.dropdown-toggle):hover {
    background-color: #f8f9fa;
    color: #16181b;
}

/* Eliminar espacio entre elementos del menú */
.dropdown-menu {
    margin: 0 !important;
    padding: 0.25rem 0 !important;
}

.dropdown-item {
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
}

