/* =========================
   RESET Y BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.6;
}

/* =========================
   VARIABLES DE COLOR
========================= */
:root {
  --color-institucional: #8e24aa;
  --color-secundario: #005fa3;
  --color-morado: #6a1b9a;
  --color-verde: #2e7d32;
  --color-naranja: #ef6c00;
  --color-acento: #fbc02d;
  --color-fondo: #ffffff;
}

/* =========================
   HEADER ESTILO ISEM
========================= */

.top-bar {
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--color-morado),
    var(--color-secundario),
    var(--color-verde),
    var(--color-naranja)
  );
}

.header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.header-container {
  max-width: 1400px;
  margin: auto;
  padding: 25px 40px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.header-brand {
  text-align: center;
}

.header-brand h1 {
  font-size: 22px;
  font-weight: 600;
}

.header-brand span {
  font-size: 14px;
  color: #666;
}

/* ===================================
   MENÚ MODERNO PROFESIONAL
=================================== */

.main-nav {
  background: #ffffff;
  padding: 0;
  border-bottom: 1px solid #eee;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.main-nav ul {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  list-style: none;
  padding: 18px 20px;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  padding: 10px 5px;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover elegante */
.main-nav a:hover {
  color: #8e24aa;
  transform: translateY(-3px);
}

/* Línea animada inferior */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg,#8e24aa,#ff6f00);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Activo */
.main-nav a.active {
  color: #8e24aa;
}

.main-nav a.active::after {
  width: 100%;
}

/* Responsive */
@media(max-width: 900px){
  .main-nav ul {
    flex-direction: column;
    gap: 20px;
  }
}

/* =========================
   CONTENIDO PRINCIPAL
========================= */

#app-content {
  max-width: 1300px;
  margin: auto;
  padding: 50px 20px;
}

.section {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.section.active {
  display: block;
}

.section h2 {
  color: var(--color-morado);
  margin-bottom: 20px;
}

.section p {
  max-width: 900px;
  font-size: 17px;
}

/* =========================
   CARRUSEL CON MARCA DE AGUA
========================= */

.carousel {
  position: relative;

  width: 70%;          /* antes 90% */
  max-width: 900px;    /* antes 1100px */

  height: 300px;       /* antes 450px */

  margin: 40px auto;

  overflow: hidden;

  border-radius: 60px; /* antes 100px */

  background-color: #fa8541;
}

/* Marca de agua detrás */

.carousel::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../assets/marca-agua-fondo.png");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.10;

  pointer-events: none;
  z-index: 0;
}

/* SLIDES */

.carousel-slide {
  position: absolute;
  inset: 0;

  opacity: 0;

  transition: opacity 0.8s ease;

  background-size: 55%; /* antes 29% */
  background-position: center;
  background-repeat: no-repeat;

  z-index: 1;

  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}
/* =========================
   ACCESOS RÁPIDOS
========================= */

.quick-access {
  margin: 80px auto 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  max-width: 1000px;
}

.quick-card {
  background-color: #ffffff;
  border-radius: 50%;
  width: 160px;
  height: 160px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-card span {
  font-size: 32px;
  margin-bottom: 10px;
}

.quick-card p {
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(0,0,0,0.15);
}

/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 80px;
  background-color: var(--color-institucional);
  color: white;
  text-align: center;
  padding: 25px;
  font-size: 14px;
}

/* =========================
   AUTH (LOGIN / REGISTRO)
========================= */

.header-auth {
  display: flex;
  gap: 10px;
}

.btn-login {
  background-color: transparent;
  border: 2px solid var(--color-institucional);
  color: var(--color-institucional);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-register {
  background-color: var(--color-institucional);
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-login:hover,
.btn-register:hover {
  opacity: 0.85;
}

/* =========================
   MODAL AUTH
========================= */

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.auth-modal.active {
  display: flex;
}

.auth-content {
  background: #fff;
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: 14px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: #eee;
  cursor: pointer;
  font-weight: 500;
}

.tab-btn.active {
  background: var(--color-institucional);
  color: #fff;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: flex;
  flex-direction: column;
}

.auth-form h3 {
  margin-bottom: 15px;
  color: var(--color-institucional);
}

.auth-form input {
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.auth-form button {
  background: var(--color-institucional);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* =========================
   ANIMACIONES
========================= */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   SEPARADOR ANIMADO
========================= */

.section-separator {
  margin: 90px auto 60px;
  text-align: center;
}

.section-separator h2 {
  font-size: 34px;
  font-weight: 600;
  color: #111;
}

.section-separator h2 span {
  color: var(--color-institucional);
}

/* Línea */
.separator-line {
  position: relative;
  width: 140px;
  height: 4px;
  background: #ddd;
  margin: 18px auto 0;
  border-radius: 10px;
  overflow: hidden;
}

/* Punto animado */
.separator-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--color-institucional);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: moveDot 2.5s ease-in-out infinite;
}

/* Animación */
@keyframes moveDot {
  0% {
    left: 0;
    opacity: 0.3;
  }
  50% {
    left: calc(100% - 14px);
    opacity: 1;
  }
  100% {
    left: 0;
    opacity: 0.3;
  }
}
/* =========================
   FRANJA SEPARADOR (VISIBLE)
========================= */

.separator-band {
  background: linear-gradient(
    90deg,
    #fff3e0,
    #ffe0b2,
    #fff3e0
  );
  padding: 80px 20px 70px;
  margin-top: 60px;
  opacity: 1; /* SIEMPRE visible */
}

/* Animación preparada */
.separator-band.animate {
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   ACERCA DEL ISEM
========================= */

.acerca-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 30px;
}

.acerca-menu {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
}

.acerca-menu h3 {
  margin-bottom: 15px;
  color: var(--color-institucional);
  font-size: 18px;
}

.menu-item {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 12px 14px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 15px;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.menu-item:hover {
  background: rgba(142,36,170,0.1);
}

.menu-item.active {
  background: var(--color-institucional);
  color: white;
  font-weight: 600;
}

.acerca-content {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.acerca-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.acerca-panel.active {
  display: block;
}

.acerca-panel h2 {
  color: var(--color-institucional);
  margin-bottom: 15px;
}

.acerca-panel p {
  font-size: 16px;
  max-width: 800px;
}
/* =========================
   DENUNCIA CIUDADANA
========================= */

.denuncia-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.denuncia-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.denuncia-subtitle {
  text-align: center;
  font-size: 14px;
  margin-bottom: 30px;
  color: #555;
}

.denuncia-subtitle span {
  font-weight: 600;
}

.denuncia-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-institucional);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.checkbox {
  font-size: 14px;
}

.btn-denuncia {
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-denuncia:hover {
  background: #0d47a1;
}
@media (max-width: 768px) {
  .carousel {
    height: 250px;
  }
}/* =============================
   PORTAL GRID MODERNO
============================= */

.portal-grid-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.portal-title {
  font-size: 28px;
  margin-bottom: 40px;
  color: #333;
  font-weight: 600;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.portal-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.portal-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portal-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: white;
}

.portal-overlay h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.portal-overlay span {
  font-size: 13px;
  opacity: 0.8;
}

.portal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.portal-card:hover img {
  transform: scale(1.05);
}
/* ===============================
   PORTALES DESTACADOS COLORIDO
================================ */

.portal-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 20px;
}

.portal-title {
  font-size: 32px;
  margin-bottom: 50px;
  font-weight: 700;
  background: linear-gradient(90deg,#8e24aa,#ef6c00,#2e7d32);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 35px;
}

.portal-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: all .4s ease;
  background: white;
  backdrop-filter: blur(8px);
}

.portal-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform .5s ease;
}

.portal-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top,rgba(0,0,0,.8),transparent);
  color: white;
}

.portal-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.portal-info span {
  font-size: 13px;
  opacity: .85;
}

/* HOVER COLORIDO */
.portal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.portal-card:hover img {
  transform: scale(1.08);
}

/* Animación al aparecer */
.portal-card {
  animation: fadeUp .8s ease forwards;
  opacity: 0;
}

.portal-card:nth-child(1){animation-delay:.1s}
.portal-card:nth-child(2){animation-delay:.2s}
.portal-card:nth-child(3){animation-delay:.3s}
.portal-card:nth-child(4){animation-delay:.4s}
.portal-card:nth-child(5){animation-delay:.5s}
.portal-card:nth-child(6){animation-delay:.6s}

@keyframes fadeUp{
  from{opacity:0; transform:translateY(40px)}
  to{opacity:1; transform:translateY(0)}
}
/* ==================================
   PROGRAMAS DEL BIENESTAR PRO
================================== */

.bienestar-section{
  max-width:1200px;
  margin:80px auto;
  padding:0 20px;
}

.bienestar-title{
  text-align:center;
  font-size:32px;
  font-weight:700;
  margin-bottom:50px;
  background: linear-gradient(90deg,#8e24aa,#ff6f00);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.bienestar-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:40px;
}

/* BOTÓN TARJETA */
.bienestar-card{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:40px;
  border-radius:20px;
  background:#fff;
  text-decoration:none;
  overflow:hidden;
  transition:all .4s ease;
  box-shadow:0 20px 40px rgba(0,0,0,0.08);
}

/* Borde degradado animado */
.bienestar-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:22px;
  background:linear-gradient(45deg,#8e24aa,#ff6f00,#00c853,#2962ff);
  background-size:300% 300%;
  animation:gradientMove 6s linear infinite;
  z-index:-1;
}

@keyframes gradientMove{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* Imagen */
.bienestar-card img{
  max-width:100%;
  height:80px;
  object-fit:contain;
  transition:all .4s ease;
}

/* HOVER EFECTO ARCOÍRIS */
.bienestar-card:hover{
  transform:translateY(-12px) scale(1.03);
  box-shadow:0 30px 60px rgba(142,36,170,0.35);
}

/* Glow institucional */
.bienestar-card:hover{
  box-shadow:
    0 0 20px rgba(142,36,170,.6),
    0 0 40px rgba(255,111,0,.4),
    0 30px 60px rgba(0,0,0,.2);
}

/* Filtro arcoíris */
.bienestar-card:hover img{
  filter:hue-rotate(360deg) saturate(1.3);
  animation:celebrate .8s ease;
}

/* Animación celebración */
@keyframes celebrate{
  0%{transform:scale(1)}
  50%{transform:scale(1.15) rotate(2deg)}
  100%{transform:scale(1)}
}

/* Responsive */
@media(max-width:768px){
  .bienestar-card{
    padding:30px;
  }
}
.servicios-grid{
  display:flex;
  justify-content:center;
  gap:60px;
  flex-wrap:wrap;
  margin:60px 0;
}

.servicio-card{
  width:170px;
  height:170px;
  border-radius:50%;
  background:#f2f2f2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#333;
  box-shadow:0 15px 30px rgba(0,0,0,0.08);
  transition:all .4s ease;
}

.servicio-card .icono{
  font-size:40px;
  margin-bottom:10px;
}

.servicio-card p{
  font-size:14px;
  font-weight:600;
  text-align:center;
}

/* HOVER MODERNO */
.servicio-card:hover{
  transform:translateY(-10px) scale(1.05);
  background:linear-gradient(135deg,#8e24aa,#ff6f00);
  color:white;
  box-shadow:
    0 0 25px rgba(142,36,170,.5),
    0 0 45px rgba(255,111,0,.4);
}

.servicio-card:hover .icono{
  transform:scale(1.2);
}
/* FORZAR ESTILO SERVICIO CARD */

.servicios-grid a {
  text-decoration: none !important;
  color: inherit !important;
}

.servicio-card {
  display: flex !important;
}
/* =========================
   ANIMACIONES PRO
========================= */

/* Animación entrada suave */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: all .6s ease;
}

.section.active {
  opacity: 1;
  transform: translateY(0);
}

/* Botones animados */
.btn-login,
.btn-register,
.btn-logout {
  transition: all .3s ease;
}

.btn-login:hover,
.btn-register:hover,
.btn-logout:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

/* Animación nombre usuario */
.user-name {
  font-weight: 600;
  animation: fadeInUser .6s ease;
}

@keyframes fadeInUser{
  from{opacity:0; transform:translateY(-10px)}
  to{opacity:1; transform:translateY(0)}
}

/* Logout botón */
.btn-logout{
  background:#ef6c00;
  border:none;
  color:white;
  padding:8px 14px;
  border-radius:6px;
  cursor:pointer;
}
.header-brand h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg,#8e24aa,#ff6f00,#2e7d32,#2962ff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 6s ease infinite;
}

.header-brand span {
  font-size: 15px;
  color: #777;
  letter-spacing: 1px;
  animation: fadeIn 1.2s ease;
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.btn-login,
.btn-register {
  padding: 10px 18px;
  font-weight: 600;
  transition: all .3s ease;
}

.btn-login:hover {
  background: var(--color-institucional);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(142,36,170,.3);
}

.btn-register:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.organigrama-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f3f3f3);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  transition: 0.4s ease;
}

.organigrama-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.organigrama-wrapper:hover img {
  transform: scale(1.02);
}



/* =================================
   SUBMENU ACERCA
================================= */

.acerca-menu{
width:250px;
display:flex;
flex-direction:column;
gap:10px;
}
.menu-item{
background:#eee;
border:none;
padding:12px;
text-align:left;
cursor:pointer;
border-radius:6px;
font-size:14px;
transition:0.2s;
}

.menu-item:hover{
background:#ddd;
}

.menu-item.active{
background:#7b2cbf;
color:white;
}

.acerca-content{
flex:1;
}

.acerca-panel{
display:none;
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.acerca-panel.active{
display:block;
}

/* =========================
   FOOTER ROJO CON MARCA DE AGUA
========================= */

.footer-chalco{
position:relative;
background:#ff009d;
color:white;
padding:70px 40px 30px;
font-family:"Segoe UI",Arial,sans-serif;
overflow:hidden;
}

/* MARCA DE AGUA */

.footer-watermark{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;

background-image:url("../assets/marca-agua-fondo.png");
background-size:cover;
background-position:center;
opacity:0.20;
pointer-events:none;
}
/* CONTENEDOR */
.footer-container{
position:relative;
z-index:2;

max-width:1300px;
margin:auto;

display:grid;
grid-template-columns:repeat(4,1fr);
gap:60px;
}

/* TITULOS */

.footer-col h4{
font-size:18px;
margin-bottom:20px;
font-weight:700;
}

/* TEXTO */

.footer-col p{
font-size:14px;
margin-bottom:10px;
transition:all .3s ease;
cursor:pointer;
}

/* ANIMACION */

.footer-col p:hover{
transform:translateX(6px);
color:#ffd6d6;
}

/* REDES */

.footer-social{
margin-top:15px;
display:flex;
gap:12px;
}

.footer-social a{
width:34px;
height:34px;
display:flex;
align-items:center;
justify-content:center;

border-radius:50%;
background:rgba(255,255,255,0.15);

transition:.3s;
}

.footer-social a:hover{
background:white;
color:#8f1d1d;
transform:scale(1.2);
}
/* FOOTER INFERIOR */
.footer-bottom{
position:relative;
z-index:2;

border-top:1px solid rgba(255,255,255,.25);

margin-top:40px;
padding-top:15px;

text-align:center;
font-size:13px;
}

/* RESPONSIVE */

@media(max-width:900px){

.footer-container{
grid-template-columns:1fr 1fr;
gap:40px;
}
}
@media(max-width:600px){
.footer-container{
grid-template-columns:1fr;
}
}
/* =============================
CARRUSEL SWIPER ESTILO SWIPEFLOW
============================= */
.mainSwiper{
width:85%;
max-width:1000px;
height:420px;

margin:60px auto;

overflow:hidden;
border-radius:30px;

}
/* slide */

.swiper-slide{

height:360px;

display:flex;
align-items:center;
justify-content:center;

border-radius:25px;
overflow:hidden;

transition:transform .6s ease, opacity .6s ease;

transform:scale(.85);

opacity:.5;

}

/* slide activo */

.swiper-slide-active{

transform:scale(1);

opacity:1;

}

/* imagen */

.swiper-slide img{

width:100%;
height:100%;

object-fit:cover;

border-radius:25px;

}

/* flechas */

.swiper-button-next,
.swiper-button-prev{

color:#ff6f00;

}

/* puntos */

.swiper-pagination-bullet{

background:#bbb;
opacity:.6;

}

.swiper-pagination-bullet-active{

background:#ff6f00;
opacity:1;

}
.semaforo{
  display:flex;
  gap:10px;
  margin:15px 0;
}

.circulo{
  width:25px;
  height:25px;
  border-radius:50%;
  background:#ccc;
}

.rojo.activo{
  background:red;
}

.amarillo.activo{
  background:yellow;
}

.verde.activo{
  background:green;
}
/* =========================
   AUTH PRO (DISEÑO MODERNO)
========================= */

.auth-content {
  background: #ffffff;
  width: 100%;
  max-width: 450px;
  padding: 35px 30px;
  border-radius: 18px;
  position: relative;
  animation: fadeIn 0.4s ease;

  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  border-top: 6px solid var(--color-institucional);
}

/* Tabs mejoradas */
.auth-tabs {
  display: flex;
  margin-bottom: 25px;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.tab-btn.active {
  background: var(--color-institucional);
  color: #fff;
}

/* Inputs PRO */
.auth-form input {
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: 0.3s;
}

.auth-form input:focus {
  border-color: var(--color-institucional);
  box-shadow: 0 0 8px rgba(142,36,170,0.3);
  outline: none;
}

/* Botón */
.auth-form button {
  background: linear-gradient(90deg,#8e24aa,#ff6f00);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.auth-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Mensaje error */
.input-error {
  border: 1px solid red !important;
}

.error-text {
  font-size: 12px;
  color: red;
  margin-bottom: 10px;
}

/* Reglas contraseña */
.password-rules {
  font-size: 12px;
  margin-bottom: 10px;
}

.password-rules span {
  display: block;
  color: #777;
}

.password-rules .valid {
  color: green;
}

.password-rules .invalid {
  color: red;
}
input::placeholder{
  font-size:12px;
  color:#999;
}
/* ===== FORMULARIO PERFIL ===== */

.form-perfil {
  max-width: 600px;
}

/* separacion */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

/* labels */
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

/* inputs */
.form-group input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* efecto focus */
.form-group input:focus {
  border-color: #7b2cbf;
  box-shadow: 0 0 0 2px rgba(123,44,191,0.15);
  outline: none;
}

/* disabled */
.form-group input:disabled {
  background-color: #f5f5f5;
  color: #777;
}

/* botones */
.form-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

/* boton editar */
.btn-primary {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #1e40af;
}

/* boton guardar */
.btn-success {
  background: #16a34a;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-success:hover {
  background: #15803d;
}
.bienestar-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.bienestar-card:active {
  transform: scale(0.97);
}
.estado-box{
  background: #fff3cd;
  color: #856404;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ffeeba;
  font-weight: bold;
  width: fit-content;
}

/* =========================
   LOGOS HEADER PRO 
========================= */
/* =========================
   LOGOS HEADER ELEGANTE 🔥
========================= */

.header-logos {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* LOGOS */
.header-logos img {
  height: 115px; /* más grande */
  object-fit: contain;
  transition: all .35s ease;
}

/* LOGO PRINCIPAL (SIN FONDO, LIMPIO) */
.header-logos img:first-child {
  height: 140px; /* protagonista */
  border-radius: 0; /* quitamos efecto círculo artificial */
  background: transparent;
}

/* HOVER SUAVE Y PROFESIONAL */
.header-logos img:hover {
  transform: translateY(-6px) scale(1.07);
}

/* EFECTO SUTIL SOLO AL PRINCIPAL */
.header-logos img:first-child:hover {
  transform: translateY(-8px) scale(1.1);
}
/* =========================
   HEADER PRO ANIMADO 🔥
========================= */

.header {
  background: linear-gradient(135deg, #ffffff, #f3e5f5);
  position: relative;
  overflow: hidden;
}

/* EFECTO DE LUZ SUAVE EN EL FONDO */
.header::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(142,36,170,0.15), transparent);
  top: -100px;
  left: -100px;
  animation: moveLight 8s infinite alternate ease-in-out;
}

@keyframes moveLight {
  0% { transform: translate(0,0); }
  100% { transform: translate(150px,100px); }
}

/* CONTENEDOR */
.header-container {
  position: relative;
  z-index: 2;
  padding: 25px 40px;
}

/* =========================
   LOGO
========================= */

.header-logos img {
  height: 130px;
  transition: all .4s ease;
}

.header-logos img:hover {
  transform: scale(1.08) rotate(-2deg);
}

/* =========================
   TEXTO PRINCIPAL
========================= */

.header-brand h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;

  background: linear-gradient(90deg,#8e24aa,#ff6f00,#2e7d32,#2962ff);
  background-size: 300%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: gradientMove 6s infinite linear;
}

/* SUBTITULO */
.header-brand span {
  font-size: 15px;
  color: #666;
  display: block;
  margin-top: 5px;
  animation: fadeIn 1.5s ease;
}

/* =========================
   BOTONES PRO
========================= */

.header-auth {
  display: flex;
  gap: 15px;
}

/* BOTÓN LOGIN */
.btn-login {
  border: 2px solid #8e24aa;
  background: transparent;
  color: #8e24aa;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  transition: all .3s ease;
}

.btn-login:hover {
  background: #8e24aa;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(142,36,170,0.3);
}

/* BOTÓN REGISTRO */
.btn-register {
  background: linear-gradient(135deg,#8e24aa,#ff6f00);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  border: none;
  transition: all .3s ease;
}

.btn-register:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* =========================
   EFECTO DE ENTRADA
========================= */

.header-logos,
.header-brand,
.header-auth {
  animation: fadeUp 1s ease;
}/* =========================
   FONDO GLOBAL CON VIDA 🌈
========================= */

body {
  background: linear-gradient(135deg,#f7f7f7,#f3e5f5,#e3f2fd);
  background-size: 400% 400%;
  animation: fondoMove 12s ease infinite;
}

@keyframes fondoMove {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* =========================
   BURBUJAS SUAVES (AMBIENTE)
========================= */

body::before,
body::after {
  content: "";
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142,36,170,0.15), transparent);
  z-index: 0;
  animation: float 10s infinite ease-in-out;
}

body::before {
  top: 10%;
  left: 5%;
}

body::after {
  bottom: 10%;
  right: 5%;
  animation-delay: 3s;
}

@keyframes float {
  0% {transform: translateY(0);}
  50% {transform: translateY(-30px);}
  100% {transform: translateY(0);}
}

/* =========================
   CONTENIDO ENCIMA
========================= */

.header,
.main-nav,
#app-content,
.footer {
  position: relative;
  z-index: 2;
}

/* =========================
   SECCIONES CON TARJETA PRO
========================= */

.section {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

/* =========================
   TITULOS MÁS VIVOS
========================= */

.section h2 {
  background: linear-gradient(90deg,#8e24aa,#ff6f00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================
   TARJETAS HOVER MÁS PRO
========================= */

.quick-card,
.portal-card,
.servicio-card {
  transition: all .4s ease;
}

.quick-card:hover,
.portal-card:hover,
.servicio-card:hover {
  transform: translateY(-10px) scale(1.03);
}

/* =========================
   EFECTO SUAVE EN NAV
========================= */

.main-nav {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.8);
}

/* =========================
   FOOTER CON GRADIENTE
========================= */

.footer {
  background: linear-gradient(135deg,#8e24aa,#ff6f00);
}

/* =========================
   ANIMACIÓN DE ENTRADA GLOBAL
========================= */

.section {
  animation: fadeUp 0.8s ease;
}
/* =========================
   HEADER CLICKABLE 🔥
========================= */

.header-link {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.header-link:hover {
  transform: scale(1.02);
}

.header-link:active {
  transform: scale(0.97);
}
#logoHome,
#tituloHome {
  cursor: pointer;
}
/* =========================
   HEADER ALINEACIÓN SIMPLE
========================= */

/* CONTENEDOR */
.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* CENTRAR EL TITULO */
.header-brand {
  text-align: center;
  justify-self: center;
}

/* BOTONES A LA DERECHA */
.header-auth {
  justify-self: end;
}
.header-container {
  gap: 20px;
}
.header-brand {
  width: 100%;
}
/* =========================
   HEADER MÁS VIVO 🔥
========================= */

/* partículas suaves */
.header::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,111,0,.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(142,36,170,.15), transparent 40%);
  animation: moveBg 10s ease infinite alternate;
  z-index:0;
}

@keyframes moveBg{
  0%{transform:translate(0,0)}
  100%{transform:translate(40px,20px)}
}

/* brillo animado en botones */
.btn-register::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.4),transparent);
  transform:translateX(-100%);
}

.btn-register:hover::before{
  transform:translateX(100%);
  transition:.6s;
}

/* sombra glow en logo */
.header-logos img{
  filter: drop-shadow(0 10px 20px rgba(142,36,170,.3));
}

/* efecto hover al título */
.header-brand:hover h1{
  transform:scale(1.05);
  transition:.3s;
}
.main-nav a::after{
  transition: width .3s ease, transform .3s ease;
}

.main-nav a.active::after{
  width:100%;
  transform:scaleX(1);
}
/* =========================
   HEADER EFECTOS PRO 🔥🔥🔥
========================= */

/* 🔮 Partículas flotantes */
.header::before,
.header::after{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  border-radius:50%;
  filter:blur(80px);
  opacity:.25;
  z-index:0;
}

.header::before{
  background:#8e24aa;
  top:-100px;
  left:-100px;
  animation: float1 10s ease-in-out infinite alternate;
}

.header::after{
  background:#ff6f00;
  bottom:-100px;
  right:-100px;
  animation: float2 12s ease-in-out infinite alternate;
}

@keyframes float1{
  0%{transform:translate(0,0)}
  100%{transform:translate(120px,60px)}
}

@keyframes float2{
  0%{transform:translate(0,0)}
  100%{transform:translate(-120px,-60px)}
}

/* =========================
   TITULO EFECTO BRILLO 🔥
========================= */

.header-brand h1{
  position:relative;
  overflow:hidden;
}

/* línea brillante que pasa */
.header-brand h1::after{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.6),transparent);
  animation: shine 4s infinite;
}

@keyframes shine{
  0%{left:-100%}
  100%{left:120%}
}

/* =========================
   BOTONES EFECTO GLASS + LUZ
========================= */

.btn-login,
.btn-register{
  position:relative;
  overflow:hidden;
  backdrop-filter: blur(6px);
}

/* brillo animado */
.btn-login::before,
.btn-register::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.4),transparent);
}

/* activar en hover */
.btn-login:hover::before,
.btn-register:hover::before{
  left:100%;
  transition:.6s;
}

/* efecto glow */
.btn-login:hover{
  box-shadow:0 0 15px rgba(142,36,170,.5);
}

.btn-register:hover{
  box-shadow:0 0 20px rgba(255,111,0,.6);
}

/* =========================
   LOGO EFECTO FLOTANTE
========================= */

.header-logos img{
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo{
  0%{transform:translateY(0)}
  50%{transform:translateY(-8px)}
  100%{transform:translateY(0)}
}

/* =========================
   EFECTO HOVER GLOBAL HEADER
========================= */

.header-container:hover .header-brand h1{
  letter-spacing:2px;
  transition:.3s;
}

/* =========================
   SOMBRA DINÁMICA
========================= */

.header{
  box-shadow:0 10px 40px rgba(0,0,0,.08);
  transition:.4s;
}

.header:hover{
  box-shadow:0 20px 60px rgba(0,0,0,.15);
}
.main-nav {
  position: relative;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg,#8e24aa,#ff6f00);
  border-radius: 10px;
  transition: all .35s cubic-bezier(.68,-0.55,.27,1.55);
}
/* =========================
   HEADER APPLE STYLE 🍎
========================= */

.header {
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* efecto scroll elegante */
.header.scrolled {
  padding: 10px 40px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
/* =========================
   SCROLL ANIMATION 🔥
========================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* =========================
   FIX MODAL REGISTRO 🔥
========================= */

.auth-content {
  max-height: 90vh;          /* 🔥 evita que se salga */
  overflow-y: auto;          /* scroll interno */
  padding-right: 10px;       /* espacio para scroll */
}

/* Scroll bonito */
.auth-content::-webkit-scrollbar {
  width: 6px;
}

.auth-content::-webkit-scrollbar-thumb {
  background: #8e24aa;
  border-radius: 10px;
}

/* Ajuste inputs */
.auth-form input {
  padding: 10px 12px;
  font-size: 13px;
}

/* Texto más compacto */
.auth-form h3 {
  font-size: 18px;
}

/* Aviso privacidad más chico */
.auth-form div {
  font-size: 12px;
  line-height: 1.4;
}

/* Botón más compacto */
.auth-form button {
  padding: 10px;
  font-size: 14px;
}
.auth-content {
  scrollbar-width: thin;
  scrollbar-color: #8e24aa transparent;
}
/* ===============================
   SOLICITAR 
================================ */

#formSolicitud {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  transition: .3s;
}

#formSolicitud:hover{
  transform: translateY(-5px);
}

/* BLOQUES */
#formSolicitud .form-group{
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: .3s;
}

#formSolicitud .form-group:hover{
  background: rgba(142,36,170,0.08);
}

/* CHECKBOX PRO */
#formSolicitud input[type="checkbox"]{
  accent-color: #8e24aa;
  transform: scale(1.2);
  cursor: pointer;
}

/* SUBMENUS */
#formSolicitud div[id^="submenu"]{
  background: #f8f4ff;
  border-left: 4px solid #8e24aa;
  padding: 12px;
  border-radius: 10px;
  margin-top: 10px;
  animation: fadeIn .3s ease;
}

/* TEXTAREAS */
#formSolicitud textarea{
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 10px;
  transition: .3s;
}

#formSolicitud textarea:focus{
  border-color:#8e24aa;
  box-shadow:0 0 8px rgba(142,36,170,.3);
}

/* BOTON PRO */
#formSolicitud .btn-denuncia{
  width:100%;
  background: linear-gradient(135deg,#8e24aa,#ff6f00);
  border:none;
  border-radius:12px;
  padding:14px;
  font-weight:bold;
  transition:.3s;
}

#formSolicitud .btn-denuncia:hover{
  transform:scale(1.05);
  box-shadow:0 10px 25px rgba(0,0,0,.2);
}

/* PREVIEW BOX 🔥 */
.preview-box{
  background:#ffffff;
  border-radius:12px;
  padding:15px;
  margin-top:20px;
  border:1px solid #ddd;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.preview-box h4{
  margin-bottom:10px;
  color:#8e24aa;
}
.card-historial {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  margin-top: 15px;
  border: 1px solid #ddd;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.card-historial p {
  margin: 5px 0 10px;
  color: #444;
}