/* ============================================================
   Persianas SYCSALAZ — Mínimo CSS propio
   Solo estilos que Bootstrap no puede cubrir con utilidades.
   El resto lo hace Bootstrap.
   ============================================================ */

/* Fuentes de marca */
/* Evita scroll horizontal en móvil (drawer fuera de pantalla, etc.) sin romper sticky */
html, body { overflow-x: clip; max-width: 100%; }
body { font-family: "Inter", system-ui, sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: "Archivo", system-ui, sans-serif; }

/* Color de acento CTA */
.btn-accent { background: #F08A24; color: #1A1A1A; border: none; }
.btn-accent:hover { background: #D9740F; color: #1A1A1A; }

/* ===== Navbar glassmorphism ===== */
.site-header {
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: #000;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
.navbar-toggler-icon { filter: invert(1); }

/* ===== Hamburger botón ===== */
.mobile-hamburger {
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}
.mobile-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ===== Drawer lateral izquierdo ===== */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 78vw;
  max-width: 300px;
  background: #111;
  z-index: 200;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.mobile-drawer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
}
.mobile-drawer-close:hover { color: #fff; }

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-drawer-link {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color 0.15s ease;
}
.mobile-drawer-link:hover { color: #F08A24; }

.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}
.mobile-drawer-backdrop.open { display: block; }


.nav-link {
  position: relative;
  color: rgba(255,255,255,.65) !important;
  text-decoration: none;
  padding-bottom: 4px !important;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #F08A24;
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-link:hover,
.nav-link:focus {
  color: #F08A24 !important;
}
.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}


/* ===== Urgency strip ===== */
.urgency-strip {
  background: #F08A24;
  color: #1A1A1A;
  text-align: center;
  padding: 0.55rem 3rem;
  font-size: 0.88rem;
  font-weight: 600;
  position: relative;
  z-index: 51;
}
.urgency-strip a { color: inherit; font-weight: 800; text-decoration: underline; }
.urgency-strip a:hover { opacity: 0.8; }
.urgency-close {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: inherit;
  padding: 0.3rem 0.5rem;
  opacity: 0.7;
}
.urgency-close:hover { opacity: 1; }

/* ===== Hero con video de fondo ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #000;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.52) 55%, rgba(0,0,0,.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 9rem;
  padding-bottom: 10rem;
  padding-inline: 1.5rem;
}
@media (max-width: 768px) {
  .hero-content {
    padding-top: 6rem;
    padding-bottom: 2.5rem;
    padding-inline: 1.25rem;
  }
}

/* Stats overlay — al pie del vídeo, sobre el degradado */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 1.4rem 0;
}

.hero-stat-item {
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stat-item:last-child { border-right: none; }

.hero-stat-num {
  display: block;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #F08A24;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}


/* ===== Galería carousel ===== */
.gallery-carousel {
  max-width: 960px;
  margin-inline: auto;
}
.gallery-img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  display: block;
  border-radius: 14px;
  transition: transform 0.4s ease;
}
.gallery-fig {
  overflow: hidden;
  border-radius: 14px;
  margin: 0;
}
.gallery-fig:hover .gallery-img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .gallery-img { transition: none; }
}

/* Botones prev/next custom — círculos pequeños fuera de las imágenes */
.gal-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  color: #1A1A1A;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.gal-btn:hover { background: #F08A24; color: #fff; border-color: #F08A24; }

/* Indicadores (puntos) */
.gallery-indicators {
  margin: 0;
}
.gallery-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5db;
  opacity: 1;
  flex: 0 0 auto;
  border: none;
}
.gallery-indicators button.active,
.gallery-indicators [aria-current="true"] {
  background-color: #F08A24;
  transform: scale(1.4);
}

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease;
  isolation: isolate;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::after { animation: none; }
}

/* ===== Accordion personalizado — elimina el azul de Bootstrap ===== */
/* Sobrescribir variables CSS de Bootstrap para el accordion */
.accordion {
  --bs-accordion-active-color: #8A4D0A;
  --bs-accordion-active-bg: rgba(240, 138, 36, 0.04);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(240, 138, 36, 0.25);
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238A4D0A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-button:not(.collapsed) {
  color: #8A4D0A;
  background-color: rgba(240, 138, 36, 0.04);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: 0 0 0 .25rem rgba(240, 138, 36, 0.25);
  outline: none;
}

/* ===== Hero en móvil: flujo en bloque para que botones + stats se vean siempre ===== */
/* Va al final a propósito: debe ganar al .hero-stats { position:absolute } de arriba */
@media (max-width: 768px) {
  .hero {
    display: block;
    min-height: auto;
  }
  .hero-stats {
    position: static;
    backdrop-filter: none;
    background: rgba(0, 0, 0, 0.6);
  }
}
