@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@500;600&display=swap');


:root {
  --red: #b51f2b;
  --dark-red: #8f1620;
  --black: #171717;
  --gray: #6f6f6f;
  --light: #f8f6f3;
  --white: #ffffff;
  --border: #eadfdf;
}


/* =========================
   GENERAL
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
}

p {
  margin-bottom: 20px;
}


/* =========================
   MENÚ
========================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 100;

  min-height: 76px;

  padding: 10px 6%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255, 255, 255, 0.94);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(10px);
}


.brand {
  display: flex;
  align-items: center;

  text-decoration: none;
}


.logo {
  width: 48px;
  height: 48px;

  object-fit: contain;
}


.nav {
  display: flex;
  gap: 30px;
}


.nav a {
  color: var(--black);

  text-decoration: none;

  font-size: 0.95rem;

  transition: color 0.2s ease;
}


.nav a:hover {
  color: var(--red);
}


.menu-toggle {
  display: none;

  border: 0;

  background: transparent;

  font-size: 1.7rem;

  cursor: pointer;
}


/* =========================
   INICIO
========================= */

.hero {
  min-height: 100vh;

  display: flex;

  align-items: center;
  justify-content: center;

  background: var(--white);

  padding: 100px 6% 60px;
}


.hero-logo {
  width: 100%;
  height: calc(100vh - 140px);

  display: flex;

  align-items: center;
  justify-content: center;
}


.hero-logo img {
  width: min(78vw, 850px);

  max-height: 78vh;

  object-fit: contain;

  animation: logoAppear 1.2s ease;
}


@keyframes logoAppear {

  from {
    opacity: 0;
    transform: scale(0.94);
  }

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

}


/* =========================
   SECCIONES
========================= */

.section {
  padding: 120px 8%;
}


.section-heading {
  max-width: 720px;

  margin: 0 auto 70px;

  text-align: center;
}


.eyebrow {
  color: var(--red);

  font-size: 0.78rem;

  letter-spacing: 0.18em;

  font-weight: 600;

  margin-bottom: 15px;
}


.section-heading h2 {
  font-size: clamp(2.8rem, 6vw, 5rem);

  margin-bottom: 20px;
}


.section-heading p:last-child {
  color: var(--gray);
}


/* =========================
   COLECCIÓN
========================= */

.collection {
  background: var(--light);
}


.collection-coming {
  max-width: 700px;

  margin: 0 auto;

  padding: 80px 30px;

  text-align: center;

  border: 1px solid var(--border);

  background: var(--white);
}


.collection-coming span {
  color: var(--red);

  font-size: 0.8rem;

  font-weight: 600;

  letter-spacing: 0.2em;
}


.collection-coming p {
  margin-top: 20px;

  color: var(--gray);
}


/* =========================
   NOSOTROS
========================= */

.about {
  background: var(--white);

  padding-top: 140px;

  padding-bottom: 140px;
}


.about-text {
  max-width: 900px;

  margin: 0 auto;
}


.about-text > .eyebrow {
  text-align: center;
}


.about-text > h2 {
  max-width: 850px;

  margin: 0 auto 90px;

  text-align: center;

  font-size: clamp(2.8rem, 6vw, 5.5rem);
}


.story-block {
  max-width: 720px;

  margin: 0 auto 100px;
}


.story-block p {
  color: #444;

  font-size: 1.08rem;
}


.big-line {
  color: var(--red) !important;

  font-family: "Playfair Display", Georgia, serif;

  font-size: clamp(2rem, 4vw, 3.5rem) !important;

  line-height: 1.15;

  margin-bottom: 30px;
}


.story-block.soft {
  padding: 70px 0;

  text-align: center;
}


.story-block.soft p {
  max-width: 650px;

  margin-left: auto;
  margin-right: auto;
}


.quote {
  color: var(--black) !important;

  font-family: "Playfair Display", Georgia, serif;

  font-size: clamp(2rem, 4vw, 3.4rem) !important;

  line-height: 1.2;

  margin-top: 40px;
}


.story-block h3 {
  font-size: clamp(2rem, 4vw, 3.3rem);

  margin-bottom: 35px;
}


.story-highlight {
  margin: 100px auto;

  max-width: 900px;

  padding: 90px 10%;

  text-align: center;

  background: var(--red);

  color: var(--white);
}


.story-highlight p {
  font-size: 1.2rem;
}


.story-highlight .big-statement {
  font-family: "Playfair Display", Georgia, serif;

  font-size: clamp(3rem, 7vw, 6rem);

  line-height: 0.95;

  margin-top: 45px;

  margin-bottom: 0;
}


.values {
  font-family: "Playfair Display", Georgia, serif;

  font-size: clamp(2rem, 4vw, 3.2rem) !important;

  line-height: 1.25;

  color: var(--red) !important;

  margin-top: 35px;
}


.handmade {
  text-align: center;

  padding: 80px 0;

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);
}


.handmade p {
  max-width: 700px;

  margin-left: auto;
  margin-right: auto;
}


.story-ending {
  max-width: 750px;

  margin: 120px auto 0;

  text-align: center;
}


.story-ending h3 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);

  color: var(--red);

  margin: 60px 0 45px;
}


.final-line {
  margin-top: 40px;

  color: var(--red) !important;

  font-family: "Playfair Display", Georgia, serif;

  font-size: clamp(2.5rem, 6vw, 5rem) !important;

  line-height: 1;

  font-weight: 600;
}


/* =========================
   CONTACTO
========================= */

.contact {
  text-align: center;

  background: var(--light);
}


/* =========================
   PIE
========================= */

.footer {
  padding: 30px 8%;

  text-align: center;

  border-top: 1px solid var(--border);

  color: var(--gray);

  font-size: 0.85rem;
}


/* =========================
   MÓVIL
========================= */

@media (max-width: 650px) {

  .header {
    padding: 10px 5%;
  }


  .menu-toggle {
    display: block;
  }


  .nav {
    display: none;

    position: absolute;

    top: 76px;

    left: 0;
    right: 0;

    padding: 20px 5%;

    flex-direction: column;

    gap: 18px;

    background: var(--white);

    border-bottom: 1px solid var(--border);
  }


  .nav.open {
    display: flex;
  }


  .hero {
    padding: 80px 5% 40px;
  }


  .hero-logo {
    height: calc(100vh - 120px);
  }


  .hero-logo img {
    width: 90vw;

    max-height: 65vh;
  }


  .section {
    padding: 80px 6%;
  }


  .about {
    padding-top: 90px;
    padding-bottom: 90px;
  }


  .about-text > h2 {
    margin-bottom: 60px;
  }


  .story-block {
    margin-bottom: 70px;
  }


  .story-highlight {
    margin: 70px auto;

    padding: 70px 8%;
  }


  .story-ending {
    margin-top: 80px;
  }

}
/* ===================================
   ESTILOS DE LA COLECCIÓN
=================================== */

.coleccion-seccion {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.coleccion-seccion h2 {
  font-family: 'Playfair Display', serif, sans-serif;
  font-size: 2.8rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.coleccion-seccion .subtitulo {
  font-size: 1.2rem;
  color: #8b2626;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  font-weight: 600;
}

/* Grilla del catálogo (3 columnas responsivas) */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 1rem;
}

/* Tarjeta individual del producto */
.tarjeta-producto {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1.5rem;
}

.tarjeta-producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Control del tamaño de las imágenes (Máximo 300px de alto) */
.tarjeta-producto img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 1px solid #f0f0f0;
}

/* Título de cada pendiente */
.tarjeta-producto h3 {
  font-family: 'Playfair Display', serif, sans-serif;
  font-size: 1.4rem;
  color: #2c2c2c;
  margin-top: 1.2rem;
  font-weight: 500;
}
/* ===================================
   TAMANO DEL LOGO PRINCIPAL (HEROE)
=================================== */

.heroe {
  padding: 3rem 1rem;
  text-align: center;
}

.logotipo-del-heroe img {
  max-width: 320px !important; /* Limita el ancho del logo */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Cursor de lupa en las fotos de productos */
.tarjeta-producto img {
  cursor: pointer;
}

/* ===================================
   VISOR A PANTALLA COMPLETA (LIGHTBOX)
=================================== */

.visor-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.imagen-ampliada {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  object-fit: contain;
}

.cerrar-visor {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
}
/* --- BANNERS DE COLECCIÓN CON ARTE Y SALERO --- */
.coleccion-seccion {
  margin: 25px auto;
  max-width: 850px;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #8a2b06;
  box-shadow: 0 8px 20px rgba(138, 43, 6, 0.15);
  transition: all 0.3s ease;
}

.coleccion-seccion:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(138, 43, 6, 0.25);
}

/* Cabecera principal como tarjeta de impacto */
.acordeon-cabecera {
  padding: 22px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, #8a2b06 0%, #5a1802 100%);
  transition: all 0.3s ease;
  user-select: none;
}

.acordeon-cabecera:hover {
  background: linear-gradient(135deg, #a03308 0%, #6e1f03 100%);
}

.acordeon-cabecera h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Botón de la flecha con toque dorado */
.flecha-acordeon {
  font-size: 0.9rem;
  color: #8a2b06;
  background: #fdf8f5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d4a373;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

/* Cuando está abierta */
.coleccion-seccion.abierta .acordeon-cabecera {
  border-bottom: 3px solid #d4a373;
}

.coleccion-seccion.abierta .flecha-acordeon {
  transform: rotate(180deg);
  background: #d4a373;
  color: #ffffff;
}

/* Interior del catálogo desplegado */
.coleccion-seccion .catalogo-grid {
  display: none !important;
  padding: 35px 25px;
  background-color: #faf6f3;
}

.coleccion-seccion.abierta .catalogo-grid {
  display: grid !important;
}
/* --- NAVEGACIÓN PRINCIPAL Y DESPLEGABLE CON SALERO --- */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav > a, 
.nav .dropbtn {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #5a200b !important;
  text-decoration: none;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 10px 15px;
  transition: all 0.3s ease;
  position: relative;
}

.nav > a:hover, 
.nav .dropbtn:hover {
  color: #8a2b06 !important;
}

.nav > a::after,
.nav .dropbtn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #d4a373;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav > a:hover::after,
.nav .dropbtn:hover::after {
  width: 80%;
}

.nav .dropdown {
  position: relative;
  display: inline-block;
}

.nav .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0px 10px 25px rgba(138, 43, 6, 0.18);
  border-radius: 12px;
  border: 1px solid #d4a373;
  padding: 8px 0;
  z-index: 1000;
}

.nav .dropdown-content a {
  color: #5a200b !important;
  padding: 12px 20px !important;
  text-decoration: none;
  display: block !important;
  font-size: 0.95rem !important;
  font-weight: 500;
  text-transform: none;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav .dropdown-content a:hover {
  background-color: #faf6f3;
  color: #8a2b06 !important;
  padding-left: 20px !important;
}

.nav .dropdown:hover .dropdown-content {
  display: block;
}

/* Control de visibilidad del catálogo */
.coleccion-seccion .catalogo-grid {
  display: none;
}

.coleccion-seccion.activa .catalogo-grid {
  display: grid !important;
}

/* Forzar plegado del menú móvil */
@media (max-width: 768px) {
  .nav:not(.active) {
    display: none !important;
  }
}
/* Estilos para la imagen ampliada (Lightbox) */
.modal-imagen {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.contenido-modal {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.cerrar-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}
/* --- CORRECCIÓN: BANNER PROMOCIONAL --- */
.banner-promocion {
  background-color: #8a2b06;
  color: #ffffff;
  text-align: center;
  padding: 10px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  line-height: 1.4;
  display: block;
}

/* En móviles, aseguramos que el texto respire y no se corte */
@media (max-width: 768px) {
  .banner-promocion {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
}

/* --- CORRECCIÓN: TARJETAS Y PRECIOS --- */
.tarjeta-producto {
  position: relative; /* Indispensable para la etiqueta Agotado */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible; /* Permite que el precio y la etiqueta se vean bien */
}

.precio-producto {
  color: #8a2b06 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin-top: 8px !important;
  margin-bottom: 6px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* --- CORRECCIÓN: ETIQUETA AGOTADO / VENDIDO --- */
.etiqueta-vendido {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background-color: #8a2b06 !important;
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  padding: 5px 10px !important;
  border-radius: 12px !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
  z-index: 99 !important; /* Fuerza a que aparezca siempre encima de la foto */
  display: inline-block !important;
}
/* --- FIX FINAL Y DEFINITIVO --- */

/* 1. MOSTRAR PRECIOS SIEMPRE */
.catalogo-grid,
.coleccion-seccion,
.tarjeta-producto {
  height: auto !important;
  max-height: none !important;
  min-height: fit-content !important;
  overflow: visible !important;
}

.precio-producto {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #8a2b06 !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

/* 2. BANNER VISIBLE EN ORDENADOR Y MÓVIL */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

header,
.header,
.site-header,
nav {
  position: relative !important;
  top: 0 !important;
}

.banner-promocion {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
  background-color: #8a2b06 !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 10px 12px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
