*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* 🌊 FONDO */
body{
  background: linear-gradient(135deg, #4fc3f7, #0d47a1);
  overflow-x:hidden;
}

/* 🌊 OLAS SVG */
.waves{
  position:fixed;
  width:100%;
  height:100%;
  overflow:hidden;
  z-index:-2;
}

/* CAPA BASE */
.wave{
  position:absolute;
  width:200%;
  height:200%;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);

  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 70%);
  border-radius:40%;
}

/* CAPAS CON DIFERENTE VELOCIDAD */
.wave:nth-child(1){
  animation: waveRotate 25s linear infinite;
}

.wave:nth-child(2){
  animation: waveRotate 18s linear infinite reverse;
  opacity:0.6;
}

.wave:nth-child(3){
  animation: waveRotate 30s linear infinite;
  opacity:0.4;
}

@keyframes waveRotate{
  from{
    transform:translate(-50%, -50%) rotate(0deg);
  }
  to{
    transform:translate(-50%, -50%) rotate(360deg);
  }
}

#waterCanvas,
.glow-follow{
  z-index:-10;
}

/* 💎 GLASS */
header{
  position:fixed;
  width:100%;
  top:0;
  left:0;
  padding:15px 30px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  background: linear-gradient(
    to right,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0.05)
  );

  backdrop-filter: blur(25px);

  border-bottom:1px solid rgba(255,255,255,0.3);

  box-shadow: 0 8px 30px rgba(0,0,0,0.2);

  z-index:1000;
}

header{
  z-index:1500;
}

/* LOGO */
.logo-top{
  display:flex;
  align-items:center;
  gap:10px;
  color:white;
  font-weight:bold;
}

.logo-top img{
  width:40px;
}

/* NAV */
nav{
  display:flex;
  gap:20px;
}

nav a{
  color:white;
  text-decoration:none;
  transition:0.3s;
}

/* HOVER PRO */
nav a:hover{
  transform:scale(1.15);
  text-shadow:0 0 15px #4fc3f7, 0 0 30px #4fc3f7;
}

/* HAMBURGUESA */
/* OCULTO EN PC */
.menu-toggle{
  display:none;
  font-size:28px;
  color:white;
  cursor:pointer;
  z-index:3000;
}

/* 📱 MOSTRAR EN CELULAR */
@media(max-width:768px){

  .menu-toggle{
    display:block;
  }

  nav{
    position:absolute;
    top:70px;
    right:0;
    width:100%;
    background: rgba(0,0,0,0.9);

    flex-direction:column;
    display:none;
  }

  nav.active{
    display:flex;
  }

}

/* DASHBOARD */
.dashboard{
  margin-top:100px;
  margin-left:90px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap:20px;
  padding:20px;
}

/* TARJETAS */
.card{
  position:relative;
  height:150px;
  border-radius:20px;
  padding:20px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.05)
  );

  backdrop-filter: blur(25px);
  border:1px solid rgba(255,255,255,0.2);

  box-shadow:
    0 8px 32px rgba(0,0,0,0.25),
    inset 0 1px rgba(255,255,255,0.3);

  color:white;
  transition:0.4s;
}

/* REFLEJO */
.card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border-radius:20px;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.4),
    transparent 40%
  );
  opacity:0.3;
}

.card:hover{
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.4),
    0 0 20px rgba(79,195,247,0.4);
}

/* 📱 RESPONSIVE */
/* BASE */
nav{
  transition: all 0.4s ease;
}

/* 📱 MENU MOVIL */
@media(max-width:768px){

  nav{
    position:absolute;
    top:70px;
    right:0;
    width:100%;

    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(15px);

    flex-direction:column;

    /* 🔥 ESTADO OCULTO */
    opacity:0;
    transform: translateY(-20px);
    pointer-events:none;
  }

  /* 🔥 ESTADO ACTIVO */
  nav.active{
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
  }

}

@media(max-width:768px){

  nav a{
    padding:15px 0;
    color:white;
    text-align:center;

    opacity:0;
    transform: translateY(10px);
    transition:0.3s;
  }

  nav.active a{
    opacity:1;
    transform: translateY(0);
  }

  /* delay escalonado */
  nav.active a:nth-child(1){ transition-delay:0.1s; }
  nav.active a:nth-child(2){ transition-delay:0.2s; }
  nav.active a:nth-child(3){ transition-delay:0.3s; }
  nav.active a:nth-child(4){ transition-delay:0.4s; }
  nav.active a:nth-child(5){ transition-delay:0.5s; }

}

.menu-toggle{
  transition:0.3s;
}

.menu-toggle.active{
  transform:rotate(90deg);
}

.menu-toggle{
  position:relative;
  z-index:2000;
}


  .dashboard{
    margin-left:70px;
    grid-template-columns: 1fr;
  }


.dashboard{
  margin-top:110px;
  margin-left:100px;
  padding:30px;

  display:grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-auto-rows:180px;
  gap:25px;
}

/* TARJETA GRANDE */
.card.big{
  grid-column: span 2;
  grid-row: span 2;
}

@media(max-width:768px){

  .dashboard{
    margin-left:70px;
    grid-template-columns: 1fr;
    grid-auto-rows:140px;
  }

  .card.big{
    grid-column: span 1;
    grid-row: span 1;
  }
}

body::before{
  content:"";
  position:fixed;
  width:100%;
  height:100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.1),
    transparent,
    rgba(255,255,255,0.1)
  );
  animation: shimmer 8s infinite linear;
  z-index:-1;
}

@keyframes shimmer{
  from{ transform:translateX(-100%); }
  to{ transform:translateX(100%); }
}

#waterCanvas{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:-3;
}

.glow-follow{
  position:fixed;
  width:300px;
  height:300px;
  border-radius:50%;
  pointer-events:none;

  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
  mix-blend-mode: overlay;

  z-index:-1;
}

/* CONTENEDOR */
.hero{
  text-align:center;
  margin-top:120px;
  color:white;
}

/* BIENVENIDO */
.glow-title{
  font-size:clamp(24px, 5vw, 48px);
  font-weight:600;

  text-shadow:
    0 0 10px #4fc3f7,
    0 0 20px #4fc3f7,
    0 0 40px #4fc3f7;

  margin-bottom:10px;
}

/* SALVE MINISTERIOS */
.main-title{
  font-size:clamp(32px, 8vw, 80px);
  font-weight:800;

  background: linear-gradient(90deg, #ffffff, #4fc3f7);
  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  color: transparent;

  text-shadow:
    0 0 20px rgba(79,195,247,0.8),
    0 0 40px rgba(79,195,247,0.5);

  letter-spacing:2px;
}

@media(max-width:768px){

  .hero{
    margin-top:90px;
    padding:0 10px;
  }

  .glow-title{
    font-size:22px;
  }

  .main-title{
    font-size:34px;
    line-height:1.2;
  }

}

/* Forzar */
.glow-title{
  text-shadow:
    0 0 10px #4fc3f7,
    0 0 20px #4fc3f7,
    0 0 40px #4fc3f7 !important;
}

.main-title{
  text-shadow:
    0 0 20px rgba(79,195,247,0.8),
    0 0 40px rgba(79,195,247,0.5) !important;
}

/* Extra */
.main-title{
  background-size:200%;
  animation: shine 4s linear infinite;
}

@keyframes shine{
  0%{ background-position:0% }
  100%{ background-position:200% }
}

/* CARRUSEL */
.carousel{
  margin-top:30px;
  display:flex;
  justify-content:center;
}
.carousel-track{
  display:flex;
  gap:20px;

  max-width:1000px;   /* 👈 controla ancho */
  width:100%;

  overflow-x:auto;
  padding:10px;
}

.slide{
  min-width:300px;
  height:150px;
  border-radius:20px;

  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);

  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:20px;

  box-shadow:0 10px 30px rgba(0,0,0,0.3);
}

/* VERSICULO */
.versiculo{
  margin:50px auto;
  max-width:500px;

  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);

  border-radius:20px;
  padding:20px;

  text-align:center;
  color:white;

  box-shadow:0 10px 30px rgba(0,0,0,0.3);
}

/* 📱 RESPONSIVE */
@media(max-width:768px){

  .glow-title{
    font-size:28px;
  }

  .main-title{
    font-size:38px;
  }

  .slide{
    min-width:250px;
    height:120px;
  }

}

.slide{
  min-width:300px;
  height:200px;
  border-radius:20px;
  overflow:hidden;
  position:relative;

  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.1);

  transition:0.3s;
}

/* MEDIA */
.slide img,
.slide video{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* INFO */
.info{
  position:absolute;
  bottom:0;
  width:100%;
  padding:10px;

  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color:white;
}

/* HOVER */
.slide:hover{
  transform:scale(1.05);
}

.carousel-track{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-behavior:smooth;
}

@media(max-width:768px){

  .main-title{
    font-size:36px;
  }

  .glow-title{
    font-size:24px;
  }

  .slide{
    min-width:250px;
    height:160px;
  }

}

.home{
  margin-left:80px; /* espacio del sidebar */
}

@media(max-width:768px){
  .home{
    margin-left:60px;
  }
}

.carousel-track::-webkit-scrollbar{
  display:none;
}

.home{
  margin-left:80px;
  padding:20px;
}

@media(max-width:768px){
  .home{
    margin-left:60px;
    padding:10px;
  }
}

.menu-toggle{
  position:relative;
  z-index:5000;
}

/* 📱 TODO CENTRADO EN CELULAR */
@media(max-width:768px){

  body{
    overflow-x:hidden;
  }

  .home{
    margin-left:0 !important;
    padding:10px;
    text-align:center;
  }

}

@media(max-width:768px){

  .hero{
    text-align:center;
    margin-top:100px;
  }

  .main-title{
    font-size:34px;
  }

  .glow-title{
    font-size:24px;
  }

}

@media(max-width:768px){

  .carousel{
    display:flex;
    justify-content:center;
  }

  .carousel-track{
    justify-content:flex-start;
    padding-left:10px;
  }

  .slide{
    min-width:260px;
  }

}

@media(max-width:768px){

  .versiculo{
    margin:30px auto;
    max-width:90%;
    text-align:center;
  }

}

@media(max-width:768px){
  .home{
    margin-left:0 !important;
  }
}

/* CONTENEDOR FOOTER */
.footer{
  width:100%;
  margin-top:60px;
  padding:30px 20px;

  display:flex;
  justify-content:center;
  align-items:center;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);

  border-top:1px solid rgba(255,255,255,0.2);
}

/* TEXTO NORMAL */
.footer-text{
  color:white;
  font-size:14px;
  text-align:center;

  text-shadow:0 0 10px rgba(79,195,247,0.6);
}

/* REFLEJO */
.footer-reflection{
  color:white;
  font-size:14px;
  text-align:center;

  transform: scaleY(-1);
  opacity:0.25;

  margin-top:5px;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.4),
    transparent
  );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

/* FOOTER CELULAR */
@media(max-width:768px){

  .footer{
    padding:20px 10px;
  }

  .footer-text,
  .footer-reflection{
    font-size:12px;
  }

}

/* FOOTER EXTRA GLOW */
.footer-text{
  animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse{
  from{
    text-shadow:0 0 5px rgba(79,195,247,0.5);
  }
  to{
    text-shadow:0 0 20px rgba(79,195,247,1);
  }
}