/* ==========================================================================
   NUEVA PALETA MEDITERRÁNEA FRESCA - GARBÍ 147
   ========================================================================== */
:root {
  --bg-principal: #F4F8FA;    /* Azul crema muy claro y fresco */
  --texto-oscuro: #0F1E2C;    /* Azul marino profundo para máxima lectura */
  --texto-suave: #4A5E6D;     /* Gris azulado para subtítulos */
  --marca-azul: #0066CC;      /* Azul mar corporativo */
  --marca-fresco: #00A3A3;    /* Aguamarina para píldoras y detalles */
  --blanco-tarjeta: #FFFFFF;  /* Blanco puro para las secciones */
  --borde-suave: #E2ECF0;     /* Líneas de separación discretas */
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--bg-principal);
  color: var(--texto-oscuro);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  background-image: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0, 163, 163, 0.08) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0, 102, 204, 0.05) 0%, transparent 60%);
}

.guide-container {
  width: 100%;
  max-width: 680px;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  box-sizing: border-box;
}

.font-serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 4rem;
  font-style: italic;
  margin: 0;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--texto-oscuro) 0%, var(--marca-azul) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(0, 163, 163, 0.08);
  color: var(--marca-fresco);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: max-content;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 163, 163, 0.15);
}

.card-white {
  background-color: var(--blanco-tarjeta);
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--borde-suave);
  box-shadow: 0 4px 6px -1px rgba(15, 30, 44, 0.02), 0 2px 4px -2px rgba(15, 30, 44, 0.02);
}

/* Estilos de los bloques del Formulario */
.form-box {
  width: 100%;
  background-color: var(--blanco-tarjeta);
  padding: 2.25rem;
  border-radius: 1.5rem;
  border: 1px solid var(--borde-suave);
  box-shadow: 0 10px 25px -5px rgba(15, 30, 44, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
}
.lang-bar { display: flex; justify-content: center; gap: 0.85rem; margin-bottom: 0.5rem; }
.flag-btn { background: none; border: 2px solid transparent; font-size: 1.8rem; cursor: pointer; padding: 0.25rem; border-radius: 0.5rem; transition: transform 0.2s, border-color 0.2s; }
.flag-btn:hover { transform: scale(1.15); }
.flag-btn.active { border-color: var(--marca-azul); background-color: rgba(0, 102, 204, 0.05); }
.input-group { display: flex; flex-direction: column; gap: 0.45rem; width: 100%; }
.input-group label { font-size: 0.88rem; font-weight: 700; color: var(--texto-oscuro); }
.input-group input, .input-group select { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--borde-suave); border-radius: 0.85rem; font-family: 'Manrope', sans-serif; font-size: 0.95rem; color: var(--texto-oscuro); background-color: #F8FAFC; box-sizing: border-box; transition: border-color 0.2s; }
.input-group input:focus, .input-group select:focus { outline: none; border-color: var(--marca-azul); background-color: #FFFFFF; }
.submit-btn { width: 100%; background: linear-gradient(135deg, var(--marca-azul) 0%, #0052A3 100%); color: #FFFFFF; border: none; padding: 1.1rem; font-size: 1rem; font-weight: 700; border-radius: 0.95rem; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; margin-top: 0.5rem; }
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2); }
/* Acordeones responsivos limpios (Con tamaño de imagen controlado) */
.accordion-item {
  background-color: var(--blanco-tarjeta);
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--borde-suave);
  box-shadow: 0 2px 4px rgba(15,30,44,0.01);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 102, 204, 0.04);
  border-color: rgba(0, 102, 204, 0.3);
}
.accordion-header { cursor: pointer; user-select: none; display: flex; justify-content: space-between; align-items: center; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease-out; }
.accordion-item.active .accordion-content { max-height: 1500px; padding-top: 1.25rem; }
.arrow-icon { font-size: 1rem; color: var(--texto-suave); transition: transform 0.3s ease; font-weight: bold; }
.accordion-item.active .arrow-icon { transform: rotate(180deg); color: var(--marca-azul); }

/* CONTROL DEL TAMAÑO DE LOS ICONOS DE LAS NORMAS Y MANUALES */
.icon-square { 
  width: 2.5rem; 
  height: 2.5rem; 
  object-fit: contain; 
  flex-shrink: 0; 
}

/* Tarjetas de los Lugares Turísticos */
.place-card { display: flex; flex-direction: column; gap: 0.75rem; background-color: var(--blanco-tarjeta); border: 1px solid var(--borde-suave); border-radius: 1.25rem; padding: 1.25rem; box-shadow: 0 2px 4px rgba(15,30,44,0.01); }
.place-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.75rem; background-color: rgba(0, 102, 204, 0.06); color: var(--marca-azul); border: 1px solid rgba(0, 102, 204, 0.12); border-radius: 0.85rem; font-size: 0.88rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 0.2s; }
.place-btn:hover { background-color: rgba(0, 102, 204, 0.12); }

/* Módulos de Conexión Wi-Fi y SOS */
.wifi-box { background: linear-gradient(135deg, rgba(0,163,163,0.05) 0%, rgba(0,102,204,0.05) 100%); border: 1px dashed rgba(0,102,204,0.25); padding: 1.25rem; border-radius: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.copy-btn { background-color: var(--marca-azul); color: #FFFFFF; border: none; padding: 0.65rem 1.25rem; font-size: 0.85rem; font-weight: 700; border-radius: 0.85rem; cursor: pointer; transition: background-color 0.2s; }
.copy-btn:hover { background-color: #0052A3; }
.sos-box { background-color: #0F1E2C; color: #FFFFFF; padding: 1.75rem; border-radius: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.sos-item { padding: 0.85rem 1.15rem; background-color: rgba(255, 255, 255, 0.05); border-radius: 0.85rem; display: flex; align-items: center; gap: 1.15rem; }

/* Ventanas Modales */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(15, 30, 44, 0.5); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box { background-color: var(--blanco-tarjeta); padding: 2rem; border-radius: 1.5rem; max-width: 90%; max-height: 85vh; overflow-y: auto; position: relative; display: flex; flex-direction: column; gap: 1rem; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: #F0F4F8; border: none; width: 2.2rem; height: 2.2rem; border-radius: 9999px; cursor: pointer; display: flex; justify-content: center; align-items: center; font-weight: bold; color: var(--texto-suave); }

/* ==========================================================================
   DISEÑO DEL GLOBO EMERGENTE DE PRIVACIDAD (RESPONSIVO)
   ========================================================================== */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}
.popup-box {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 1rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  box-sizing: border-box;
  animation: entradaGlobo 0.25s ease-out;
}
.popup-close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
}
.popup-close:hover { color: #334155; }

@keyframes entradaGlobo {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
  .popup-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .popup-box {
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 1.5rem;
    max-width: 100%;
  }
}
/* ==========================================================================
   15. INTERFAZ DE POSTALES VISUALES DE INTERÉS (CARRUSEL EXPERIENCIAL)
   ========================================================================== */

/* Contenedor del carrusel: permite deslizamiento horizontal fluido */
.carrusel-lugares {
  display: flex !important;
  gap: 1.25rem !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  padding: 0.5rem 0.25rem 1.25rem 0.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  
  /* Oculta la barra de scroll en navegadores modernos */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

/* Oculta la barra de scroll en Chrome, Safari y Edge */
.carrusel-lugares::-webkit-scrollbar {
  display: none;
}

/* Diseño de cada tarjeta postal individual */
.tarjeta-postal-carrusel {
  flex: 0 0 280px !important; /* Ancho fijo para cada postal en el carrusel */
  height: 190px !important;
  border-radius: 1.25rem !important;
  border: 1px solid var(--borde-suave) !important;
  background-size: cover !important;
  background-position: center !important;
  display: flex !important;
  align-items: flex-end !important;
  text-decoration: none !important;
  scroll-snap-align: start !important;
  overflow: hidden !important;
  box-shadow: 0 4px 10px rgba(15, 30, 44, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
}

/* Efecto sutil al pasar el ratón en PC */
.tarjeta-postal-carrusel:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.08) !important;
  border-color: rgba(0, 102, 204, 0.2) !important;
}

/* Caja de texto interna colocada abajo sobre el degradado oscuro */
.postal-info {
  padding: 1.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Título de la postal */
.postal-info h4 {
  margin: 0 0 0.25rem 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important; /* Blanco puro para resaltar sobre la foto */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Descripción de la postal */
.postal-info p {
  margin: 0 !important;
  font-size: 0.82rem !important;
  color: rgba(255, 255, 255, 0.9) !important; /* Blanco suave translúcido */
  line-height: 1.3 !important;
  font-weight: 500 !important;
  text-align: left !important;
}

/* Ajuste específico para que las postales sean un poco más estrechas en teléfonos pequeños */
@media (max-width: 480px) {
  .tarjeta-postal-carrusel {
    flex: 0 0 250px !important;
    height: 180px !important;
  }
}
/* ==========================================================================
   16. CONTROL DE IMÁGENES NATIVAS EN LAS TARJETAS POSTALES
   ========================================================================== */

/* Forzamos a la tarjeta a tener un posicionamiento relativo para contener la imagen */
.tarjeta-postal-carrusel {
  position: relative !important;
  flex: 0 0 280px !important;
  height: 190px !important;
  border-radius: 1.25rem !important;
  border: 1px solid var(--borde-suave) !important;
  display: flex !important;
  align-items: flex-end !important;
  text-decoration: none !important;
  scroll-snap-align: start !important;
  overflow: hidden !important;
  box-shadow: 0 4px 10px rgba(15, 30, 44, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
}

/* Control estricto de la imagen nativa por debajo del texto */
.postal-img-nativo {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Reencuadra la foto automáticamente sin deformarla */
  object-position: center !important; /* Centra el punto de atención de la imagen */
  z-index: 1 !important; /* Se coloca al fondo */
  transition: transform 0.3s ease !important;
}

/* Capa de degradado oscuro para que el texto blanco sea legible sobre cualquier foto */
.tarjeta-postal-carrusel::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(to top, rgba(15, 30, 44, 0.85) 0%, rgba(15, 30, 44, 0.2) 60%, rgba(15, 30, 44, 0) 100%) !important;
  z-index: 2 !important; /* Por encima de la foto, por debajo del texto */
}

/* Efecto visual premium al pasar el ratón en PC (zoom suave a la foto) */
.tarjeta-postal-carrusel:hover .postal-img-nativo {
  transform: scale(1.06) !important;
}

.tarjeta-postal-carrusel:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.08) !important;
  border-color: rgba(0, 102, 204, 0.2) !important;
}

/* Forzamos al contenedor de información a flotar por encima de las capas visuales */
.postal-info {
  position: relative !important;
  z-index: 3 !important; /* Al frente de todo */
  padding: 1.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Ajuste móvil para que las postales mantengan la proporción en pantallas pequeñas */
@media (max-width: 480px) {
  .tarjeta-postal-carrusel {
    flex: 0 0 250px !important;
    height: 180px !important;
  }
}
/* ==========================================================================
   17. FORZADO Y ESTILO DE LA BARRA DE NAVEGACIÓN EN PC
   ========================================================================== */

/* Buscamos la clase del contenedor de tu home.html y forzamos el scroll horizontal */
.carrusel-lugares {
  display: flex !important;
  gap: 1.25rem !important;
  overflow-x: scroll !important; /* Fuerza al navegador a permitir el desplazamiento */
  scroll-snap-type: x mandatory !important;
  padding: 0.5rem 0.25rem 1.25rem 0.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch;
}

/* Si el usuario navega desde un PC (pantalla grande), pintamos la barra fina azul */
@media (min-width: 1024px) {
  .carrusel-lugares {
    scrollbar-width: thin !important; /* Muestra la barra fina en Firefox */
    scrollbar-color: var(--marca-azul) rgba(0, 102, 204, 0.05) !important; /* Color en Firefox */
  }
  
  /* Activación e inyección visual de la barra en Chrome, Safari y Edge */
  .carrusel-lugares::-webkit-scrollbar {
    display: block !important; /* Obliga a Chrome a renderizar el elemento */
    height: 6px !important; /* Altura muy fina para mantener la elegancia */
  }
  /* Diseño del carril gris translúcido por donde corre la barra */
  .carrusel-lugares::-webkit-scrollbar-track {
    background: rgba(0, 102, 204, 0.05) !important;
    border-radius: 10px !important;
  }
  
  /* Diseño de la barrita azul de arrastre para el ratón */
  .carrusel-lugares::-webkit-scrollbar-thumb {
    background-color: var(--marca-azul) !important;
    border-radius: 10px !important;
  }
  
  /* Cambia a un tono un poco más oscuro al pasar el cursor encima */
  .carrusel-lugares::-webkit-scrollbar-thumb:hover {
    background-color: #0052A3 !important;
  }
}

/* ==========================================================================
   SEGURIDAD PARA DISPOSITIVOS MÓVILES (PANTALLAS TÁCTILES)
   ========================================================================== */
@media (max-width: 1023px) {
  /* Si entran con móvil o tablet, eliminamos la barra para aprovechar el arrastre táctil */
  .carrusel-lugares::-webkit-scrollbar {
    display: none !important;
  }
  .carrusel-lugares {
    scrollbar-width: none !important; /* Ocultación para Firefox móvil */
  }
}
