/* ===================================================== */
/* ===============  BLACK HOUSE MADRID  ================= */
/* ===============  Rediseño premium      ============== */
/* ===================================================== */

:root {
  --color-accent: #F5C400;       /* dorado de marca */
  --color-accent-dark: #d4a900;
  --color-dark: #0a0a0a;         /* negro de marca (nav, hero, footer) */
  --color-light: #ffffff;
  --color-soft: #f9f9f9;         /* gris muy suave para alternar secciones */
  --color-text: #444444;         /* texto de cuerpo */
  --color-text-soft: #777777;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --nav-height: 64px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ===== Eyebrow (subtítulo pequeño sobre los títulos) ===== */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-accent);
  margin: 0 0 0.8rem;
}
.eyebrow-dark { color: var(--color-accent-dark); }

/* ===== Encabezado de sección ===== */
.seccion-encabezado {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 0 20px;
}
.seccion-encabezado h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-dark);
  margin: 0;
}
.divisor {
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 1.2rem auto 0;
  border-radius: 4px;
}

/* Secciones de contenido */
section {
  padding: 80px 20px;
}
.seccion-soft { background-color: var(--color-soft); }

/* ===================================================== */
/* ===================  NAVEGACIÓN  ==================== */
/* ===================================================== */
.nav-fija {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px;
  background-color: var(--color-dark);
  border-bottom: 1px solid rgba(245, 196, 0, 0.18);
  z-index: 1000;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--color-accent); }

.nav-toggle {
  display: block;
  background: transparent;
  border: 1px solid rgba(245, 196, 0, 0.5);
  color: var(--color-accent);
  font-size: 20px;
  line-height: 1;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* Menú desplegable (móvil por defecto) */
.nav-links {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px 16px;
  background-color: var(--color-dark);
  border-bottom: 1px solid rgba(245, 196, 0, 0.18);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.nav-fija.abierto .nav-links { display: flex; }

.nav-links a {
  color: #e8e8e8;
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-accent); }

.nav-links a.solo-movil {
  display: block;
  color: var(--color-accent);
  border-bottom: none;
  margin-top: 6px;
}

.nav-login { display: none; }

/* ===================================================== */
/* ======================  HERO  ====================== */
/* ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) 20px 40px;
  background: var(--color-dark) url("img/header.png") center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
}
.hero-contenido {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-contenido .eyebrow { color: var(--color-accent); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1.1;
  color: #fff;
  margin: 0 0 1rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 300;
  color: #e4e4e4;
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* Botón CTA sólido sobre el hero (resalta sobre el fondo recargado) */
.btn-outline {
  display: inline-block;
  padding: 15px 38px;
  background-color: var(--color-accent);
  border: 2px solid var(--color-accent);
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  transition: all 0.25s;
}
.btn-outline:hover {
  background-color: transparent;
  color: var(--color-accent);
}

/* ===================================================== */
/* ===================  CATEGORÍAS  ==================== */
/* ===================================================== */
.grid-categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.cat-card {
  text-decoration: none;
  background-color: var(--color-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}
.cat-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.cat-card:hover .cat-img img { transform: scale(1.06); }
.cat-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-accent-dark);
  text-align: center;
  margin: 0;
  padding: 18px 14px 22px;
}

/* ===================================================== */
/* ====================  GALERÍAS  ==================== */
/* ===================================================== */
.imagenes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.imagenes img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}
.imagenes img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  filter: brightness(0.95);
}

/* ===================================================== */
/* =====================  VIDEOS  ===================== */
/* ===================================================== */
.feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.reel {
  background-color: var(--color-light);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.reel video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}
.reel p {
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-text-soft);
  margin: 10px 0 6px;
}

/* ===================================================== */
/* ====================  CONTACTO  ==================== */
/* ===================================================== */
.contacto form {
  max-width: 460px;
  margin: 0 auto;
}
.contacto input,
.contacto textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background-color: #fff;
  color: var(--color-text);
}
.contacto textarea { min-height: 130px; resize: vertical; }
.contacto input:focus,
.contacto textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.contacto button {
  width: 100%;
  padding: 15px;
  background-color: var(--color-dark);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
.contacto button:hover {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

/* ===================================================== */
/* =====================  FOOTER  ===================== */
/* ===================================================== */
.footer {
  background-color: var(--color-dark);
  color: #cfcfcf;
  text-align: center;
  padding: 56px 20px 40px;
}
.footer-marca {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.footer-marca span { color: var(--color-accent); }
.footer-desc {
  color: #9a9a9a;
  margin: 8px 0 22px;
  font-size: 0.95rem;
}
/* Redes sociales del footer */
.footer-redes {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 26px;
}
.red-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(245, 196, 0, 0.45);
  color: #cfcfcf;
  transition: all 0.25s;
}
.red-social svg {
  width: 20px;
  height: 20px;
}
.red-social:hover {
  background-color: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}
.footer-copy {
  color: #6f6f6f;
  font-size: 0.82rem;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
}

/* ===================================================== */
/* ================  WHATSAPP FLOTANTE  =============== */
/* ===================================================== */
.boton-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background-color: #25D366;   /* verde oficial de WhatsApp */
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s, box-shadow 0.25s;
}
.boton-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.boton-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

/* ===================================================== */
/* ======================  MODAL  ===================== */
/* ===================================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  padding: 30px;
}
.modal.abierto { display: flex; }
.modal-contenido {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  animation: zoomImagen 0.3s ease;
}
.cerrar {
  position: absolute;
  top: 18px;
  right: 30px;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}
@keyframes zoomImagen {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===================================================== */
/* =============  ANIMACIONES DE ENTRADA  ============= */
/* ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================== */
/* ==============  ESCRITORIO (≥ 769px)  ============== */
/* ===================================================== */
@media (min-width: 769px) {
  .nav-toggle { display: none; }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: none;
    max-height: none;
    overflow: visible;
  }
  .nav-links a {
    border-bottom: none;
    padding: 8px 14px;
    font-size: 0.92rem;
  }
  .nav-links a.solo-movil { display: none; }

  .nav-login {
    display: inline-block;
    color: var(--color-accent);
    border: 1px solid rgba(245, 196, 0, 0.5);
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: all 0.2s;
  }
  .nav-login:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
  }

  section { padding: 100px 40px; }
}

/* Margen para que los anchors no queden tapados por la barra fija */
section[id] { scroll-margin-top: var(--nav-height); }
