/* ComeCampus Home 2026 - Estilos Stitch redesign
 * Coexiste con modern-design.css y ads.css
 */

/* Fuentes - usadas además de Tailwind */
.font-display { font-family: 'Plus Jakarta Sans', 'Public Sans', system-ui, sans-serif; }
.font-headline { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.font-body { font-family: 'Inter', system-ui, sans-serif; }

/* Gradient text para "campus" */
.cc-text-gradient {
  background: linear-gradient(135deg, #f57f00 0%, #ffbb00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Patrón punteado del hero */
.cc-dot-pattern {
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Blob animations */
@keyframes cc-blob {
  0%   { transform: translate(0px, 0px) scale(1); }
  33%  { transform: translate(30px, -50px) scale(1.1); }
  66%  { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}
.cc-animate-blob { animation: cc-blob 7s infinite; }
.cc-animation-delay-2000 { animation-delay: 2s; }

/* Header pill flotante (desktop) */
.cc-pill-nav {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 64rem;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 9999px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.cc-pill-nav.cc-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Cuando hay header pill, queremos ocultar el header viejo en home */
body.cc-home-2026 #header { display: none !important; }
body.cc-home-2026 main.pt-16, body.cc-home-2026 main.sm\:pt-20 { padding-top: 0 !important; }

/* Sin capa decorativa fija detrás del pill: el bg de cada hero ya llega
 * hasta el top:0 gracias a `pt-24 md:pt-28` en el propio <header>. */

/* En móvil sigue siendo píldora flotante (con margin lateral),
 * pero más compacta y con grid: spacer izq + logo centrado + hamburguesa dcha */
@media (max-width: 767px) {
  .cc-pill-nav {
    top: 0.75rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    width: auto;
    max-width: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
  }
  .cc-pill-nav.cc-scrolled {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* Asegurar que el footer NUNCA tape al pill flotante. El footer tiene
 * z-index: 999 inline en el HTML; el pill ahora va a 9999. */
body.cc-home-2026 footer { z-index: 1 !important; }

/* Fix imagen de las cards de cafetería al 50%
 * El JS image-fallback envuelve el <img class="cafeteria-image"> en un
 * <div class="image-container cafeteria-image-container"> que por defecto
 * es display: inline-block (en image-fallback.css). Forzamos block + 100%
 * solo cuando el contenedor es el wrapper directo del enlace de la card. */
a > .image-container.cafeteria-image-container {
  display: block;
  width: 100%;
  height: 100%;
}

/* Ítems del menú activo */
.cc-nav-item-active {
  color: #111827;
  font-weight: 700;
}
.cc-nav-item {
  color: #6b7280;
  font-weight: 500;
  transition: color 0.2s ease;
}
.cc-nav-item:hover { color: #111827; }

/* Mobile menu — flotante con bordes redondeados, integrado bajo el pill */
.cc-mobile-menu {
  position: fixed;
  top: 4.5rem;        /* justo debajo del pill (top 0.75rem + h-14 56px ≈ 4.25rem + gap) */
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 1.5rem;  /* rounded-3xl */
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
  z-index: 9998;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cc-mobile-menu.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

/* Ad slot wrapper - hidden si está vacío */
.cc-ad-slot:empty { display: none; }

/* Touch targets en móvil */
@media (max-width: 767px) {
  .cc-touch-target {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Card hover y rotación sutil bento */
.cc-bento-rotate-1 { transform: rotate(1deg); transition: transform 0.3s ease; }
.cc-bento-rotate-1:hover { transform: rotate(0); }
.cc-bento-rotate-neg-2 { transform: rotate(-2deg); transition: transform 0.3s ease; }
.cc-bento-rotate-neg-2:hover { transform: rotate(0); }
.cc-bento-rotate-3 { transform: rotate(3deg); transition: transform 0.3s ease; }
.cc-bento-rotate-3:hover { transform: rotate(0); }

/* Color brand custom (compat) */
.cc-bg-brand-500 { background-color: #f57f00; }
.cc-text-brand-500 { color: #f57f00; }
.cc-text-brand-600 { color: #e66b00; }
.cc-bg-brand-100 { background-color: #fff1d4; }
.cc-text-brand-300 { color: #ffc671; }

/* ---------------------------------------------------------
   Footer 2026 — Stitch redesign
   --------------------------------------------------------- */

.cc-footer-2026 {
  background: linear-gradient(135deg, #0f172a 0%, #111827 50%, #0f172a 100%);
  font-family: 'Inter', system-ui, sans-serif;
  color: #d1d5db;
  position: relative;
}

.cc-footer-pad {
  padding-top: 5rem;
  padding-bottom: 3rem;
}
@media (max-width: 767px) {
  .cc-footer-pad {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }
}

/* Tipografía */
.cc-font-display { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.cc-font-headline { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

/* CTA Card superior */
.cc-footer-cta {
  background: linear-gradient(to right, #111827, #000000);
}
.cc-footer-cta-btn {
  background: linear-gradient(135deg, #ffbb00 0%, #f57f00 100%);
  box-shadow: 0 0 20px rgba(245, 127, 0, 0.4);
  color: #1f2937;
}
.cc-footer-cta-btn:hover {
  box-shadow: 0 0 32px rgba(245, 127, 0, 0.55);
}

/* Headers ámbar */
.cc-footer-h3 {
  color: #fbbf24;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: 0.08em;
}

/* Links sutiles del footer */
.cc-footer-link {
  position: relative;
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
}
.cc-footer-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* Iconos sociales en círculo glass */
.cc-social-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cc-social-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.cc-social-icon--instagram:hover i {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Card glass de contacto */
.cc-footer-contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Botón outline contacto */
.cc-footer-contact-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}
.cc-footer-contact-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

/* Logo footer (asegura claridad sobre fondo oscuro) */
.cc-footer-logo {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* 3 dots naranjas pulsantes */
.cc-footer-dot {
  position: absolute;
  border-radius: 9999px;
  background-color: #f57f00;
  pointer-events: none;
  animation: cc-footer-pulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(245, 127, 0, 0.6));
}
.cc-footer-dot--1 {
  top: 20%; left: 6%;
  width: 8px; height: 8px;
  animation-delay: 0s;
}
.cc-footer-dot--2 {
  bottom: 30%; right: 8%;
  width: 10px; height: 10px;
  background-color: #ffbb00;
  animation-delay: 0.7s;
  animation-duration: 4s;
}
.cc-footer-dot--3 {
  top: 60%; left: 22%;
  width: 6px; height: 6px;
  background-color: #ffc671;
  animation-delay: 1.4s;
  animation-duration: 2.5s;
}
@keyframes cc-footer-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 0.3;  transform: scale(0.7); }
}

/* Responsive layout footer */
@media (max-width: 767px) {
  .cc-footer-cta {
    text-align: center;
  }
  .cc-footer-cta .cc-footer-cta-btn {
    width: 100%;
  }
  .cc-footer-2026 .flex.flex-wrap.items-center.gap-3 {
    justify-content: center;
  }
  .cc-footer-2026 address {
    text-align: left;
  }
}
