/* =========================================
   BROOKLYN – Cross the Bridge
   styles.css
   ========================================= */

:root {
  --rojo: #D42B2B;
  --rojo-oscuro: #A01E1E;
  --texto: #F5F5F5;
  --texto-muted: #999;
  --card-bg: #161616;
  --card-border: #2A2A2A;
  --nav-bg: rgba(10, 10, 10, 0.92);
  --bg: #0A0A0A;
  --gris-medio: #2C2C2C;
  --negro: #0A0A0A;
  --section-dark: #111111;
}

[data-theme="light"] {
  --texto: #111111;
  --texto-muted: #666;
  --card-bg: #FFFFFF;
  --card-border: #DDD;
  --nav-bg: rgba(245, 245, 245, 0.95);
  --bg: #F0F0F0;
  --gris-medio: #E0E0E0;
  --negro: #F5F5F5;
  --section-dark: #E5E5E5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--texto);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
  transition: background 0.3s;
}

.logo-wrap { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 3px; color: var(--texto); }
.logo-sub   { font-size: 9px; letter-spacing: 4px; color: var(--rojo); font-weight: 600; text-transform: uppercase; }

.nav-menu { display: flex; list-style: none; gap: 0.25rem; margin: 0 auto; }

.nav-link {
  display: block; padding: 6px 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  color: var(--texto-muted); border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--texto); background: var(--gris-medio); }
.nav-link.active { color: var(--rojo); }

.nav-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.theme-btn {
  background: var(--gris-medio); border: 1px solid var(--card-border);
  color: var(--texto); padding: 6px 14px; border-radius: 20px;
  font-size: 11px; font-family: 'Barlow', sans-serif; font-weight: 600;
  cursor: pointer; letter-spacing: 1px; transition: all 0.2s; white-space: nowrap;
}
.theme-btn:hover { background: var(--rojo); color: #fff; border-color: var(--rojo); }

.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 4px; width: 32px; height: 32px;
}
.hamburger span { display: block; height: 2px; width: 100%; background: var(--texto); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column;
  background: var(--nav-bg); border-bottom: 1px solid var(--card-border);
  position: fixed; top: 64px; left: 0; right: 0;
  z-index: 190; backdrop-filter: blur(14px);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 1rem 2rem; font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  color: var(--texto-muted); border-bottom: 1px solid var(--card-border);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-link:hover { color: var(--rojo); padding-left: 2.5rem; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/hero-bg.png') center center / cover no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.15) 100%
  );
}

.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--rojo);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem;
  max-width: 680px;
  margin-top: 64px;
}

.hero-tag {
  display: inline-block;
  background: var(--rojo); color: #fff;
  font-size: 10px; letter-spacing: 4px;
  padding: 4px 16px; margin-bottom: 1.25rem;
  font-weight: 700; text-transform: uppercase;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 11vw, 110px);
  letter-spacing: 4px; line-height: 0.88;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 2rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.btn-primary {
  display: inline-block; padding: 12px 28px;
  background: var(--rojo); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  border-radius: 2px; transition: background 0.2s;
}
.btn-primary:hover { background: var(--rojo-oscuro); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  border: 1.5px solid rgba(255,255,255,0.5); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none;
  border-radius: 2px; transition: border-color 0.2s, background 0.2s;
  backdrop-filter: blur(4px);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ===== SECCIONES ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-dark {
  background: var(--section-dark);
  max-width: 100%; padding: 5rem 2rem; margin: 0;
}
.section-dark .nosotros-inner { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px; letter-spacing: 4px;
  margin-bottom: 0.25rem; color: var(--texto);
}
.section-line { width: 48px; height: 3px; background: var(--rojo); margin-bottom: 2.5rem; }

/* ===== CATÁLOGO GRID ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 4px; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--rojo); }

.card-img {
  width: 100%; aspect-ratio: 3/4;
  background: var(--gris-medio);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-label { font-family: 'Bebas Neue', sans-serif; font-size: 56px; color: rgba(212,43,43,0.15); letter-spacing: 4px; }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--rojo); color: #fff; font-size: 9px; font-weight: 600; letter-spacing: 2px; padding: 3px 10px; }

.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-name { font-weight: 600; font-size: 14px; letter-spacing: 1px; margin-bottom: 4px; text-transform: uppercase; }
.card-desc { font-size: 12px; color: var(--texto-muted); margin-bottom: 0.75rem; line-height: 1.5; }
.card-tallas { color: var(--rojo); font-size: 11px; font-weight: 600; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--texto); letter-spacing: 1px; }
.card-price span { font-size: 12px; color: var(--texto-muted); font-family: 'Barlow', sans-serif; font-weight: 400; }

.wa-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rojo); color: #fff; border: none;
  padding: 8px 14px; border-radius: 3px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s; font-family: 'Barlow', sans-serif;
}
.wa-btn:hover { background: var(--rojo-oscuro); }
.wa-icon { width: 14px; height: 14px; fill: white; flex-shrink: 0; }

/* ===== NOSOTROS ===== */
.nosotros-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.nosotros-p { font-size: 15px; color: var(--texto-muted); line-height: 1.8; margin-bottom: 1.25rem; }
.nosotros-p strong { color: var(--rojo); }
.nosotros-stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 40px; color: var(--rojo); letter-spacing: 2px; line-height: 1; }
.stat-label { font-size: 11px; color: var(--texto-muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

.nosotros-logo-wrap {
  display: flex; align-items: center; justify-content: center;
}
.nosotros-logo-box {
  border: 2px solid var(--rojo);
  padding: 3rem 2.5rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; position: relative; width: 100%;
}
.nosotros-logo-box::before {
  content: '';
  position: absolute; inset: 6px;
  border: 1px solid rgba(212,43,43,0.2);
  pointer-events: none;
}
.nosotros-logo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px; letter-spacing: 8px; color: var(--texto);
}
.nosotros-logo-sub {
  font-size: 10px; letter-spacing: 5px;
  color: var(--rojo); font-weight: 600; text-transform: uppercase;
}

/* ===== CONTACTO ===== */
.contacto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.contacto-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 4px; padding: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: var(--texto);
  transition: border-color 0.2s, transform 0.2s;
}
.contacto-card:hover { border-color: var(--rojo); transform: translateY(-2px); }
.contacto-icon { font-size: 28px; color: var(--rojo); flex-shrink: 0; }
.contacto-info { display: flex; flex-direction: column; gap: 2px; }
.contacto-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--texto-muted); }
.contacto-val { font-size: 14px; font-weight: 600; }

/* ===== FOOTER ===== */
footer {
  background: var(--negro); border-top: 1px solid var(--card-border);
  text-align: center; padding: 2rem;
  color: var(--texto-muted); font-size: 12px; letter-spacing: 2px;
}
footer strong { color: var(--rojo); }

/* ===== EFECTO BORDE GIRATORIO EN BOTONES ===== */
@keyframes rotar-borde {
  0%   { --angulo: 0deg; }
  100% { --angulo: 360deg; }
}
@property --angulo {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.btn-primary,
.btn-outline,
.wa-btn,
.theme-btn {
  position: relative;
  z-index: 0;
}

.btn-primary::before,
.btn-outline::before,
.wa-btn::before,
.theme-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angulo),
    transparent 70%,
    var(--rojo) 88%,
    #ff6b6b 95%,
    var(--rojo) 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before,
.btn-outline:hover::before,
.wa-btn:hover::before,
.theme-btn:hover::before {
  opacity: 1;
  animation: rotar-borde 1.5s linear infinite;
}

/* Fondo sólido para que el gradiente no se cuele por dentro */
.btn-primary::after,
.btn-outline::after,
.wa-btn::after,
.theme-btn::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  z-index: -1;
  background: inherit;
}

/* ===== BOTÓN FLOTANTE FACEBOOK ===== */
.fab-facebook {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1877F2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.fab-facebook:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.6);
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* --- Tablet (max 768px) --- */
@media (max-width: 768px) {

  /* Navbar */
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  nav { padding: 0 1.25rem; }

  /* Hero */
  .hero { height: 100svh; min-height: 500px; }
  .hero-content { padding: 0 1.5rem; max-width: 100%; }

  /* Centrar la imagen en el modelo (lado derecho de la foto) */
  .hero-bg {
    background: url('../img/hero-bg.png') 70% center / cover no-repeat;
  }

  /* Overlay más oscuro para que el texto se lea bien */
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.45) 0%,
      rgba(0,0,0,0.75) 60%,
      rgba(0,0,0,0.92) 100%
    );
  }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; text-align: center; }

  /* Secciones */
  .section { padding: 3rem 1.25rem; }
  .section-dark { padding: 3rem 1.25rem; }

  /* Catálogo */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Nosotros */
  .nosotros-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nosotros-logo-box { padding: 2rem 1.5rem; }
  .nosotros-logo-title { font-size: 40px; letter-spacing: 5px; }
  .nosotros-stats { gap: 1.5rem; }

  /* Contacto — una columna */
  .contacto-grid { grid-template-columns: 1fr; }
}

/* --- Móvil (max 480px) --- */
@media (max-width: 480px) {

  /* Navbar */
  nav { height: 56px; padding: 0 1rem; }
  .mobile-menu { top: 56px; }
  .logo-title { font-size: 22px; }
  .logo-sub { font-size: 8px; letter-spacing: 2px; }
  .theme-btn { font-size: 10px; padding: 5px 10px; letter-spacing: 0; }

  /* Hero */
  .hero { min-height: 480px; }
  .hero-content { padding: 0 1rem; }
  .hero-tag { font-size: 9px; letter-spacing: 3px; padding: 3px 12px; }
  .hero-title { font-size: clamp(46px, 15vw, 68px); }
  .hero-sub { font-size: 11px; letter-spacing: 2px; }
  .btn-primary, .btn-outline { font-size: 11px; padding: 11px 16px; }

  /* Secciones */
  .section { padding: 2.5rem 1rem; }
  .section-dark { padding: 2.5rem 1rem; }
  .section-title { font-size: 30px; letter-spacing: 3px; }

  /* Catálogo — 1 columna en móvil chico */
  .grid { grid-template-columns: 1fr; }
  .card-img { aspect-ratio: 4/3; }
  .card-body { padding: 0.75rem; }
  .card-footer { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .wa-btn { width: 100%; justify-content: center; }

  /* Nosotros */
  .nosotros-p { font-size: 14px; }
  .stat-num { font-size: 32px; }
  .nosotros-stats { gap: 1rem; }
  .nosotros-logo-title { font-size: 30px; letter-spacing: 4px; }
  .nosotros-logo-sub { font-size: 9px; letter-spacing: 3px; }

  /* Contacto */
  .contacto-card { padding: 1rem; }
  .contacto-val { font-size: 13px; }

  /* Footer */
  footer { font-size: 10px; padding: 1.5rem 1rem; letter-spacing: 1px; }
}
/* ===== FILTROS CATÁLOGO ===== */
.cat-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cat-chip {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  color: var(--texto-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: capitalize;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  transition: all 0.2s;
  position: relative;
  z-index: 0;
}
.cat-chip:hover {
  border-color: var(--rojo);
  color: var(--texto);
}
.cat-chip.active {
  background: var(--rojo);
  border-color: var(--rojo);
  color: #fff;
}

.catalogo-search {
  position: relative;
  margin-bottom: 1.75rem;
  max-width: 400px;
}
.catalogo-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--texto-muted);
  pointer-events: none;
}
.catalogo-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--texto);
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Barlow', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.catalogo-search input:focus { border-color: var(--rojo); }
.catalogo-search input::placeholder { color: var(--texto-muted); }

/* ===== BADGE FOTOS EN CARD ===== */
.card-fotos-badge {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}