
/* ================================================================
   ICONOS LLAMATIVOS Y COLORIDOS DIFERENTES EN CADA TARJETA
   Se aplica sobre el diseño celeste-azul-verde actual
   ================================================================ */

/* 1. Biblioteca Virtual → Rosa-Magenta (muy llamativo) */
.crystal-card:nth-child(1) .icon-box {
  background: linear-gradient(135deg, #ec4899, #f43f5e) !important;
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.4) !important;
}

/* 2. Plataforma Educativa → Naranja brillante */
.crystal-card:nth-child(2) .icon-box {
  background: linear-gradient(135deg, #f97316, #fb923c) !important;
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4) !important;
}

/* 3. Bolsa de Trabajo → Verde lima eléctrico */
.crystal-card:nth-child(3) .icon-box {
  background: linear-gradient(135deg, #84cc16, #22c55e) !important;
  box-shadow: 0 15px 35px rgba(132, 204, 22, 0.4) !important;
}

/* 4. Programa de Becas → Amarillo dorado premium */
.crystal-card:nth-child(4) .icon-box {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 15px 35px rgba(251, 191, 36, 0.4) !important;
}

/* 5. Servicio Social (grande) → Morado elegante y llamativo */
.crystal-card.large:first-of-type .icon-box {
  background: linear-gradient(135deg, #a855f7, #d946ef) !important;
  box-shadow: 0 20px 45px rgba(168, 85, 247, 0.45) !important;
}

/* 6. Servicio Psicopedagógico (grande) → Turquesa brillante */
.crystal-card.large:last-of-type .icon-box {
  background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.45) !important;
}

/* Efecto extra al hover: brillo más fuerte */
.crystal-card:hover .icon-box {
  transform: scale(1.3) rotate(12deg) !important;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5) !important;
}

/* Iconos dentro siempre blancos y grandes */
.crystal-card .icon-box i,
.crystal-card .icon-box svg {
  color: white !important;
  font-size: 2.8rem !important;
}

/* Para las tarjetas grandes */
.crystal-card.large .icon-box i,
.crystal-card.large .icon-box svg {
  font-size: 3.5rem !important;
}


/* Brillo interno al hover */
.crystal-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s;
}

.crystal-card:hover::after {
  transform: translateX(100%);
}



/* ================================================================
   SOLUCIÓN: QUITAR EL "ENCAJONAMIENTO" Y RECUPERAR ANCHO COMPLETO
   ================================================================ */

/* Fuerza que la sección ocupe todo el ancho de la pantalla */
.services-crystal,
.services-premium {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important; /* truco mágico para salir del container padre */
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Si tienes un container muy estrecho dentro, elimínalo o libéralo */
.services-crystal .container,
.services-premium .container {
  max-width: 100% !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Las tarjetas grandes y el grid principal vuelven a usar el ancho completo */
.services-crystal .grid,
.services-crystal .flex {
  max-width: 100% !important;
}

/* Opcional: si usas Tailwind y tienes un <main> o <div> que limita el ancho */
main, body > div, .page, .wrapper {
  overflow-x: visible !important;
}

/* ====== MISIÓN, VISIÓN, VALORES – ESTILO PREMIUM CON COLORES SUAVES ====== */
.mission-section {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f7ff 0%, #dffdf5 50%, #e7f7ff 100%);
}

/* Fondo con imagen – ahora sí funciona */
.mission-section::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../images/valores.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Esto sí funciona bien */
  background-attachment: scroll; 
  /* Para simular fixed sin romper móviles */
  transform: scale(1.05);

  opacity: 0.28;
  filter: brightness(1.1) contrast(1.1);
  z-index: 1;
}

/* Contenedor general encima del fondo */
.mission-section > .container {
  position: relative;
  z-index: 10;
}

/* Caja de vidrio donde están las tarjetas */
.mission-section > .container > div.relative {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-radius: 36px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  padding: 2.8rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

/* ===== TARJETAS ===== */

.floating-card {
  border-radius: 28px;                  /* bordes más suaves */
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.55);

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  transition: all 0.45s ease;
}

/* Colores suaves y profesionales */
.floating-card[data-color="cyan"] .card-inner {
  background: linear-gradient(135deg, #a5f3fc, #5eead4);
}
.floating-card[data-color="magenta"] .card-inner {
  background: linear-gradient(135deg, #fbcfe8, #f9a8d4);
}
.floating-card[data-color="green"] .card-inner {
  background: linear-gradient(135deg, #bbf7d0, #86efac);
}
.floating-card[data-color="orange"] .card-inner {
  background: linear-gradient(135deg, #fed7aa, #fb923c);
}

/* Hover */
.floating-card:hover {
  transform: translateY(-18px) scale(1.04);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.28);
}

/* Icono circular estilo cristal */
.card-icon {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  font-size: 2.9rem;

  background: rgba(255, 255, 255, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  margin-bottom: 1.2rem;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: all 0.45s ease;
}

.floating-card:hover .card-icon {
  transform: scale(1.15);
}

/* Título elegante */
.mission-section h2 {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(to right, #0284c7, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .mission-section::before {
    opacity: 0.16;
  }

  .mission-section > .container > div.relative {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.8rem 1rem;

    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .floating-card {
    min-width: 260px;
    max-width: 280px;
    scroll-snap-align: center;
  }

  .card-icon {
    width: 75px !important;
    height: 75px !important;
    font-size: 2.2rem !important;
  }
}



/* ===== FOOTER ULTRA MODERNO 2025 – MODO CLARO PREMIUM (Celeste + Verde Lima) ===== */

:root {
  --primary: #00c3ff;       /* Celeste vibrante */
  --secondary: #00ff9d;     /* Verde lima neón */
  --accent: #0099ff;        /* Azul medio para detalles */
  --text: #0f2a3a;          /* Texto principal oscuro */
  --text-muted: #3a5f70;     /* Texto secundario más legible */
  --bg: #f8fdff;
  --glass: rgba(255, 255, 255, 0.78);
  --shadow: rgba(0, 195, 255, 0.22);
}

.ultra-footer {
  position: relative;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  margin-top: 120px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* === FONDO ABSTRACTO FUTURISTA ORDENADO === */
.ultra-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0,195,255,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0,255,157,0.10) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0,153,255,0.06) 0%, transparent 50%);
  pointer-events: none;
  animation: pulseGlow 20s infinite alternate;
}

.ultra-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(0,195,255,0.03) 80px,
      rgba(0,195,255,0.03) 81px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(0,255,157,0.03) 80px,
      rgba(0,255,157,0.03) 81px
    );
  pointer-events: none;
  opacity: 0.6;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

/* Ola superior elegante */
.ultra-footer .wave-top {
  position: absolute;
  top: -2px;
  left: 0;
  width: 200%;
  height: 160px;
  animation: waveMove 18s linear infinite;
}

.ultra-footer .wave-top path {
  fill: #ffffff;
}

@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Grid principal */
.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding: 120px 8% 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-column {
  opacity: 0;
  transform: translateY(50px);
}

/* Logo */
.footer-logo {
  height: 78px;
  filter: drop-shadow(0 12px 35px var(--shadow));
  transition: all 0.6s ease;
}

.footer-logo:hover {
  transform: translateY(-6px) scale(1.1);
  filter: drop-shadow(0 20px 50px rgba(0,195,255,0.4));
}

/* Títulos */
.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.footer-title::after {
 2;
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 70px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 6px;
}

/* Enlaces */
.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  transition: all 0.4s ease;
}

.footer-links-list a:hover {
  color: var(--primary);
  transform: translateX(20px);
  text-shadow: 0 5px 15px rgba(0,195,255,0.3);
}

.footer-links-list a::before {
  content: '→';
  color: var(--primary);
  font-weight: bold;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

.footer-links-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Contacto */
.footer-contact p {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.6;
  transition: all 0.4s ease;
}

.footer-contact p:hover {
  color: var(--text);
  transform: translateX(12px);
}

.footer-contact i {
  color: var(--primary);
  font-size: 1.2rem;
  width: 26px;
  text-align: center;
}

/* Newsletter */
.newsletter-title {
  margin: 36px 0 16px;
  font-weight: 600;
  color: var(--text);
}

.newsletter-form {
  display: flex;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 60px;
  overflow: hidden;
  border: 2px solid rgba(0,195,255,0.3);
  box-shadow: 0 12px 40px rgba(0,195,255,0.2);
  transition: all 0.5s ease;
}

.newsletter-form:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,195,255,0.35);
  border-color: var(--primary);
}

.newsletter-form input {
  flex: 1;
  padding: 20px 28px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.02rem;
}

.newsletter-form input::placeholder {
  color: #668899;
}

.newsletter-form button {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 6px 10px 6px 0;
  cursor: pointer;
  color: white;
  font-size: 1.4rem;
  transition: all 0.5s ease;
  box-shadow: 0 8px 25px rgba(0,195,255,0.4);
}

.newsletter-form button:hover {
  transform: scale(1.25) rotate(25deg);
  box-shadow: 0 0 35px rgba(0,195,255,0.7);
}

/* Bottom bar – AHORA 100% LEGIBLE */
.footer-bottom-bar {
  background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,1));
  backdrop-filter: blur(16px);
  padding: 32px 8%;
  border-top: 1px solid rgba(0,195,255,0.3);
  color: var(--text) !important;
  font-size: 1rem;
  font-weight: 500;
}

.footer-bottom-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright,
.legal-links a {
  color: var(--text) !important;
  font-weight: 500;
}

.legal-links a:hover {
  color: var(--primary) !important;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 70px; }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 70px;
    padding: 100px 6% 60px;
  }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

