body {
  font-family: 'Inter', sans-serif;
}

/* Animaciones */
@keyframes floatAnimation {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.animate-float {
  animation: floatAnimation 4s ease-in-out infinite;
}

.scale-in {
  animation: scaleIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

[data-animate="on-scroll"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

[data-animate="on-scroll"].in-view {
  opacity: 1;
  transform: translateY(0);
}

header {
  background-image: url('../images/headerb.jpg');
  background-size: cover;
  background-position: right;
  background-repeat: no-repeat;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 90px;
}

/* Hover botones */
.btn-primary {
  background-color: #942600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #deaa00;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Efectos imagen */
.image-hover {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.image-hover:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

h3 {
  color: #942600
}

h2 {
  color: #942600
}

/* Hero */
.hero-section {
  background-image: url('../images/centroi.jpg');
  background-size: cover;
  background-position: center;
  min-height: 650px;
  position: relative;
  transition: background-image 0.5s ease-in-out;
}

.hero-text-adjusted {
  padding-top: 6rem;
  /* Puedes ajustar a 5rem o más si deseas más espacio */
}


/* Animación de texto */
.text-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Overlay hero */
.gradient-overlay {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85));
}

/* Nav animaciones */
.menu-link {
  color: #ffedd4;
  background-color: transparent;
  font-size: 1.25rem;
  /* text-xl */
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.menu-link:hover {
  background-color: #ffedd4;
  color: #942600;
  transform: scale(1.1);
}

.menu-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #9333EA;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.menu-link:hover::after {
  width: 80%;
  background-color: #942600;
}



/* Menú móvil */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffedd4;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 45;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #ffedd4;
  padding: 2rem 1.5rem;
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  z-index: 50;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
  visibility: visible;
}

@media (max-width: 840px) {
  .mobile-menu {
    width: 100%;
  }
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu a {
  display: block;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.mobile-menu a:hover {
  background-color: #942600;
  color: #ffedd4;
}

/* ====== FOOTER ====== */

.footer-wrapper {
  background-image: url('../images/footer.jpg');
  background-color: #942600;
  background-size: cover;
  background-position: right;  
  /* azul oscuro */
  color: #000000;
  /* texto claro */
  width: 100%;
}

.footer-container {
  background-position: left;
  /*background-color: #1e3a8a;*/
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: #f97316;
}

.footer-column {
  flex: 1 1 320px;
  min-width: 220px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #efdeab;
}

.footer-column a {
  display: block;
  color: #f97316;
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-column p {
  margin: 0.4rem 0;
  font-size: 0.87rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #374151;
  font-size: 0.85rem;
  color: #f97316;
}

.social-icons a {
  display: inline-block;
  margin-right: 0.8rem;
  color: #1e3a8a;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.3);
}

.logo {
  margin-left: -3rem;
  display: flex;
}

.logo img {
  display: block;
  width: 333px;
  height: 90px;
  object-fit: contain;
}

/************* Valores ******************/
/*
.valor {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}
*/

.valor {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  width: 260px; /* Asegura tamaño uniforme para centrar */
}



.valor:hover {
  transform: translateY(-5px);
}

.valor img {
  background: #000000;
  padding: 0.5rem;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.valor h4 {
  font-size: 1.2rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.valor p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.valores-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

/*
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}
*/

.valores-footer {
  margin-top: 2rem;
  font-style: italic;
  font-size: 1rem;
  color: #1f2937;
  text-align: center;
}

/* Valores */
.vvalor {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  flex: 1 1 calc(50% - 1rem); /* Each card takes half the width minus half the gap */
  max-width: calc(50% - 1rem); /* Ensure max width is half minus gap */
  min-width: 260px; /* Minimum width for smaller screens */
}

.vvalor:hover {
  transform: translateY(-5px);
}

.vvalor img {
  background: #000000;
  padding: 0.5rem;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.vvalor h4 {
  font-size: 1.2rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.vvalor p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.vvalores-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* Spread cards with equal spacing */
  gap: 2rem; /* Gap between cards */
  margin-top: 2rem;
  width: 100%; /* Match the container width */
  max-width: 100%; /* Ensure it doesn't exceed the container */
  padding: 0 4px; /* Match the container's px-4 padding */
  margin-left: auto;
  margin-right: auto;
}

.delay-float-1 {
  animation-delay: 0s;
}

.delay-float-2 {
  animation-delay: 0.5s;
}

.delay-float-3 {
  animation-delay: 1s;
}

.delay-float-4 {
  animation-delay: 1.5s;
}

.delay-float-5 {
  animation-delay: 2s;
}



/*****************************************/

.faq-item {
  transition: all 0.3s ease;
}

.faq-question {
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #f3f4f6;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
  max-height: 500px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.no-results {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

/****************************************/


form input,
form textarea {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #555;
  border-radius: 8px;
  color: #0f1f38;
  margin-bottom: 1.1rem;
  resize: none;
}

form button {
  padding: 0.75rem;
  background: #9b1c1c;
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

form button:hover {
  background: #b22222;
}


form label {
  font-size: 0.95rem;
  color: #1f2937;
  display: flex;
}

/************F O T O*********************/

.photo-upload {
  width: 100%;                /* Ocupa todo el ancho disponible */
  aspect-ratio: 8/9;          /* Mantiene proporción vertical */
  border: 1px dashed #d18b2d;
  border-radius: 12px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af; /* gris placeholder */
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.photo-upload:hover {
  background: #fdf1e3;
  border-color: #9b1c1c;
}

.photo-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* Mantiene proporción */
  border-radius: 12px;
}

/***************************************/

/************DNI*********************/
.dni-upload {
  width: 100%;                /* Ocupa todo el ancho disponible */
  aspect-ratio: 9/5.5;          /* Mantiene proporción vertical */
  border: 1px dashed #d18b2d;
  border-radius: 12px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af; /* gris placeholder */
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dni-upload:hover {
  background: #fdf1e3;
  border-color: #9b1c1c;
}

.dni-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* Mantiene proporción */
  border-radius: 12px;
}
/***************************************/

/************Fotos Moto*********************/
.moto-upload {
  width: 100%;                /* Ocupa todo el ancho disponible */
  aspect-ratio: 4/3;          /* Mantiene proporción vertical */
  border: 1px dashed #d18b2d;
  border-radius: 12px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af; /* gris placeholder */
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.moto-upload:hover {
  background: #fdf1e3;
  border-color: #9b1c1c;
}

.moto-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* Mantiene proporción */
  border-radius: 12px;
}
/***************************************/




/* Responsive */
@media (max-width: 768px) {

  .header {
    background-image: url('../images/headers.jpg');
    background-position: left;
  }

  .logo {
    margin-left: 0;
    padding: 0;
  }

  .logo img {
    width: 250px;
    /* Opcional: reduce tamaño en móviles */
    height: auto;
  }

  .hero-section {
    min-height: 400px;
  }

  .footer-container {
    padding: 2rem 0.5rem;
  }

  .hero-text-adjusted h2 {
    font-size: 1.5rem;
    /* Reduce tamaño del título */
    line-height: 1.4;
  }

  .hero-text-adjusted {
    padding: 1rem;
    padding-top: 7rem;
  }

  form {
    padding: 1rem;
  }

  form input,
  form textarea,
  form button {
    width: 100%;
  }

  .vvalor {
    min-width: 100%; /* Full width on small screens */
    max-width: 100%;
  }

  .vvalores-grid {
    flex-direction: column; /* Stack cards vertically */
    align-items: center; /* Center cards */
    gap: 1.5rem; /* Reduced gap for smaller screens */
  }
}

/* Efectos generales (aplican en todos los tamaños de pantalla) */
#particles{
    position:absolute;
    inset:0;
    background-image:
        radial-gradient(circle,#ffffff55 1px,transparent 1px);
    background-size:40px 40px;
    opacity:.15;
    animation:particlesMove 60s linear infinite;
}

@keyframes particlesMove{
    from{
        transform:translateY(0);
    }
    to{
        transform:translateY(-500px);
    }
}

section video{
    filter:brightness(.55);
}

section h1{
    text-shadow:0 8px 40px rgba(0,0,0,.7);
}
.counter{
    transition:all .3s;
}


.fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: all .8s ease;
}

.opacity-0 {
    opacity: 0;
    transform: translateY(40px);
}
/* ====== NAV: enlace de página activa ====== */
.menu-link.active {
  background-color: #ffedd4;
  color: #942600;
}

.mobile-menu a.active {
  background-color: #942600;
  color: #ffedd4;
}

/* ====== SUB-HERO (páginas internas) ====== */
.subhero {
  position: relative;
  padding-top: 11rem;
  padding-bottom: 5rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.88), rgba(20,20,20,.7));
}

.subhero > * {
  position: relative;
  z-index: 1;
}

/* ====== TIMELINE (Nosotros) ====== */
.timeline {
  position: relative;
  margin-left: 1rem;
  padding-left: 2.5rem;
  border-left: 2px solid #4a1f1f;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.95rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #9b1c1c;
  border: 3px solid #d18b2d;
}

/* ====== DIRECTIVA (foto real, con respaldo de iniciales) ====== */
.avatar-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffedd4;
  background: linear-gradient(135deg, #9b1c1c, #4a1f1f);
  border: 3px solid #d18b2d;
  margin: 0 auto;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-circle img.paso-icon {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.avatar-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ====== GALERÍA / LIGHTBOX ====== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.gallery-item:hover img {
  transform: scale(1.12);
}

.gallery-item .gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  color: #fff;
  transform: translateY(100%);
  transition: transform .4s ease;
  font-weight: 600;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-filter-btn {
  transition: all .3s ease;
}

.gallery-filter-btn.active {
  background-color: #9b1c1c;
  color: #fff;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: .5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

/* ====== LOGIN ====== */
.login-card {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px rgba(0,0,0,.15);
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  line-height: 1;
  display: inline-block;
}

.input-icon-wrap input {
  padding-left: 2.75rem !important;
}

.login-card input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin: 0;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.login-card label.flex {
  line-height: 1;
}

/* ====== CALENDARIO INTERACTIVO DE EVENTOS ====== */
.calendar-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222222;
  color: #ffedd4;
  border: 1px solid #4a1f1f;
  transition: all .25s ease;
}

.calendar-nav-btn:hover {
  background: #9b1c1c;
  border-color: #9b1c1c;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: #9ca3af;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .6rem;
  font-size: .85rem;
  color: #e5e7eb;
  cursor: default;
  background: #1c1c1c;
  border: 2px solid transparent;
  transition: all .25s ease;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

.calendar-day.no-event {
  color: #6b7280;
  cursor: default;
}

.calendar-day.has-event {
  cursor: pointer;
}

.calendar-day.has-event:hover {
  background: #2c2c2c;
}

.calendar-day.today {
  border-color: rgba(255, 255, 255, .45);
  font-weight: 700;
}

/* Día con evento (próximo o realizado): contorno y número en ámbar-rojizo */
.calendar-day.has-event {
  border-color: #d18b2d;
  color: #d18b2d;
  font-weight: 700;
}

.calendar-day.selected {
  background: #9b1c1c;
  color: #fff;
}

.calendar-day.selected.has-event {
  border-color: #ffedd4;
}

/* ====== PÓSTER DEL EVENTO (9:16, con lightbox al hacer clic) ====== */
.poster-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  background: #1c1c1c;
  border: 1px solid #4a1f1f;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.poster-frame:hover img {
  transform: scale(1.06);
}

.poster-frame-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  color: #ffedd4;
  font-size: 1.75rem;
  opacity: 0;
  transition: all .3s ease;
}

.poster-frame:hover .poster-frame-overlay,
.poster-frame:focus-visible .poster-frame-overlay {
  background: rgba(0, 0, 0, .4);
  opacity: 1;
}

/* ====== CTA de la ficha deshabilitado (evento pasado o cancelado) ====== */
#fichaWhatsapp.ficha-cta-disabled {
  background-color: #5c1414 !important;
  color: #e8b4b4 !important;
  cursor: not-allowed;
  opacity: .85;
  pointer-events: none;
}
