/* =========================================
   1. CONFIGURACIÓN GENERAL Y LAYOUT
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar { width: 0px; background: transparent; }
*:hover { scrollbar-width: thin; scrollbar-color: #d4af37 #0a0a0a; }
*:hover::-webkit-scrollbar { width: 8px; }
*:hover::-webkit-scrollbar-track { background: #0a0a0a; }
*:hover::-webkit-scrollbar-thumb { background-color: #d4af37; border-radius: 4px; }
*:hover::-webkit-scrollbar-thumb:hover { background-color: #b8941f; }

@font-face {
  font-family: "Tempus Sans ITC";
  src: local("Tempus Sans ITC");
}

body {
  font-family: "Tempus Sans ITC", "Montserrat", "Segoe UI", "Arial", sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #0a0a0a;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Tempus Sans ITC", "Poppins", "Segoe UI", "Arial", sans-serif;
  font-weight: 700;
  color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.btn-primary {
  display: inline-block;
  background-color: #d4af37;
  color: #000000;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: #b8941f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.section-title {
  font-family: "Tempus Sans ITC", "Playfair Display", serif;
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #d4af37;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #d4af37;
}

.section-description {
  text-align: center;
  margin-bottom: 2rem;
  color: #cccccc;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   2. REDISEÑO NAVBAR
   ========================================= */
.navbar {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  height: 90px;
}

.logo a {
  display: flex;
  align-items: center;
}

/* Nuevos estilos para resaltar el logo */
.siku-main-logo {
  height: 75px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo a:hover .siku-main-logo {
  transform: scale(1.1) rotate(-2deg);
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
}
/* =========================================
   EFECTO HOVER COLORIDO (LOGO MIT & COOK)
   ========================================= */

/* Estado inicial: Todo en blanco */
.nav-links a {
    color: #ffffff !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
}

.nav-links i {
    color: #ffffff !important; /* Iconos blancos por defecto */
    margin-right: 8px;
    transition: all 0.4s ease;
}

/* 1. HOVER INICIO -> Rojo */
.nav-links li:nth-child(1) a:hover { 
    color: #A81C21 !important; 
    text-shadow: 0 0 15px rgba(168, 28, 33, 0.4);
}
.nav-links li:nth-child(1) a:hover i { 
    color: #A81C21 !important; 
    transform: scale(1.2) rotate(-5deg); 
}

/* 2. HOVER RESTAURANTES -> Mostaza */
.nav-links li:nth-child(2) a:hover { 
    color: #D39523 !important; 
    text-shadow: 0 0 15px rgba(211, 149, 35, 0.4);
}
.nav-links li:nth-child(2) a:hover i { 
    color: #D39523 !important; 
    transform: scale(1.2) rotate(-5deg); 
}

/* 3. HOVER HISTORIA -> Verde Oliva */
.nav-links li:nth-child(3) a:hover { 
    color: #558757 !important; 
    text-shadow: 0 0 15px rgba(85, 135, 87, 0.4);
}
.nav-links li:nth-child(3) a:hover i { 
    color: #558757 !important; 
    transform: scale(1.2) rotate(-5deg); 
}

/* 4. HOVER CONTACTO -> Verde Azulado (Cian) */
.nav-links li:nth-child(4) a:hover { 
    color: #176C78 !important; 
    text-shadow: 0 0 15px rgba(23, 108, 120, 0.4);
}
.nav-links li:nth-child(4) a:hover i { 
    color: #176C78 !important; 
    transform: scale(1.2) rotate(-5deg); 
} 

.nav-links { display: flex; }
.nav-links li { margin-left: 2rem; }
.nav-links a { color: #ffffff; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: #d4af37; }
.nav-links i { margin-right: 5px; color: #ffffff; }

.burger { display: none; cursor: pointer; }
.burger div {
  width: 25px; height: 3px; background-color: #ffffff; margin: 5px; transition: all 0.3s ease;
}

/* =========================================
   3. REDISEÑO HERO SECTION
   ========================================= */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-color: #0a0a0a;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 1));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInScale 1.2s ease-out;
}

.hero-title {
  font-family: "Tempus Sans ITC", "Playfair Display", serif;
  font-size: 5.5rem;
  letter-spacing: -1px;
  background: linear-gradient(to bottom, #ffffff, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  text-shadow: none; /* Quitamos la sombra antigua por el gradiente */
}

.hero-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #cccccc;
  margin-bottom: 1rem;
}

/* --- BLOQUE DE COLABORACIÓN --- */
.collaboration-box {
  margin: 30px 0 40px 0;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(5px);
  opacity: 0;
  animation: fadeInUp 1s forwards 0.8s;
}

.collab-text {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
}

.collab-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.collab-icon {
  height: 70px;
  width: auto;
  filter: grayscale(100%) brightness(150%);
  transition: all 0.4s ease;
}

.collab-icon:hover {
  filter: grayscale(0%) brightness(100%);
  transform: translateY(-5px);
}

.collab-divider {
  width: 1px;
  height: 40px;
  background: rgba(212, 175, 55, 0.4);
}

/* Animaciones */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cambioFondo {
  0% { background-image: url("./img/iglesia.jpg"); }
  33% { background-image: url("./img/iglesia2.jpg"); }
  66% { background-image: url("./img/yaruq.jpg"); }
  100% { background-image: url("./img/iglesia.jpg"); }
}

#inicio.hero {
  height: 90vh;
  animation: cambioFondo 15s infinite;
}

/* =========================================
   4. RESTO DE SECCIONES
   ========================================= */
.motivational { padding: 4rem 0; background-color: #0a0a0a; }
.motivational .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.motivational-card {
  flex: 0 0 calc(33.333% - 20px);
  background-color: #1a1a1a; padding: 2rem; border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); margin-bottom: 20px;
  text-align: center; border: 1px solid #333;
}
.motivational-card i { font-size: 2rem; color: #d4af37; margin-bottom: 1rem; }
.motivational-card h3 { font-family: "Tempus Sans ITC", "Playfair Display", serif; font-size: 1.5rem; margin-bottom: 1rem; color: #ffffff; }
.motivational-card p { font-style: normal; color: #cccccc; }

.about { padding: 4rem 0; background-color: #0a0a0a; }
.about-content { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
/* =========================================
   ANIMACIÓN DE BORDE "RGB" ESTILO MIT & COOK
   ========================================= */

@keyframes rgbMitCook {
    0%   { border-color: #A81C21; box-shadow: 0 0 18px rgba(168, 28, 33, 0.5); } /* Rojo */
    25%  { border-color: #D39523; box-shadow: 0 0 18px rgba(211, 149, 35, 0.5); } /* Mostaza */
    50%  { border-color: #558757; box-shadow: 0 0 18px rgba(85, 135, 87, 0.5); } /* Verde */
    75%  { border-color: #176C78; box-shadow: 0 0 18px rgba(23, 108, 120, 0.5); } /* Cian */
    100% { border-color: #A81C21; box-shadow: 0 0 18px rgba(168, 28, 33, 0.5); } /* Vuelve a Rojo */
}

/* Modifica tu clase .about-image para agregarle la animación */
.about-image {
    flex: 1; 
    min-width: 300px; 
    border-radius: 8px; 
    overflow: hidden;
    
    /* Le ponemos el color rojo como base por si falla la animación */
    border: 2px solid #A81C21; 
    
    /* Agregamos la animación: dura 8 segundos, es infinita y suave */
    animation: rgbMitCook 8s linear infinite; 
}
.about-image img, .about-image iframe { width: 100%; height: auto; object-fit: cover; }
.about-text { flex: 1; min-width: 300px; }
.about-text p { margin-bottom: 1rem; color: #cccccc; }

.contact {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
}
.contact::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.contact .section-title { font-size: 3rem; color: #d4af37; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }
.contact .section-title::after { width: 100px; background: linear-gradient(90deg, transparent, #d4af37, transparent); }
.contact .section-description { font-size: 1.2rem; margin-bottom: 3rem; font-weight: 300; }
.contact-container { display: flex; flex-wrap: wrap; gap: 40px; position: relative; z-index: 1; }

.contact-info, .contact-form {
  flex: 1; min-width: 300px; background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  padding: 2.5rem; border-radius: 15px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  border: 2px solid #d4af37; position: relative; overflow: hidden;
}

.contact-info::before {
  content: ""; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, #d4af37, #b8941f, #d4af37, #b8941f);
  border-radius: 15px; z-index: -1; animation: borderGlow 3s ease-in-out infinite alternate;
}
@keyframes borderGlow { 0% { opacity: 0.5; } 100% { opacity: 1; } }

.info-item {
  display: flex; align-items: center; margin-bottom: 2rem; padding: 1rem;
  border-radius: 10px; transition: all 0.3s ease;
  background: rgba(212, 175, 55, 0.05); border-left: 4px solid #d4af37;
}
.info-item:hover { background: rgba(212, 175, 55, 0.1); transform: translateX(5px); }
.info-item i { font-size: 1.8rem; color: #d4af37; margin-right: 1.5rem; text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }

.contact-form { border: 2px solid #333; }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 1rem 1.5rem; background: rgba(0, 0, 0, 0.3);
  border: 2px solid #333; border-radius: 10px; color: #ffffff;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: #d4af37; background: rgba(212, 175, 55, 0.05);
}
.contact-form .btn-primary { width: 100%; background: linear-gradient(145deg, #d4af37, #b8941f); }

/* =========================================
   5. FOOTER Y EXTRAS
   ========================================= */
.footer { background-color: #0a0a0a; color: #fff; padding: 4rem 0 2rem; border-top: 1px solid #333; }
.footer-content { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 2rem; }
.footer-logo { flex: 1; min-width: 250px; }
.footer-logo h3, .footer-links h4 { font-size: 1.5rem; margin-bottom: 1rem; color: #d4af37; }
.footer-links { flex: 1; min-width: 250px; }
.footer-links ul li a { color: #cccccc; transition: color 0.3s ease; }
.footer-links ul li a:hover { color: #d4af37; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #444; }

.context-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); 
}

@keyframes pulseGold {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.chat-toggle.attention {
    animation: pulseGold 2s infinite;
    border: 2px solid #d4af37;
}   
.contador-footer {
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
  margin-top: 5px;
}

.nav-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px); 
    background-color: rgba(0, 0, 0, 0.9);
    color: #d4af37; 
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid #d4af37;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 99999; 
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    pointer-events: none;
}

.nav-toast.active {
    transform: translateX(-50%) translateY(0);
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); border-color: #d4af37; transform: scale(1); }
    50% { box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.5); border-color: #fff; transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); border-color: #d4af37; transform: scale(1); }
}

.menu-item-simple.highlighted {
    animation: highlightPulse 1.5s infinite;
    background-color: rgba(212, 175, 55, 0.1) !important;
    border: 2px solid #d4af37 !important;
    position: relative;
    z-index: 10;
}

.social-links-container {
    margin-top: 30px; 
    padding-top: 20px;
    border-top: 1px solid #333; 
    text-align: center;
}

.social-title {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: "Tempus Sans ITC", serif;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px; 
}

.social-btn {
    width: 45px;
    height: 45px;
    background-color: #0a0a0a;
    border: 1px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #d4af37;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.social-btn.facebook:hover { background-color: #3b5998; border-color: #3b5998; color: #fff; }
.social-btn.instagram:hover { background-color: #e1306c; border-color: #e1306c; color: #fff; }
.social-btn.whatsapp:hover { background-color: #25d366; border-color: #25d366; color: #fff; }

/* =========================================
   AÑADIR ESTO: CONFIGURACIÓN HTML
   ========================================= */
html {
  scroll-behavior: smooth; /* Hace que toda la navegación por anclas (#) sea suave */
}

/* =========================================
   AÑADIR ESTO: ANIMACIÓN DE NAVEGACIÓN
   ========================================= */
@keyframes sectionPulse {
  0% { box-shadow: inset 0 0 0 rgba(212, 175, 55, 0); background-color: transparent; }
  30% { box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.15); background-color: rgba(212, 175, 55, 0.05); }
  100% { box-shadow: inset 0 0 0 rgba(212, 175, 55, 0); background-color: transparent; }
}

.nav-target-highlight {
  animation: sectionPulse 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  border-radius: 10px; /* Suaviza los bordes del destello */
}

/* Animación de entrada */
#restaurant-modal.open { display: block !important; animation: fadeIn 0.3s ease-out; }
#restaurant-modal.open #modal-content-container { animation: slideUp 0.4s ease-out; }

/* Animación de salida */
#restaurant-modal.closing { animation: fadeIn 0.3s ease-in reverse; }
#restaurant-modal.closing #modal-content-container { animation: slideUp 0.3s ease-in reverse; }

@keyframes fadeIn { from { opacity: 0; backdrop-filter: blur(0px); } to { opacity: 1; backdrop-filter: blur(8px); } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- Efecto para el contenido principal cuando el modal está abierto --- */
#main-content-wrapper {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

/* Esta clase se pondrá al cerrar el modal para dar un efecto de 'llegada' */
.efecto-regreso {
    animation: bouncePage 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bouncePage {
    0% { transform: scale(0.95); filter: blur(4px); opacity: 0.8; }
    100% { transform: scale(1); filter: blur(0px); opacity: 1; }
}

/* Transición suave para el fondo */
#main-content-wrapper {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease, opacity 0.6s ease;
    will-change: transform, filter;
}

/* Estado cuando el modal está abierto */
.main-blurred {
    transform: scale(0.92); /* Se aleja un poco */
    filter: blur(8px);      /* Se desenfoca */
    opacity: 0.6;           /* Se oscurece */
    pointer-events: none;   /* Evita clicks accidentales mientras se ve el menú */
}

/* Animación de entrada del modal */
.modal.open { 
    display: block !important; 
    animation: fadeInOverlay 0.4s ease-out forwards; 
}
.modal.open #modal-content-container { 
    animation: slideUpModal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; 
}

/* Animación de salida del modal */
.modal.closing { 
    animation: fadeInOverlay 0.3s ease-in reverse forwards; 
}
.modal.closing #modal-content-container { 
    animation: slideUpModal 0.3s ease-in reverse forwards; 
}

@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpModal { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }


/* ======================================================= */
/* DECORACIONES FLOTANTES (ESPECIAS, MANDALAS, CAFÉ)       */
/* ======================================================= */

/* Previene que la pantalla se mueva hacia los lados en móviles */
html, body {
    overflow-x: hidden;
}

/* Prepara las secciones para contener los adornos absolutos */
.seccion-decorada {
    position: relative;
    overflow: hidden; /* Corta las imágenes si sobresalen del borde */
}

/* Asegura que el contenido principal (texto, fotos) quede encima de los adornos */
.relative-z1 {
    position: relative;
    z-index: 1;
}

/* Clase base para todas las imágenes decorativas */
.adorno {
    position: absolute;
    pointer-events: none; /* Crucial: evita que bloqueen los clics del usuario */
    z-index: 0;
    opacity: 0.6; /* Ajusta este valor (0.1 a 1) para hacerlas más transparentes o sólidas */
}

/* Posiciones específicas para la sección Historia */
.adorno-historia-izq {
    top: -50px;
    left: -50px;
    width: 300px;
    opacity: 0.2; /* Ejemplo: los mandalas suelen ir muy transparentes */
}

.adorno-historia-der {
    bottom: 20px;
    right: -30px;
    width: 200px;
}

/* Posiciones específicas para la sección Contactos */
.adorno-contacto-izq {
    bottom: -20px;
    left: -20px;
    width: 150px;
    transform: rotate(15deg); /* Un poco de rotación para más dinamismo */
}

.adorno-contacto-der {
    top: 50px;
    right: -40px;
    width: 120px;
}

/* Posiciones específicas para Misión, Visión y Valores */
.adorno-mision-izq {
    top: -20px;
    left: -40px;
    width: 140px;
    transform: rotate(-25deg); /* Le da un toque más orgánico */
    opacity: 0.8;
}

.adorno-mision-der {
    bottom: -30px;
    right: -20px;
    width: 160px;
    transform: rotate(15deg);
    opacity: 0.7;
}

/* 1. LA TARJETA AHORA PERMITE QUE LOS ELEMENTOS SALGAN */
.motivational-card {
    /* Mantén tus colores, paddings y border-radius */
    position: relative; 
    
    /* ¡CRUCIAL! Asegúrate de que NO diga overflow: hidden; */
    overflow: visible; 
}

/* 2. LA IMAGEN ROMPIENDO EL BORDE */
.adorno-esquina {
    position: absolute;
    /* Usa valores negativos más grandes para empujarla hacia afuera */
    top: -40px;    
    right: -30px;  
    width: 130px;  
    
    /* Subimos un poco la opacidad para que el efecto 3D resalte más */
    opacity: 0.9;  
    pointer-events: none;
    
    /* Un z-index alto asegura que flote por encima de la tarjeta y otros elementos cercanos */
    z-index: 10; 
    
    /* Opcional: Una pequeña sombra a la imagen le da un efecto de que está flotando SOBRE la tarjeta */
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.4));
}


/* ========================================= */
/* ANIMACIÓN DE COLABORACIONES EN CELULARES  */
/* ========================================= */
@media (max-width: 768px) {
    /* Contenedor relativo para apilar las imágenes */
    .collab-logos {
        display: block; 
        position: relative;
        height: 100px; /* Ajusta esto según qué tan altos sean tus logos */
        width: 100%;
        margin: 15px auto;
    }

    /* Ocultamos las líneas divisorias en el celular para que no estorben la animación */
    .collab-divider {
        display: none; 
    }

    /* Estilo y animación de los logos */
    .collab-logos .collab-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 150px; /* Ajusta el tamaño máximo del logo en celular */
        opacity: 0;
        animation: fadeCollab 9s infinite;
    }

    /* Retrasos para cada imagen usando nth-of-type para ignorar los divisores ocultos */
    .collab-logos .collab-icon:nth-of-type(1) {
        animation-delay: 0s;
    }
    
    .collab-logos .collab-icon:nth-of-type(2) {
        animation-delay: 3s;
    }
    
    .collab-logos .collab-icon:nth-of-type(3) {
        animation-delay: 6s;
    }
}

/* Keyframes de la animación (puede ir fuera o dentro del media query, 
   pero se recomienda fuera para mantener el orden) */
@keyframes fadeCollab {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    23%  { opacity: 1; }
    33%  { opacity: 0; }
    100% { opacity: 0; }
}



/* --- ESTILOS PARA LA 'X' --- */
.input-wrapper {
    position: relative;
    flex-grow: 1; /* Permite que el input ocupe el espacio en PC */
}

/* Posicionamos la X flotando a la derecha dentro del input */
.btn-limpiar {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%); /* Centrado vertical perfecto */
    color: #888;
    cursor: pointer;
    display: none; /* Oculto por defecto hasta que escriban algo */
    padding: 5px;
    font-size: 1.2rem;
}

.btn-limpiar:hover {
    color: #d4af37; /* Tu color dorado para cuando pasen el mouse/dedo */
}

/* --- AJUSTE PARA EL MEDIA QUERY DE CELULAR --- */
@media (max-width: 768px) {
    /* Mantenemos lo que hicimos antes, pero aplicamos el margen al wrapper */
    .search-container .input-wrapper {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-container input#search-input {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0; /* Quitamos el margen de aquí porque lo tiene el wrapper */
        padding-right: 40px; /* Evita que el texto que escribes se monte encima de la X */
    }
}

/* --- AJUSTE DEL BUSCADOR PARA PC --- */

/* 1. Controlamos el ancho del contenedor invisible */
.input-wrapper {
    position: relative;
    /* Aquí decides qué tan larga quieres la barra en tu PC. 
       Puedes subir o bajar este valor (ej. 400px, 500px) */
    width: 450px; 
    max-width: 100%;
}

/* 2. Hacemos que la barra blanca se estire por completo */
.input-wrapper input#search-input {
    width: 100%; /* Obliga al input a alcanzar a la 'X' */
    padding-right: 40px; /* Muy importante: evita que el texto que escribas en PC se monte encima de la X */
    box-sizing: border-box;
}

/* (Opcional) Si quieres asegurar que el botón y el buscador tengan un espacio limpio entre ellos en PC */
.search-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espacio entre la barra y el botón amarillo */
}


/* ========================================= */
/* EFECTO DE RESALTADO DE BÚSQUEDA           */
/* ========================================= */
.resaltado-busqueda {
    background-color: rgba(212, 175, 55, 0.1); /* Un fondo dorado muy sutil */
    border-left: 4px solid #d4af37; /* Línea dorada a la izquierda */
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: pulsoDorado 2s infinite; /* Llama la atención suavemente */
}

@keyframes pulsoDorado {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ========================================= */
/* EFECTO DE RESALTADO DE TEXTO TIPO KARU    */
/* ========================================= */
.efecto-karu {
    background-color: #d4af37; /* Tu color dorado */
    color: #111; /* Texto oscuro para que contraste con el dorado */
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    transition: all 0.3s ease;
    animation: titilarKaru 1s ease-in-out 3; /* Titila 3 veces para llamar la atención */
}

@keyframes titilarKaru {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* ========================================= */
/* ETIQUETA FLOTANTE TIPO KARU (RESULTADOS)  */
/* ========================================= */
.mensaje-flotante-karu {
    position: absolute;
    top: -15px; /* Lo empuja hacia arriba para que quede montado en el borde */
    right: 20px; /* Lo alinea a la derecha */
    background-color: #111; /* Fondo oscuro */
    color: #d4af37; /* Letra dorada */
    border: 1px solid #d4af37; /* Borde dorado */
    padding: 6px 15px;
    border-radius: 20px; /* Forma de píldora */
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.6);
    z-index: 100;
    pointer-events: none; /* Evita que el usuario haga clic por error en el mensaje */
    
    /* Aparece en 0.4s, espera 3s, y se desvanece */
    animation: aparecerFlotante 0.4s ease-out forwards, desvanecerFlotante 0.4s ease-in 3s forwards;
}

@keyframes aparecerFlotante {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes desvanecerFlotante {
    from { opacity: 1; }
    to { opacity: 0; }
}

