.color-rojo { color: #ff0000; }
.color-verde { color: #00ff41; }
.color-azul { color: #00d4ff; }
.color-blanco { color: #f2f2f2; }
.color-negro { color: #000000; }

.fondo {
  background-color: #e2087d;
}
/*Navvbar principal*/

.navbar-color {
  background-color: #e2087d;
  vertical-align: middle;
}

#mainNavbar {
  padding-top: 25px;
  padding-bottom: 30px;
  transition: all 0.4s ease-in-out; /* Hace que el encogimiento sea suave */
  
  /* ─── CORRECCIÓN CRUCIAL PARA EL DROPDOWN ─── */
  z-index: 1060 !important; /* Elevamos la navbar por encima de Swiper y cualquier otra barra */
}

#navbarLogo {
  transition: all 0.4s ease-in-out;
}

/* Estado al bajar (Pequeño - esta clase la pondrá JavaScript) */
#mainNavbar.navbar-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Sombra sutil al bajar */
}

#mainNavbar.navbar-scrolled #navbarLogo {
  transform: scale(0.9); /* Lo achica un 10% */
}

/* Posicionamiento justo debajo de tu navbar principal fija */
.fixed-top-secundario {
  position: fixed;
  top: 54px; /* ◄ Se esconde justo detrás de la Navbar principal cuando tiene el padding grande */
  right: 0;
  left: 0;
  z-index: 1020; /* ◄ Queda por debajo de mainNavbar (1060) para que la barra de arriba la tape */
  
  /* Eliminadas todas las opacidades y displays para que responda solo al movimiento */
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ─── EXTRA: Asegurar que el menú desplegable flote sobre todo ─── */
.dropdown-menu {
  z-index: 1070 !important;
}

/*sub nav*/

  .sub-nav-link {
  color: #4a5568;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.5rem 2rem; 
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
  .sub-nav-link:hover, .sub-nav-link.active {
  color:#e2087d
}

  .scrollbar-oculta {
  -webkit-overflow-scrolling: touch;
}

.scrollbar-oculta::-webkit-scrollbar {
  display: none; 
}

  .scrollbar-oculta {
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.posicion-frente {
  position: relative;
  z-index: 3;
  padding-top: 210px; 
}

/* Evita de raíz que el cuerpo completo de la web o el header generen scroll horizontal */
body, html, header {
  overflow-x: hidden !important;
  width: 100%;
}

/* Corrige la sub-navbar para que su ancho máximo no rompa la pantalla */
.sub-navbar-scroll {
  width: 100%;
  overflow: hidden;
}

/*hero*/

/* Nuevo contenedor padre que reserva el espacio en la pantalla */
.hero-seccion {
  position: relative;
  min-height: 96vh; /* Mantiene la proporción de pantalla que querías */
}

.fondo-pantalla {
  background-image: url('/Rotaract/img/fondop.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 87%;
  z-index: 1; 
}

/* El contenedor de la tarjeta y el título (UNIFICADO) */
.posicion-frente {
  position: relative;
  z-index: 3; 
  width: 100%;
  /* AJUSTE AQUÍ: Este valor controla la altura en MÓVILES */
  padding-top: 670px; 
  
  animation: aparecerTexto 0.7s ease-out forwards; /* Corregido el nombre a aparecerTexto */
}

.borde-personalizado {
  border-color: #e2087d !important; 
}

/* Tu título H1 */
.posicion-hero {
  z-index: 3; 
  position: relative;
  padding-top: 0; 
  animation: aparecerTexto 1.1s ease-out forwards;
}

  .card_b {
    z-index: 2;
  }

.titulo-adaptable {
  font-family: 'Courier New', Courier, monospace; 
  font-size: 2.1rem;
}

/* ==========================================
   RESPONSIVE / MEDIA QUERIES
   ========================================== */
@media (min-width: 768px) {
  .titulo-adaptable {
    font-family: 'Arial', sans-serif; 
    font-size: 4.7rem;
    text-align: center;
  }
  
  /* AJUSTE AQUÍ: Este valor controla el empuje hacia abajo en ESCRITORIO */
  .posicion-frente {
    padding-top: 630px; /* Cambia este número a 250px, 300px, etc., para moverlo con precisión en PC */
  }
}

/* --- KEYFRAMES PARA LA ANIMACIÓN DE TEXTO --- */
@keyframes aparecerTexto {
  from {
    opacity: 0;
    transform: translateY(20px); 
  }
  to {
    opacity: 1;
    transform: translateY(0);    
  }
}

/* SECCIÓN NOSOTROS / IMAGEN*/

.quienes-somos {
  position: relative;
  z-index: 3;
  margin-top: 9%;
  margin-bottom: 4%;
}

/* --- ESTILOS DE LA IMAGEN (Móvil por defecto) --- */
.logo-rotaract {
  position: relative;
  z-index: 3; /* <--- AGREGADO: Esto levanta la imagen por encima del fondo */
  width: 100%;
  max-width: 350px; 
  height: auto; 
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .logo-rotaract {
    max-width: 630px; /* Crecen a la par en pantallas grandes */
    margin-left: 1%;  /* Desplazamiento estético a la izquierda en PC */
    margin-right: auto;
  }
}

/* 1. AJUSTES POR DEFECTO (Móvil / Pantallas pequeñas */
.cuadro-texto-rotaract {
  position: relative;
  z-index: 3; /* <--- AGREGADO: Esto levanta la caja de texto por encima del fondo */
  background-color: #ffffff;
  width: 100%;        
  max-width: 320px;  
  margin-top: -1.1%;
  border-radius: 0 0 24px 24px; 
}

/* ==========================================================================
   2. AJUSTES EXCLUSIVOS PARA ESCRITORIO (PC - Desde 768px en adelante)
   ========================================================================== */
@media (min-width: 768px) {
  .cuadro-texto-rotaract {
    max-width: 700px;  /* Crecen a la par en pantallas grandes */
    font-size: 1.4rem; 
    height: 340px;
    margin-left: -4.51%; /* Desplazamiento estético a la izquierda en PC */
    
    /* EFECTO PC: Redondeado solo a la izquierda (Start) */
    border-radius: 0 24px 24px 0; 
  }
}

/* 3. Configuración base para los iconos SVG de fondo */
.icono-fondo {
  position: absolute;
  z-index: -1; /* <-- Recuerda cambiar a 1 si el fondo blanco te tapa el icono 2 */
  opacity: 0.50; 
  pointer-events: none; 
  width: 310px; 
  height: auto;
}

/* 4. Posicionamiento individual (Escritorio / Por defecto) */
.icono-1 {
  top: -22%;
  left: 1%;
  /* Aplicamos animación: 4 segundos, infinita y fluida */
  animation: flotarPatita 4s ease-in-out infinite; 
}

.icono-2 {
  bottom: -5%;
  right: -1.5%; 
  /* Aplicamos animación: 5 segundos para que vayan a destiempo */
  animation: flotarHueso 5s ease-in-out infinite; 
}

/* --- Ajustes exclusivos para móviles (Pantallas pequeñas) --- */
@media (max-width: 767px) {
  .icono-fondo {
    width: 180px; /* Más pequeños en celular */
  }
  
  /* Posición del icono 1 en móvil */
  .icono-1 {
    top: -14%;
    left: 1%;
    /* Mantiene la animación adaptada a los giros de móvil si fueran necesarios */
    animation: flotarPatita 4s ease-in-out infinite;
  }

  /* Posición del icono 2 en móvil */
  .icono-2 {
    bottom: 5%;  
    right: 5%;   
    left: auto;  
    top: auto;   
    animation: flotarHueso 5s ease-in-out infinite;
  }
}

/* ==========================================================================
   5. DEFINICIÓN DE ANIMACIONES (KEYFRAMES)
   ========================================================================== */

/* Animación para el Icono 1: Flota verticalmente manteniendo su rotación de -14deg */
@keyframes flotarPatita {
  0% {
    transform: translateY(0px) rotate(-14deg);
  }
  50% {
    transform: translateY(-10px) rotate(-40deg); /* Sube 10px y varía sutilmente el giro */
  }
  100% {
    transform: translateY(0px) rotate(-14deg);
  }
}

/* Animación para el Icono 2: Flota con un leve balanceo manteniendo su rotación de -16deg */
@keyframes flotarHueso {
  0% {
    transform: translateY(0px) translateX(0px) rotate(-16deg);
  }
  50% {
    transform: translateY(8px) translateX(4px) rotate(-30deg); /* Se mueve en diagonal y varía el giro */
  }
  100% {
    transform: translateY(0px) translateX(0px) rotate(-16deg);
  }
}

/* ===========
    carrusel
   =========*/

.swiper {
  width: 100%;
  padding-top: 120px;
  padding-bottom: 120px;
  overflow: visible !important; /* Permite que las sombras y escalas no se corten */
}

/* 📱 CONFIGURACIÓN POR DEFECTO: ADAPTADA PARA MÓVILES (Celulares) */
.swiper-slide {
  width: 290px; /* Ancho ideal para pantallas de celulares pequeños y medianos */
  height: 510px;
  display: flex;
  justify-content: center;
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  transform: scale(0.90); /* Efecto de escala plano para tarjetas laterales */
}

/* 💻 CONFIGURACIÓN PARA PANTALLAS GRANDES (PC / Desde 768px en adelante) */
@media (min-width: 768px) {
  .swiper-slide {
    width: 480px; /* ◄ Aquí incrementas el largo horizontal de la tarjeta en PC */
    height: 540px;
  }
}

/* EFECTO ACTIVO: La tarjeta del centro se agranda y gana nitidez */
.swiper-slide-active {
  transform: scale(1.05) !important;
  opacity: 1 !important;
  z-index: 5;
}

/* DISEÑO DE LAS TARJETAS (Ocupan siempre el 100% de su slide contenedor) */
.card-carrusel {
  width: 100%; /* ◄ CORREGIDO: Evita usar 200%, debe ser 100% para no romper a Swiper */
  border: none;
  border-radius: 18px;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Sombra base */
  transition: box-shadow 0.4s ease;
}

/* Sombra más profunda y marcada únicamente para la tarjeta central */
.swiper-slide-active .card-carrusel {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.img-carrusel {
  width: 100%;
  height: 260px; /* Mantiene la proporción alta para el nuevo largo */
  object-fit: cover;
  
  /* REGRESAR EL BORDE REDONDEADO DE ANTES: */
  border-top-left-radius: 18px;  /* Curva superior izquierda */
  border-top-right-radius: 18px; /* Curva superior derecha */
  border-bottom-left-radius: 0;  /* Abajo se mantiene recto para unirse a la barra de color */
  border-bottom-right-radius: 0;
}



/* ==========================================================================
   SECCIÓN: CAMINA Y DEJA HUELLA (ESTILO BANNER)
   ========================================================================== */

.huella-seccion {
  background-color: #0099b0; /* Turquesa base de tu imagen */
  min-height: 500px;
  display: flex;
  align-items: center;
}

/* Forzar que el contenido de texto quede al frente de las texturas */
.posicion-contenido {
  position: relative;
  z-index: 10;
}

/* ─── BARRAS ROSAS (Bordes superior e inferior) ─── */
.barra-decorativa {
  position: absolute;
  left: 0;
  width: 100%;
  height: 18px; /* Grosor de la línea rosa */
  background-color: #e2087d; /* Rosa representativo de tu club */
  z-index: 5;
}
.barra-top { top: 0; }
.barra-bottom { bottom: 0; }

/* ─── TEXTURAS VECTORIALES DE FONDO ─── */
.textura-bg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.35; /* Opacidad sutil para que no opaque tus textos */
}
.textura-2 { top: 0; z-index: 1; }
.textura-3 { top: 0; z-index: 2; }

/* ─── ELEMENTOS VISUALES ESPECÍFICOS ─── */

/* Imagen del Perrito */
.contenedor-perrito {
  position: relative;
  max-width: 380px;
  width: 100%;
}

.img-perrito {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15)); /* Le da realce al perrito */
}

/* Ajuste de los logotipos SVG de la derecha */
.logo-huella {
  max-width: 420px;
  width: 100%;
  height: auto;
}

.img-causa {
  max-width: 380px;
  width: 100%;
  height: auto;
}

/* ─── BLOQUE DE DATOS E ICONOS ─── */
.dato-evento {
  min-width: 80px;
}

.icono-dato {
  font-size: 1.6rem;
  color: #e2087d; /* Iconos en color rosa como tu boceto */
  display: block;
}

/* Botón Ovalado Blanco (Casilla inferior derecha) */
.btn-registro-huella {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  background-color: transparent;
  border-radius: 15px; /* Bordes redondeados idénticos a tu mockup */
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-registro-huella:hover {
  background-color: #ffffff;
  color: #0099b0 !important; /* Invierte colores al pasar el mouse */
}

/* Ajustes responsivos para celulares */
@media (max-width: 767px) {
  .logo-huella, .img-causa {
    max-width: 290px; /* Reducción de tamaño para que quepa bien en pantallas verticales */
  }
  .huella-seccion {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}