/* === Base general === */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #212529;
  background-color: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 800;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* === Hero === */
.hero-nosotros {
  height: 85vh;
  background: url('../img/foto3.jpg') center center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* === Navbar moderna === */
.navbar-modern {
  background-color: #111 !important;
  padding: 12px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.logo-modern {
  height: 42px;
  width: 42px;
  animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.nav-link {
  font-size: 1.05rem;
  color: #f1f1f1 !important;
  font-weight: 500;
  padding: 8px 12px;
}

.nav-link:hover,
.nav-link.active {
  color: #f9452a !important;
}

.icono-instagram {
  font-size: 1.25rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.icono-instagram:hover {
  transform: scale(1.2);
  color: #f9452a !important;
}

.footer-icon {
  font-size: 1.6rem;
  color: #f1f1f1;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-icon:hover {
  transform: scale(1.2);
  color: #f9452a;
}

/* === Títulos e íconos === */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  border-left: 5px solid #f9452a;
  padding-left: 16px;
  margin-bottom: 1.5rem;
  text-align: left;
  display: inline-block;
}

.icono-seccion {
  font-size: 2.5rem;
  color: #f9452a;
  transition: all 0.4s ease;
  margin-bottom: 0.5rem;
}

.icono-seccion.animado {
  opacity: 0;
  transform: translateY(10px);
  animation: aparecer 0.8s forwards ease-in-out;
}

.icono-seccion:hover {
  transform: scale(1.2);
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Botones modernos === */
.btn {
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  background-color: transparent;
}

.btn-outline-light:hover {
  background-color: #fff;
  color: #111;
}

.btn-contacto {
  background-color: #f9452a;
  color: white;
  padding: 12px 28px;
  font-size: 1.1rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
}

.btn-contacto:hover {
  background-color: #c62828;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* === Botones academias RF === */
.btn-academia {
  border: 2px solid white;
  color: white;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-academia:hover {
  background-color: white;
  color: #111;
  transform: translateY(-2px);
}

/* === Secciones === */
.bg-white {
  background-color: #fff !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.bg-dark {
  background-color: #111 !important;
}

.bg-danger {
  background-color: #f9452a !important;
}

/* === Footer moderno === */
footer {
  background-color: #000;
  color: #f1f1f1;
}

/* === WhatsApp flotante === */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* === Iconos superiores (Instagram y traducción) === */
.icono-instagram {
  opacity: 0.8;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.icono-instagram:hover {
  opacity: 1;
  color: #f9452a !important;
  transform: scale(1.15);
}

/* === Botón subir === */
.boton-subir {
  background-color: rgba(108, 117, 125, 0.4);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9998;
  font-size: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-subir:hover {
  background-color: rgba(73, 80, 87, 0.6);
  transform: scale(1.1);
}

/* === Responsive === */
@media (max-width: 768px) {
  .section-title {
    text-align: center;
    border-left: none;
    padding-left: 0;
  }

  .logo-modern {
    width: 36px;
    height: 36px;
  }

  .navbar-brand span {
    font-size: 1rem;
  }

  .btn-contacto {
    font-size: 1rem;
    padding: 10px 24px;
  }

  .btn-outline-light {
    padding: 8px 18px;
    font-size: 0.95rem;
  }

  .btn-academia {
    padding: 8px 18px;
    font-size: 0.95rem;
  }
}

/* === Días animados horarios === */
.dias-animados {
  animation: pulseDays 3s infinite ease-in-out;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dias-animados:hover {
  transform: scale(1.05);
  color: #ff5a36;
}

@keyframes pulseDays {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.95;
  }
}

/* === Botón contacto en fondo claro (más visible) === */
.bg-light .btn-contacto {
  background-color: #f9452a;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.bg-light .btn-contacto:hover {
  background-color: #c62828;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* === Padding para formulario de contacto === */
#formulario {
  padding-top: 110px;
}

.icono-seccion.visible {
  opacity: 1;
  animation: aparecer 0.8s ease-in-out;
}

@media (max-width: 768px) {
  .section-title {
    text-align: center;
    border-left: none;
    padding-left: 0;
  }
}

.galeria-section {
  padding: 100px 0 80px;
}

.galeria-img {
  max-height: 500px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-item img:hover {
  transform: scale(1.02);
}

.galeria-thumbs .thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease, border 0.3s ease;
  border: 2px solid transparent;
}

.galeria-thumbs .thumb:hover {
  transform: scale(1.1);
  border: 2px solid #f9452a;
}

@media (max-width: 768px) {
  .galeria-img {
    max-height: 300px;
  }
  .galeria-thumbs .thumb {
    width: 60px;
    height: 60px;
  }
}


/* ==== CARRUSEL HERO ==== */
.hero-carrusel {
  height: 90vh;
  overflow: hidden;
  position: relative;
}

.hero-carrusel .carousel-inner img {
  height: 100%;
  object-fit: cover;
}

.texto-sobre-carrusel {
  z-index: 10;
}

/* Animación fade in up */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards ease-out;
  animation-fill-mode: both;
}

/* Flecha hacia abajo con animación */
.flecha-scroll {
  bottom: 20px;
  z-index: 10;
  animation: pulseDown 2s infinite ease-in-out;
}

@keyframes pulseDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
/* ==== CARRUSEL HERO ==== */
.hero-carrusel {
  height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-carrusel .carousel-inner img {
  height: 100%;
  object-fit: cover;
}

/* LOGO respirando */
.hero-logo-respirando {
  animation: logoRespira 4s ease-in-out infinite;
}

@keyframes logoRespira {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Entrada de texto */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s forwards ease-out;
  animation-fill-mode: both;
}

/* Flecha animada invitando a bajar */
.flecha-scroll {
  bottom: 16px;
  z-index: 10;
}

.flecha-invitadora {
  animation: flechaBaja 1.8s infinite ease-in-out;
  opacity: 0.8;
}

@keyframes flechaBaja {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* === Carrusel ocupa 95% de altura de pantalla === */
.hero-carrusel {
  height: 95vh;
  overflow: hidden;
}

/* === Imagen cubre el bloque === */
.carousel-item img {
  object-fit: cover;
  height: 100%;
}

/* === Flecha centrada y animada hacia abajo === */
.flecha-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.flecha-invitadora {
  font-size: 20px;
  color: white;
  opacity: 0.7;
  animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* 🔧 Elimina cualquier zoom o transición en imágenes del carrusel */
.carousel-item img {
  transition: none !important;
  transform: none !important;
}

/* === Animaciones suaves === */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes respirar {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out both;
}

.animate-slide-up {
  animation: slideUp 1.2s ease-out both;
}

.respirando {
  animation: respirar 4s ease-in-out infinite;
}
/* 1. Fade-in inicial */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.aparecer {
  animation: aparecer 1s ease-out forwards;
}

/* 2. Efecto respirando constante */
@keyframes zoomRespirando {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.zoom-respirando {
  animation: zoomRespirando 4s ease-in-out infinite;
}

/* === Ajuste de espacio para sección Quiénes Somos === */
.seccion-quienes-somos-ajustada {
  padding-top: 140px; /* separa del navbar */
  padding-bottom: 100px; /* espacio inferior */
}
/* Ajuste visual equilibrado para el título 'Quiénes Somos' */
.bloque-titulo-quienes {
  margin-top: 60px;     /* Antes: 100px */
  margin-bottom: 40px;  /* Antes: 80px */
  animation: aparecer 1s ease-out forwards, zoomRespirandoTitulo 6s ease-in-out infinite;
}

/* Animación respirando exclusiva para el título */
@keyframes zoomRespirandoTitulo {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
/* Sección BJJ: mejora visual y animación */
.seccion-bjj {
  padding-top: 90px;
  padding-bottom: 70px;
}

.seccion-bjj .section-title {
  margin-bottom: 1.2rem;
}

.seccion-bjj p {
  text-align: justify;
  line-height: 1.8;
}
#btn-bjj-clase {
  background-color: #f9452a;
  color: #fff;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#btn-bjj-clase:hover {
  background-color: #c62828;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Estilos específicos para las páginas de Contacto */
.contacto-body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Botón de enviar formulario */
.btn-contacto-enviar {
  background-color: #f9452a;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-contacto-enviar:hover {
  background-color: #c62828;
  color: #fff;
  transform: translateY(-2px);
}

/* Sección formulario */
.contacto-formulario {
  padding-top: 160px;
  padding-bottom: 80px;
}

/* Footer */
footer {
  background-color: #000;
}

/* Íconos del footer */
.footer-icon {
  font-size: 1.6rem;
  color: #f1f1f1;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-icon:hover {
  transform: scale(1.2);
  color: #f9452a;
}

.btn-enviar {
  background-color: #f9452a;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-enviar:hover {
  background-color: #c62828;
  color: #fff;
  transform: translateY(-2px);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
#btn-visita {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  will-change: transform;
}

/* Efecto al pasar el mouse */
#btn-visita:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Efecto al hacer clic */
#btn-visita:active {
  transform: scale(0.96);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.25);
}
.sello-horario-fixed {
  position: fixed;
  bottom: 90px; /* MISMA altura que el botón de WhatsApp */
  left: 20px;
  background-color: white;
  color: #f9452a;
  font-weight: 700;
  padding: 8px 16px;
  font-size: 0.95rem;
  border-radius: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  z-index: 9997;
  transition: transform 0.3s ease;
}

@media (max-width: 576px) {
  .sello-horario-fixed {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}
