/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-linea-deco: #f08718;
  /* color por defecto */
}

/* Body */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d4db5;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='-20 0 140 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><path stroke-linecap='round' d='M-20,50 C20,0 80,100 120,50' stroke='%2300f5e1' stroke-width='0.6' fill='none'/><path stroke-linecap='round' d='M-20,60 C10,10 90,90 120,60' stroke='%2300f5e1' stroke-width='0.6' fill='none'/><path stroke-linecap='round' d='M-20,70 C15,20 85,80 120,70' stroke='%2300f5e1' stroke-width='0.6' fill='none'/></svg>");
  background-repeat: repeat;
  background-size: auto 100%;
  background-attachment: fixed;
  background-position: center;
  opacity: 1;
}

/* Header: barra verde */
header.barra-verde {
  position: relative;
  width: 100%;
  height: 40px;
  background-color: #288ffc;
  display: flex;
  align-items: center;
  justify-content: space-between; /* separa extremos */
  padding: 0 20px;
  z-index: 1000;
}

/* Botón menú a la izquierda */
.menu-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  object-fit: cover;
}

/* Menú desplegable */
.menu {
  position: absolute;
  left: 0px;
  top: 40px;
  background: #fff;
  padding: 12px 20px;
  display: none;
  z-index: 1050;
  min-width: 150px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.menu ul {
  list-style: none;
}

.menu ul li a {
  color: #000;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s;
}

.menu ul li a:hover {
  color: #00f5e1;
}

.header-right {
  margin-left: auto; /* empuja a la derecha */
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botón/login (ícono + texto) */
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgb(0,0,0);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background-color 0.15s, transform 0.12s;
  cursor: pointer;
}

.login-btn:hover {
  background: rgba(0,0,0,0.03);
}

/* avatar */
#user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  border: 2px solid rgba(0,0,0,0.06);
}

#user-section {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

#user-section img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* Overlay oscuro */
#user-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 999;
}

#user-menu-overlay.visible {
  display: block;
}

/* Menú lateral */
#user-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.3);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  transition: right 0.3s ease;
}

#user-menu.visible {
  right: 0;
}

#user-menu img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 12px;
  object-fit: cover;
  cursor: pointer;
}

#user-menu h3 {
  margin: 0;
  font-size: 20px;
}

#user-menu p {
  margin: 4px 0 20px;
  color: #555;
}

#cerrar-sesion {
  margin-top: auto;
  background: #00f5e1;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

#cerrar-sesion:hover {
  background: #0ccabc;
}

.hero {
  background: url('imagenes/9_de_Julio.jpg') no-repeat center center/cover;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: left;
  padding-left: 40px;
  color: white;
  position: relative;
  margin-top: 0;
  transition: opacity 0.5s ease;
  background-size: cover;
  background-position: center;
}

.hero.fade {
  opacity: 0;
}

.hero-degradado {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent);
  z-index: 2;
  pointer-events: none;
}


/* Contenido textual */
.hero .contenido {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.hero h1 {
  font-size: 60px;
  font-weight: bold;
}

.hero p {
  margin-top: 10px;
  font-size: 18px;
  font-family: "League Spartan", sans-serif;
}

/* Botones a la derecha */
.botones-hero {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 4;
}

.boton-circular {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s, background-color 0.3s;
  z-index: 4;
  user-select: none;
  padding: 6px;
  object-fit: cover;
}

.boton-circular:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}


/* Mostrar botones solo cuando JS detecta que el mouse está a la derecha */
.hero.mostrar-botones .botones-hero {
  opacity: 1;
  pointer-events: auto;
}

/* Capas de fondo */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: opacity 1s ease;
}

/* Capa nueva empieza invisible */
.hero-bg.fade-in {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Cuando está visible (con JS) */
.hero-bg.fade-in.visible {
  opacity: 1;
}

.cuadro-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  max-width: 90%;
  font-size: 14px;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}

.cuadro-info.oculto {
  opacity: 0;
  pointer-events: none;
}

.reporte-accion {
  position: relative;
  width: calc(100% - 450px);
  /* deja margen a los costados */
  height: 150px;
  margin: 30px auto;
  /* espacio con la imagen y centrado */
  border-radius: 16px;
  border: 7px solid #0872c9;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#mapa {
  width: 100%;
  height: 100%;
  z-index: 1;
  filter: brightness(0.3);
  /* oscurece el mapa directamente */
}

.reporte-accion .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  /* ya oscurecemos con filter */
  z-index: 2;
}

.texto-reporte {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  z-index: 3;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 1px 1px 3px black;
  pointer-events: none;
}

.decorativo-fondo {
  position: fixed;
  /* <-- aquí el cambio más importante */
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  /* para que ocupe toda la pantalla visible */
  z-index: -9999;
  pointer-events: none;
  overflow: visible;
}

.decorativo-fondo svg {
  width: 100%;
  height: 100%;
  transform: translateY(-34%);
}

.decorativo-fondo path {
  fill: none;
  stroke: var(--color-linea-deco);
  stroke-width: 1.2;
  stroke-opacity: 1;
  stroke-linecap: round;
  /* hace que el trazo animado sea suave */
  stroke-dasharray: 150 300;
  /* más longitud = menos rigidez */
  stroke-dashoffset: 0;
  animation: dibujar 8s ease-in-out infinite;
}

@keyframes dibujar {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -450;
  }
}

/* Animación opcional para dar movimiento sutil */
@keyframes mover-fondo {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 100% 100%;
  }
}

.contenido-extra {
  padding: 40px 100px;
  background-color: #000826;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  font-family: 'Montserrat', sans-serif;
}

.contenedor-texto {
  max-width: 1400px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
}

.info-slider {
  overflow: hidden;
  position: relative;
  min-height: 150px;
}

.slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.slide.activo {
  display: block;
  color: #ffffff;
}

.puntos-indicadores {
  text-align: center;
  margin-top: 20px;
}

.punto {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: #c9c9c9;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.punto.activo {
  background-color: #00f5e1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.black {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  font-family: 'Montserrat', sans-serif;
}

.report-section {
  width: 85%;
  max-width: 1500px;
  min-height: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #ffffff;
}

/* Rectángulo grande */
.big-box {
  margin-top: 50px;
  background-color: #000826;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.big-box h2 {
  margin-bottom: 10px;
}

/* Zona desplazable */
.scroll-box {
  background-color: #000826;
  border-radius: 10px;
  border: 1px solid #00e5ff;
  height: 200px;
  overflow-y: auto;
  padding: 10px;
}

/* Dos rectángulos inferiores */
.bottom-boxes {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.left-box, .right-box {
  background-color: #000826;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: #ffffff;
}

.left-box {
  flex: 2;  /* Ocupa aproximadamente 2/3 del espacio */
  min-width: 250px;
}

.right-box {
  flex: 1;  /* Ocupa aproximadamente 1/3 */
  min-width: 180px;
}

.left-box h3, .right-box h3 {
  margin-bottom: 10px;
}

/* --- Sección Sobre Nosotros --- */
.sobre-nosotros {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(180deg, #05111f, #001254);
}

.sobre-nosotros .titulo-seccion {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff !important;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #333;
}

.tarjetas {
  display: flex;              /* Usamos flexbox */
  flex-wrap: wrap;            /* Se acomodan en varias filas si no entran */
  gap: 25px;
  justify-content: center;    /* Centrado horizontal */
}

.tarjeta {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 250px;
  transition: transform 0.3s ease;
  border: 4px solid transparent;
  position: relative;
}

.tarjeta:hover {
  transform: translateY(-8px);
}

.tarjeta img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.tarjeta h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 8px;
}

.tarjeta .rol {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 5px;
  font-family: "League Spartan", sans-serif;
}

.tarjeta .correo {
  font-size: 0.9rem;
  color: #777;
}

/* Primeras 3 cartas: color A */
.tarjeta:nth-child(1),
.tarjeta:nth-child(3) {
  border-color: #14FFB4; /* naranja */
}

/* Cartas 4 y 5: color B */
.tarjeta:nth-child(4),
.tarjeta:nth-child(5) {
  border-color: #FF7800; /* azul */
}

/* Última carta con degradado y bordes suavizados */
.tarjeta:nth-child(2),
.tarjeta:nth-child(6) {
  border: 4px solid transparent;
  border-radius: 15px;
  background: 
    linear-gradient(white, white) padding-box,  /* interior blanco */
    linear-gradient(45deg, #14FFB4, #FF7800) border-box; /* marco degradado */
  background-clip: padding-box, border-box;
  background-origin: border-box;
}

.main-footer {
  background-color: #383838;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  color: #C7C7C7;
  font-size: 0.9rem;
}

.main-footer p {
  margin: 0;
}