/* -----------------------------
   ESTILOS MODERNOS - LimaCarPerú
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  scroll-behavior: smooth;
}

/* --- LOGO QUE DESAPARECE Y REAPARECE DESDE LA IZQUIERDA --- */
.logo img {
  height: 60px;
  width: auto;
  opacity: 0;
  transform: translateX(-40px);
  animation: logoCycle 6s ease-in-out infinite;
  transition: opacity 0.4s ease, transform 0.4s ease;
}


/* Animación: entra, se queda, desaparece y vuelve */
@keyframes logoCycle {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  10% {
    opacity: 1;
    transform: translateX(0);
  }
  60% {
    opacity: 1;
    transform: translateX(0);
  }
  75% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 0;
    transform: translateX(-40px);
  }
}

/* ---------------- NAVBAR ---------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 43, 91, 0.8);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #ffd700;
}

/* ---------------- HERO ---------------- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom right, rgba(0,43,91,0.7), rgba(0,43,91,0.4)), 
              url('campus.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.2rem;
  margin-top: 1rem;
  opacity: 0.9;
}

.hero .btn {
  margin-top: 1.5rem;
}

/* ---------------- BOTONES ---------------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ffb400);
  color: #002b5b;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* ---------------- SECCIONES ---------------- */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

h1, h2, h3 {
  font-weight: 700;
  color: #002b5b;
}

p {
  line-height: 1.7;
}

/* ---------------- TARJETAS ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: linear-gradient(to bottom right, #ffffff, #f5f7fa);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}

/* Aparece al hacer scroll */
.card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease-out;
}

.card:hover {
  transform: translateY(-10px) rotate3d(1,1,0,3deg);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* Imagen dentro de la tarjeta */
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}




/* ---------------- CONTACTO ---------------- */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s;
}

input:focus, textarea:focus {
  border-color: #002b5b;
  outline: none;
}

/* ---------------- FOOTER ---------------- */
footer {
  background: linear-gradient(135deg, #002b5b, #001a3d);
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.95rem;
}

/* ---------------- REDES SOCIALES ---------------- */
/* --- REDES SOCIALES CON COLORES DE MARCA --- */
.social {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

/* Estilo base */
.social a {
  color: white;
  font-size: 1.4rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

/* Colores individuales */
.social a.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.social a.facebook {
  background: linear-gradient(135deg, #1877F2, #145dbf);
}

.social a.tiktok {
  background: linear-gradient(135deg, #000000, #1a1a1a);
  position: relative;
}

/* Pequeño toque de color TikTok */
.social a.tiktok::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2ea, #ff0050);
  z-index: -1;
}

/* Hover elegante */
.social a:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- INSTAGRAM CON FONDO DEGRADADO VISIBLE --- */
.social a.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: white;
  font-size: 1.4rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}

/* Hover con animación de brillo */
.social a.instagram:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  filter: brightness(1.2);
}


/* --- CARRUSEL EN HERO --- */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slides {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slideShow 15s infinite;
}

.slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: transform 1s ease-in-out;
  filter: brightness(1);
}

/* --- CARRUSEL AUTOMÁTICO RESPONSIVO --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  overflow: hidden;
  color: white;
  text-align: center;
  background: #001a3d;
}

.carousel {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  animation: slideShow 15s infinite;
}

.slide {
  flex-shrink: 0;
  width: 100%;
  height: auto;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
}

/* --- CARRUSEL CON FLECHAS MODERNAS --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: white;
  text-align: center;
  background: #001a3d;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1);
}

/* Flechas de navegación */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.3s, transform 0.3s;
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.arrow.prev {
  left: 20px;
}

.arrow.next {
  right: 20px;
}

/* Texto sobre las imágenes */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 90%;
  max-width: 800px;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

.hero-text p {
  font-size: 1.2rem;
  margin-top: 1rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .carousel-item::before,
  .slide::before {
    background: transparent !important;
    filter: none !important;
  }
}

/* --- NAVBAR MODERNA --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 43, 91, 0.85);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Logo */
.logo img {
  height: 55px;
  width: auto;
}

/* Links */
.nav-links ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

/* Subrayado animado */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #ffd700;
}

/* --- Botón Hamburguesa --- */
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  display: none;
  transition: transform 0.3s ease;
}

.menu-toggle.active {
  transform: rotate(90deg);
}

/* --- Modo Móvil --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 70%;
    max-width: 300px;
    background: rgba(0,43,91,0.95);
    backdrop-filter: blur(10px);
    height: 0;
    overflow: hidden;
    border-radius: 0 0 0 10px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    transition: height 0.4s ease;
  }

  .nav-links.open {
    height: 260px;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .nav-links a {
    font-size: 1rem;
    width: 100%;
  }
}
/* --- MODAL PROMOCIONAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 2000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: scale(0.8);
  transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-img {
  width: 100%;
  height: auto;
  display: block;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  color: #002b5b;
  font-size: 1.4rem;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.close-modal:hover {
  background: #ffd700;
  color: #001a3d;
  transform: rotate(90deg);
}

@media (max-width: 480px) {
  .modal-content {
    max-width: 320px;
  }
}

/* --- ENLACE AL SISTEMA (COLABORADORES) PERFECTAMENTE ALINEADO --- */
.menu-colab {
  display: flex;
  align-items: center;
  height: 100%;
}

.menu-colab a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #ffd700;
  background: transparent;
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
  position: relative;
  top: 1px; /* microajuste visual */
}

.menu-colab a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.1);
}

/* Alineación perfecta dentro de la lista */
.nav-links ul {
  display: flex;
  align-items: center;
}

/* En móvil */
@media (max-width: 768px) {
  .menu-colab a {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    top: 0;
  }
}

/* --- CONTACTO MODERNO CON TARJETAS DE SEDES --- */
.contact {
  text-align: center;
  background: linear-gradient(135deg, #f9f9f9, #eaf2ff);
  padding-bottom: 4rem;
}

.contact p {
  margin-bottom: 2rem;
  color: #444;
}

.sede-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.sede-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  padding: 2rem;
  width: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sede-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.sede-card h3 {
  color: #002b5b;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sede-card p {
  color: #555;
  margin-bottom: 1.5rem;
}

/* Botón de WhatsApp */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  background: linear-gradient(135deg, #25d366, #128c7e);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-whatsapp i {
  font-size: 1.2rem;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Botón de Waze */
.btn-waze {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #33ccff;
  color: white;
  font-size: 1.4rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-left: 0.8rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-waze:hover {
  background: #0099cc;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .sede-container {
    flex-direction: column;
    align-items: center;
  }
}

/* --- BOTÓN FLOTANTE DE WHATSAPP (CON LATIDO) --- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  z-index: 1500;
  text-decoration: none;
  animation: pulse 2.5s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  text-decoration: none;
}

/* Animación de latido */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
  }
}

/* --- BOTONES ADQUIRIR CON DEGRADADOS Y ANIMACIÓN --- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: all 0.4s ease;
  background-size: 200% auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Animación de brillo degradado */
.btn:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Botón amarillo (BÁSICO) */
.btn-basico {
  background-image: linear-gradient(135deg, #FFD700, #FFB400);
}

/* Botón naranja (COMPLETO) */
.btn-completo {
  background-image: linear-gradient(135deg, #FF7E00, #FFB347);
}

/* Botón verde (FULL) */
.btn-full {
  background-image: linear-gradient(135deg, #00C851, #007E33);
}

/* --- SECCIÓN ADMISION (REVISADA, NOMBRES ÚNICOS) --- */
.admision {
  position: relative;
  background: linear-gradient(135deg, #002b5b, #004aad);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  overflow: hidden;
}

/* Fondo animado */
.admision::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent 70%);
  animation: admision_lightMove 10s linear infinite;
}

@keyframes admision_lightMove {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- EFECTO CONSTANTE DE APARICIÓN (NOMBRE ÚNICO) --- */
.loop-title,
.loop-text {
  opacity: 0;
  animation: admision_fadeLoop 8s ease-in-out infinite;
}

@keyframes admision_fadeLoop {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 1; transform: translateY(0); }
  60% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* --- TÍTULO CON EFECTO DORADO ANIMADO (NOMBRE ÚNICO) --- */
.loop-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  /* degradado animado en el texto */
  background: linear-gradient(270deg, #FFD700, #FFB400, #FFD700);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: admision_fadeLoop 8s ease-in-out infinite, admision_shineText 4s linear infinite;
}

@keyframes admision_shineText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.loop-title span {
  color: #FFD700;
}

/* --- TEXTO --- */
.loop-text {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  color: #f1f1f1;
}

/* --- BOTÓN --- */
.btn-admision {
  background-image: linear-gradient(135deg, #FFD700, #FFB400);
  color: #002b5b;
  font-weight: bold;
  border-radius: 50px;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  animation: admision_pulseBtn 2.5s infinite ease-in-out 2s;
}

.btn-admision:hover {
  background-image: linear-gradient(135deg, #FFB400, #FFD700);
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

@keyframes admision_pulseBtn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .loop-title { font-size: 2.2rem; }
  .loop-text { font-size: 1rem; }
}


/* --- SECCIÓN NOSOTROS CON FONDO Y EFECTO TIPO "GARANTÍA" --- */
.nosotros {
  position: relative;
  background: linear-gradient(135deg, #001f3f, #004aad); /* azul profundo con degradado */
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  overflow: hidden;
}

/* Fondo animado sutil */
.nosotros::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 70%);
  animation: moveLight 12s linear infinite;
}

@keyframes moveLight {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Contenido */
.nosotros-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInNosotros 1.5s ease-out;
}

.nosotros h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
}

.nosotros h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #00aaff);
  margin: 0.5rem auto 1.5rem auto;
  border-radius: 4px;
}

/* Texto */
.nosotros p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #f1f1f1;
  text-align: justify;
  padding: 0 1rem;
}

/* Marca resaltada */
.nosotros .marca {
  background: linear-gradient(135deg, #FFD700, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Animación de aparición */
@keyframes fadeInNosotros {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .nosotros h2 { font-size: 2rem; }
  .nosotros p { font-size: 1rem; }
}

/* --- HEADER --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 43, 91, 0.97);
  backdrop-filter: blur(6px);
  padding: 0.6rem 2rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* --- LOGO --- */
.logo img {
  height: 50px;
  transition: transform 0.4s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* --- MENÚ PRINCIPAL --- */
.nav-links ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFD700;
}

/* --- ICONO INTRANET --- */
.menu-colab a {
  font-size: 1.3rem;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.menu-colab a:hover {
  transform: scale(1.2);
}

/* --- MENÚ DESPLEGABLE --- */
.dropdown {
  position: relative;
}

.dropbtn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.dropdown:hover i {
  transform: rotate(180deg);
}

/* Contenido del dropdown */
.nav-links .dropdown-content { /* específica */
  display: none;
  position: absolute;
  background: #fff;
  min-width: 230px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 8px;
  top: 100%;
  left: 0;
  overflow: hidden;
  animation: fadeDown 0.4s ease;
}

/* Animación suave al abrir */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ítems del dropdown */
.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  display: block;
  padding: 0.8rem 1rem;
  color: #002b5b;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
  background: linear-gradient(90deg, #004aad, #002b5b);
  color: #FFD700;
}

/* Mostrar dropdown al pasar el mouse */
.dropdown:hover .dropdown-content {
  display: block;
}

/* ===============================
   MENÚ CORREGIDO Y RESPONSIVO
=============================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 43, 91, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.logo img {
  height: 55px;
  width: auto;
}

/* Botón hamburguesa */
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
}

/* Navegación */
.nav-links ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffd700;
}

/* Dropdown (Escritorio) */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  min-width: 220px;
  overflow: hidden;
}

.dropdown-content a {
  color: #002b5b;
  padding: 0.8rem 1rem;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  background: #002b5b;
  color: #ffd700;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Intranet */
.menu-colab a {
  color: #ffd700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.menu-colab a:hover {
  transform: scale(1.2);
  background: rgba(255,255,255,0.15);
}

/* --- Versión móvil --- */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(0, 43, 91, 0.98);
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 1rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  .dropdown-content {
    position: static;
    display: none;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    width: 100%;
  }

  .dropdown-content.show-dropdown {
    display: block;
  }

  .dropdown-content a {
    padding-left: 2rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .dropdown.active .dropbtn i {
    transform: rotate(180deg);
  }

  .menu-colab {
    margin-top: 0.5rem;
  }

  .menu-colab a {
    color: #ffd700;
    background: rgba(255,255,255,0.1);
    width: 42px;
    height: 42px;
  }

  .dropdown:hover .dropdown-content {
    display: none; /* evita hover en móvil */
  }
}

/* --- Corrección visual del botón Intranet --- */
.menu-colab a {
  background: rgba(255,255,255,0.15);
  color: #FFD700 !important;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-colab a:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}


.dropdown-content.show-dropdown {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 0.3rem 0;
}

/* --- SUBMENÚ QUE EXPANDE EL MENÚ EN MÓVIL --- */
@media (max-width: 900px) {
  .nav-links {
    overflow: visible !important;
  }

  /* Elimina posición absoluta del submenú */
  .dropdown-content {
    position: static !important;
    display: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin-top: 0.2rem;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }

  /* Al abrir, el menú crece con animación */
  .dropdown-content.show-dropdown {
    display: block;
    max-height: 500px;
    opacity: 1;
  }

  .dropdown-content a {
    display: block;
    padding: 0.7rem 1rem 0.7rem 2rem;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: transparent;
  }

  .dropdown-content a:hover {
    background: rgba(255,255,255,0.15);
    color: #FFD700 !important;
  }

  .dropdown.active .dropbtn {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
  }
}

/* --- CORRECCIÓN VISUAL PARA CARRUSEL CON <picture> --- */
.slide {
  width: 100%;
  display: none;
}

.slide.active {
  display: block;
}

.carousel picture,
.carousel-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .carousel {
    background: #000;
  }

  .carousel picture,
  .carousel-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
  }
}

/* --- SECCIÓN BENEFICIOS (ajustada para móvil) --- */
.beneficios {
  background: linear-gradient(135deg, #001a33 0%, #003366 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.beneficios h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #FFD700;
  animation: fadeInDown 1s ease forwards;
}

/* Contenedor de la lista */
.beneficios-list {
  max-width: 900px;
  margin: 0 auto;
}

.beneficios-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.beneficios-list li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s ease forwards;
}

/* Animaciones básicas */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Fondo animado sutil */
.beneficios::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: moveGlow 18s linear infinite;
}

@keyframes moveGlow {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(40px,40px); }
}

/* --- MÓVIL --- */
@media (max-width: 768px) {
  .beneficios {
    text-align: center;
    padding: 3rem 1.2rem;
  }

  .beneficios h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .beneficios-list li {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
  }
}

/* --- CORRECCIÓN SECCIÓN SERVICIOS EN MÓVIL --- */
@media (max-width: 768px) {
  #Servicios {
    padding: 3rem 1rem;
  }

  #Servicios h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .cards {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .card {
    width: 90%;
    max-width: 360px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
  }

  .card img {
    width: 100%;
    height: auto;
  }

  .card h3 {
    font-size: 1.2rem;
    margin-top: 0.8rem;
  }

  .card p {
    margin: 0.8rem 0 1rem 0;
    text-align: center !important;
  }

  .card .btn {
    margin: 0 auto;
    display: inline-block;
  }
}

/* --- FOOTER FINAL CORPORATIVO --- */
.footer-final {
  background: linear-gradient(135deg, #001a33 0%, #000d1a 100%);
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}

.footer-final-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-top {
  margin-bottom: 1rem;
}

.footer-brand {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.footer-webmaster span {
  color: #FFD700;
  font-weight: 500;
}

.footer-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.footer-cards img {
  height: 30px;
  width: auto;
  filter:  brightness(0.7);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-cards img:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}

.footer-links {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin: 0 0.3rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FFD700;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
  .footer-cards {
    gap: 1rem;
  }

  .footer-cards img {
    height: 24px;
  }

  .footer-links {
    font-size: 0.85rem;
  }
}

/* --- EFECTO DE BRILLO SUAVE EN EL FOOTER --- */
.footer-final {
  position: relative;
  overflow: hidden;
}

.footer-final::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 215, 0, 0.07) 0%,
    transparent 70%
  );
  animation: footerGlow 18s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes footerGlow {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, 30px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* asegura que el contenido esté encima del brillo */
.footer-final-container {
  position: relative;
  z-index: 1;
}

/* --- ANIMACIÓN DORADA EN ENLACES DEL FOOTER --- */
.footer-links a {
  color: #ccc;
  position: relative;
  text-decoration: none;
  font-weight: 500;
  padding: 0 4px;
  transition: color 0.3s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #FFD700;
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a:hover::after {
  width: 100%;
}




/* PANEL QUE SALE DESDE EL BOTÓN DE WHATSAPP */
.whatsapp-sidebar {
  position: fixed;
  bottom: 90px; /* altura del botón que late */
  right: -340px; /* oculto */
  width: 300px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 0 18px rgba(0,0,0,0.28);
  transition: right .35s ease;
  z-index: 3000;
}

/* Abierto */
.whatsapp-sidebar.active {
  right: 20px;
}

/* Ocultar el botón de WhatsApp cuando se abre */
.whatsapp-float.hide-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

/* Header */
.ws-header {
  background: #25d366;
  color: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 14px 0 0 0;
  font-weight: 600;
}

/* X animada */
.ws-close {
  background: rgba(255,255,255,0.65);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease;
}

.ws-close:hover {
  transform: rotate(90deg);
  background: #ffd700;
  color: #002b5b;
}

/* Cuerpo */
.ws-body {
  padding: 1rem;
}

/* Tarjetas animadas */
.ws-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255,255,255,0.7);
  padding: 0.9rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: fadeInUp .5s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hover mejorado */
.ws-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);
}

/* Imagen */
.ws-item img {
  width: 52px;
  height: 52px;
  border-radius: 50%;   /* aquí está la magia */
  object-fit: cover;
  border: 2px solid rgba(0,0,0,0.08); /* borde suave opcional */
  transition: border .25s ease;
}

/* Cuando haces hover en la tarjeta */
.ws-item:hover img {
  border: 2px solid #ffffff;
}

/* HOVER EN COLORES WHATSAPP */
.ws-item:hover {
  background: #25d366;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

/* Texto se vuelve blanco al hacer hover */
.ws-item:hover h4,
.ws-item:hover p {
  color: #ffffff;
}

/* Imagen con un sutil borde blanco para que no desaparezca en el verde */
.ws-item:hover img {
  border: 2px solid #ffffff;
}

/* Efecto de pulso alrededor del círculo */
.ws-item img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,0,0,0.08);
  transition: border .25s ease;
  position: relative;
  z-index: 2;
}

/* Imagen redonda sin sombra */
.ws-item img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border .25s ease;
  position: relative;
  z-index: 2;
}

/* Contenedor */
.ws-item {
  position: relative;
}

/* HALO reducido */
.ws-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.55;
  z-index: 1;
  animation: pulseSmall 1.5s infinite ease-in-out;
}

/* Pulso más pequeño: casi un latido fino */
@keyframes pulseSmall {
  0%   { transform: translateY(-50%) scale(1); opacity: .55; }
  50%  { transform: translateY(-50%) scale(1.15); opacity: .30; }
  100% { transform: translateY(-50%) scale(1); opacity: .55; }
}

/* Hover */
.ws-item:hover img {
  border: 2px solid #ffffff;
}
