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

:root {
  --oro: #C9A227;
  --oro-dark: #8B6914;
  --oro-light: #E8C547;
  --negro: #0D0D0D;
  --madera: #1E1208;
  --madera-media: #2A1A0E;
  --piedra: #2C2825;
  --piedra-media: #3D3530;
  --pergamino: #F2E3C0;
  --pergamino-dark: #C8B48A;
  --texto: #E8D5A3;
  --wa: #1a7a42;
  --wa-dark: #155e35;
  --radio: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--texto);
  background: var(--negro);
}

/* ── ORNAMENTO DIVISOR ── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--oro));
}
.ornament::after {
  background: linear-gradient(to left, transparent, var(--oro));
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--madera);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  border-bottom: 2px solid var(--oro-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--pergamino-dark);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .2s;
}

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

.nav-wa {
  background: var(--wa);
  color: #fff !important;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif !important;
  transition: background .2s !important;
}

.nav-wa:hover { background: var(--wa-dark) !important; color: #fff !important; }

/* ── HERO ── */
#inicio {
  background: radial-gradient(ellipse at top, #2A1A0E 0%, #0D0D0D 70%);
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 6rem 5% 4rem;
  position: relative;
  overflow: hidden;
  gap: 3rem;
  border-bottom: 2px solid var(--oro-dark);
}

#inicio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.03'%3E%3Cpath d='M40 40l20-20M40 40l-20-20M40 40l20 20M40 40l-20 20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; }

.hero-badge {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--oro-dark);
  color: var(--oro);
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .4rem 1.2rem;
  border-radius: 2px;
  margin-bottom: .8rem;
}

.hero-slogan {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--oro);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(201,162,39,.4);
}

.hero-content h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--pergamino);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--oro);
}

.hero-content p {
  color: var(--pergamino-dark);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 480px;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: .9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.3);
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-wa:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.4);
}

.btn-wa svg { flex-shrink: 0; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--oro-dark);
}

.stat { color: var(--pergamino); }
.stat strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--oro);
}
.stat span { font-size: .8rem; color: var(--pergamino-dark); }

.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner img {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(201,162,39,.25));
}

/* ── SECCIONES GENERALES ── */
section { padding: 5rem 5%; }

.section-label {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.section-label::before,
.section-label::after {
  content: '✦';
  font-size: .6rem;
  opacity: .7;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--pergamino);
  margin-bottom: 1rem;
  letter-spacing: .5px;
}

.section-sub {
  color: var(--pergamino-dark);
  font-size: .95rem;
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* ── PRODUCTOS ── */
#productos { background: var(--madera); border-top: 1px solid var(--oro-dark); border-bottom: 1px solid var(--oro-dark); }

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}

.producto-card {
  background: var(--piedra);
  border-radius: var(--radio);
  padding: 1.6rem 1rem;
  text-align: center;
  border: 1px solid #3D3530;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: default;
}

.producto-card:hover {
  border-color: var(--oro);
  box-shadow: 0 4px 24px rgba(201,162,39,.15);
  transform: translateY(-3px);
}

.producto-card .icono {
  font-size: 2.4rem;
  margin-bottom: .8rem;
  display: block;
}

.producto-card h3 {
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--oro);
  margin-bottom: .3rem;
  letter-spacing: .5px;
}

.producto-card p {
  font-size: .78rem;
  color: var(--pergamino-dark);
  line-height: 1.5;
}

/* ── POR QUÉ ELEGIRNOS ── */
#ventajas { background: var(--negro); }

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.ventaja-card {
  background: var(--piedra);
  border-radius: var(--radio);
  padding: 1.8rem;
  border-left: 3px solid var(--oro);
  border-top: 1px solid #3D3530;
  border-right: 1px solid #3D3530;
  border-bottom: 1px solid #3D3530;
}

.ventaja-card .v-icon {
  font-size: 2rem;
  margin-bottom: .8rem;
  display: block;
}

.ventaja-card h3 {
  font-family: 'Cinzel', serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--oro);
  margin-bottom: .4rem;
  letter-spacing: .5px;
}

.ventaja-card p {
  font-size: .875rem;
  color: var(--pergamino-dark);
  line-height: 1.6;
}

/* ── RESEÑAS ── */
#resenas { background: var(--madera); border-top: 1px solid var(--oro-dark); border-bottom: 1px solid var(--oro-dark); }

.resenas-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.resenas-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--piedra);
  border: 1px solid var(--oro-dark);
  border-radius: var(--radio);
  padding: 1.5rem 2rem;
  min-width: 140px;
}

.resenas-score .score-num {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--oro);
  line-height: 1;
}

.resenas-score .score-stars { color: var(--oro); font-size: 1.3rem; letter-spacing: 2px; margin: .3rem 0; }
.resenas-score .score-total { font-size: .8rem; color: var(--pergamino-dark); font-weight: 600; }

.resenas-score .google-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .8rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--pergamino-dark);
}

.resenas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.resena-card {
  background: var(--piedra);
  border: 1px solid #3D3530;
  border-radius: var(--radio);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: transform .2s, border-color .2s;
}

.resena-card:hover {
  transform: translateY(-3px);
  border-color: var(--oro-dark);
}

.resena-autor { display: flex; align-items: center; gap: .8rem; }

.resena-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--oro-dark);
  color: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--oro);
}

.resena-autor-info strong { display: block; font-size: .9rem; font-weight: 700; color: var(--pergamino); }
.resena-autor-info span { font-size: .75rem; color: var(--pergamino-dark); }
.resena-stars { color: var(--oro); font-size: 1rem; letter-spacing: 1px; }
.resena-texto { font-size: .875rem; color: var(--pergamino-dark); line-height: 1.6; font-style: italic; }

/* ── UBICACIÓN ── */
#ubicacion { background: var(--negro); }

.ubicacion-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}

.info-icon {
  background: radial-gradient(circle, rgba(201,162,39,.25) 0%, rgba(201,162,39,.08) 50%, transparent 75%);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: none;
}

.info-icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(201,162,39,.7)) drop-shadow(0 0 16px rgba(201,162,39,.3));
}

.info-item h3 {
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--oro);
  margin-bottom: .2rem;
  letter-spacing: .5px;
}

.info-item p { font-size: .875rem; color: var(--pergamino-dark); line-height: 1.6; }

.mapa-placeholder {
  position: relative;
  border-radius: var(--radio);
  height: 520px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

.mapa-placeholder iframe {
  position: absolute;
  top: 70px;
  left: 65px;
  right: 65px;
  bottom: 85px;
  width: calc(100% - 130px);
  height: calc(100% - 155px);
  border: none;
  z-index: 1;
}

.map-mobile { display: none; }
.map-desktop { display: block; }

.mapa-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/mapa_medieval.webp') center / 100% 100% no-repeat;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .mapa-placeholder { height: 420px; }
  .mapa-placeholder iframe {
    top: 38px; left: 32px; right: 32px; bottom: 48px;
    width: calc(100% - 64px);
    height: calc(100% - 86px);
  }
  .map-mobile { display: block; }
  .map-desktop { display: none; }
}

/* ── BOTÓN GOOGLE MAPS ── */
.btn-gmaps {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: transparent;
  color: var(--oro);
  font-family: 'Cinzel', serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: .7rem 1.4rem;
  border: 1px solid var(--oro-dark);
  border-radius: var(--radio);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  width: 100%;
  justify-content: center;
}

.btn-gmaps:hover {
  background: var(--oro-dark);
  color: var(--negro);
  border-color: var(--oro);
}

/* ── CTA FINAL ── */
#contacto {
  background: radial-gradient(ellipse at center, #2A1A0E 0%, #0D0D0D 100%);
  text-align: center;
  border-top: 2px solid var(--oro-dark);
}

#contacto .section-title { color: var(--oro); }
#contacto .section-sub { color: var(--pergamino-dark); margin-inline: auto; }

.btn-wa-lg {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
  transition: background .2s, transform .15s;
}

.btn-wa-lg:hover { background: var(--wa-dark); transform: translateY(-2px); }

/* ── MARCAS CARRUSEL ── */
#marcas {
  background: var(--madera);
  padding: 3.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--oro-dark);
  border-bottom: 1px solid var(--oro-dark);
}

.marcas-header { text-align: center; padding: 0 5% 2rem; }

.marcas-wrapper { position: relative; overflow: hidden; }

.marcas-wrapper::before,
.marcas-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marcas-wrapper::before { left: 0; background: linear-gradient(to right, var(--madera), transparent); }
.marcas-wrapper::after  { right: 0; background: linear-gradient(to left, var(--madera), transparent); }

.marcas-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 36s linear infinite;
  padding: 8px 0;
}

.marcas-track:hover { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marca-card {
  width: 140px;
  height: 72px;
  border-radius: var(--radio);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: .3rem .5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  cursor: default;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(201,162,39,.2);
}

.marca-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201,162,39,.2);
  border-color: var(--oro);
}

.marca-card .m-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .5px;
}

.marca-card .m-sub {
  font-family: 'Inter', sans-serif;
  font-size: .6rem;
  font-weight: 600;
  opacity: .85;
  margin-top: 3px;
  line-height: 1.2;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── PARALLAX ── */
.parallax {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #0D0D0D;
}

.parallax-bg {
  position: absolute;
  top: -70%;
  left: 0;
  right: 0;
  bottom: -70%;
  background-image: url('../img/banner_especial.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1;
}

@media (max-width: 768px) {
  .parallax { height: 260px; }
}

/* ── FOOTER ── */
footer {
  background: var(--madera);
  color: var(--pergamino-dark);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .82rem;
  border-top: 2px solid var(--oro-dark);
}

footer span { color: var(--oro); font-family: 'Cinzel', serif; }

/* ── HAMBURGUESA ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--oro);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--madera);
    padding: 1rem 0 1.5rem;
    border-bottom: 2px solid var(--oro-dark);
    box-shadow: 0 8px 24px rgba(0,0,0,.6);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: .9rem 5%;
    font-size: .9rem;
    border-bottom: 1px solid rgba(201,162,39,.1);
  }

  .nav-links li:last-child a {
    margin: 1rem 5% 0;
    text-align: center;
    border-bottom: none;
    border-radius: 50px;
  }

  #inicio { grid-template-columns: 1fr; }
  .hero-banner { order: -1; }
  .hero-banner img { max-width: 80%; margin: 0 auto; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .ubicacion-wrapper { grid-template-columns: 1fr; }
  .mapa-placeholder { height: 220px; }
}

/* ── FLOATING WA BUTTON ── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  z-index: 200;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
