@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #9a7b2e;
  --black: #0a0a0a;
  --dark: #111111;
  --dark-card: #1a1a1a;
  --dark-surface: #141414;
  --white: #f5f0e8;
  --gray: #888;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 60px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  padding: 12px 60px;
  box-shadow: 0 2px 30px rgba(201,168,76,0.08);
}
.nav-logo img { height: 60px; transition: height 0.3s; }
.navbar.scrolled .nav-logo img { height: 45px; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 28px; height: 2px; background: var(--gold); transition: 0.3s; }

/* === HERO === */
.hero {
  position: relative; height: 100vh; display: flex;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/hero.png') center/cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
}
.hero-content {
  position: relative; text-align: center; z-index: 2;
  animation: fadeUp 1.2s ease forwards;
}
.hero-content img { width: 180px; margin-bottom: 20px; filter: drop-shadow(0 0 30px rgba(201,168,76,0.3)); }
.hero-content h1 {
  font-family: var(--font-display); font-size: 4rem; font-weight: 700;
  color: var(--gold); margin-bottom: 10px;
  text-shadow: 0 0 40px rgba(201,168,76,0.2);
}
.hero-content .slogan {
  font-size: 1.3rem; font-weight: 300; letter-spacing: 6px;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 40px;
}
.hero-content .gold-line {
  width: 80px; height: 2px; background: var(--gold);
  margin: 0 auto 30px; animation: expandLine 1.5s ease forwards 0.5s;
  transform: scaleX(0);
}
.btn-gold {
  display: inline-block; padding: 16px 48px;
  border: 1.5px solid var(--gold); color: var(--gold);
  text-decoration: none; text-transform: uppercase;
  letter-spacing: 3px; font-size: 0.8rem; font-weight: 600;
  transition: all 0.4s ease; position: relative; overflow: hidden;
}
.btn-gold::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold); transform: translateX(-101%);
  transition: transform 0.4s ease;
}
.btn-gold:hover { color: var(--black); }
.btn-gold:hover::before { transform: translateX(0); }
.btn-gold span { position: relative; z-index: 1; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  animation: bounce 2s infinite;
}
.scroll-indicator span {
  display: block; width: 20px; height: 20px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); margin: -5px;
}

/* === SECTION SHARED === */
.section { padding: 100px 60px; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 {
  font-family: var(--font-display); font-size: 2.8rem;
  color: var(--gold); margin-bottom: 15px;
}
.section-header p { color: var(--gray); font-size: 1rem; font-weight: 300; letter-spacing: 1px; }
.section-header .line {
  width: 60px; height: 2px; background: var(--gold);
  margin: 20px auto 0;
}

/* === ABOUT === */
.about { background: var(--dark-surface); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto;
}
.about-image { position: relative; overflow: hidden; border-radius: 4px; }
.about-image img { width: 100%; display: block; transition: transform 0.6s; }
.about-image:hover img { transform: scale(1.05); }
.about-image::after {
  content: ''; position: absolute; inset: 10px;
  border: 1px solid var(--gold); pointer-events: none; opacity: 0.5;
}
.about-text h3 {
  font-family: var(--font-display); font-size: 2rem;
  color: var(--gold); margin-bottom: 20px;
}
.about-text p { color: #bbb; line-height: 1.9; font-weight: 300; margin-bottom: 15px; }
.about-features {
  display: flex; gap: 30px; margin-top: 30px;
}
.feature-item { text-align: center; }
.feature-item .icon { font-size: 2rem; color: var(--gold); margin-bottom: 8px; }
.feature-item span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gray); }

/* === PRODUCTS === */
.products { background: var(--black); }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; max-width: 1200px; margin: 0 auto;
}
.product-card {
  position: relative; overflow: hidden; border-radius: 4px;
  background: var(--dark-card); cursor: pointer;
  transition: transform 0.4s, box-shadow 0.4s;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(201,168,76,0.12);
}
.product-card .card-img { position: relative; overflow: hidden; aspect-ratio: 1; }
.product-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s;
}
.product-card:hover .card-img img { transform: scale(1.1); }
.product-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 25px;
  opacity: 0; transition: opacity 0.4s;
}
.product-card:hover .card-overlay { opacity: 1; }
.card-overlay .overlay-text h4 {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--gold);
}
.card-overlay .overlay-text p { font-size: 0.85rem; color: #ccc; margin-top: 5px; }
.product-card .card-body { padding: 20px; }
.product-card .card-body h4 {
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--white); margin-bottom: 6px;
}
.product-card .card-body p { color: var(--gray); font-size: 0.85rem; font-weight: 300; }

/* === QUALITY BANNER === */
.quality-banner {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark));
  padding: 60px; text-align: center;
}
.quality-banner h3 {
  font-family: var(--font-display); font-size: 2rem;
  color: var(--black); margin-bottom: 10px;
}
.quality-banner p { color: rgba(0,0,0,0.7); font-weight: 400; font-size: 1.05rem; }

/* === TESTIMONIALS === */
.testimonials { background: var(--dark-surface); }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; max-width: 1000px; margin: 0 auto;
}
.testimonial-card {
  background: var(--dark-card); border: 1px solid rgba(201,168,76,0.15);
  padding: 40px 30px; border-radius: 4px; text-align: center;
  transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: var(--gold); }
.testimonial-card .stars { color: var(--gold); font-size: 1rem; margin-bottom: 20px; letter-spacing: 3px; }
.testimonial-card p { font-style: italic; color: #bbb; line-height: 1.8; font-weight: 300; margin-bottom: 20px; }
.testimonial-card .author { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; }

/* === CONTACT === */
.contact { background: var(--black); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; max-width: 1100px; margin: 0 auto;
}
.contact-info h3 {
  font-family: var(--font-display); font-size: 1.8rem;
  color: var(--gold); margin-bottom: 25px;
}
.contact-info p { color: #bbb; line-height: 1.8; font-weight: 300; margin-bottom: 30px; }
.contact-item {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 22px; padding: 16px 20px;
  background: var(--dark-card); border-radius: 4px;
  border: 1px solid rgba(201,168,76,0.1);
  transition: border-color 0.3s, transform 0.3s;
  text-decoration: none;
}
.contact-item:hover { border-color: var(--gold); transform: translateX(5px); }
.contact-item .ci-icon { font-size: 1.5rem; color: var(--gold); min-width: 30px; text-align: center; }
.contact-item .ci-text span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gray); }
.contact-item .ci-text p { color: var(--white); font-size: 0.95rem; margin-top: 3px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form input, .contact-form textarea {
  background: var(--dark-card); border: 1px solid rgba(201,168,76,0.15);
  padding: 16px 20px; color: var(--white); font-family: var(--font-body);
  font-size: 0.9rem; border-radius: 4px; outline: none;
  transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button {
  padding: 16px; background: var(--gold); color: var(--black);
  border: none; font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; border-radius: 4px; transition: all 0.3s;
}
.contact-form button:hover { background: var(--gold-light); transform: translateY(-2px); }

/* === FOOTER === */
.footer {
  background: var(--dark); border-top: 1px solid rgba(201,168,76,0.1);
  padding: 50px 60px 30px; text-align: center;
}
.footer-logo img { height: 50px; margin-bottom: 15px; }
.footer-slogan { color: var(--gray); font-size: 0.85rem; letter-spacing: 3px; margin-bottom: 25px; }
.footer-social { display: flex; justify-content: center; gap: 20px; margin-bottom: 25px; }
.footer-social a {
  width: 44px; height: 44px; border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); text-decoration: none; font-size: 1.1rem;
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--gold); color: var(--black); }
.footer-copy { color: #555; font-size: 0.75rem; letter-spacing: 1px; }

/* WhatsApp floating */
.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 60px; height: 60px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.7rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes expandLine { to { transform: scaleX(1); } }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .navbar { padding: 15px 25px; }
  .navbar.scrolled { padding: 10px 25px; }
  .nav-links { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(10,10,10,0.98); flex-direction: column;
    align-items: center; justify-content: center; gap: 30px;
  }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .menu-toggle { display: flex; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content .slogan { font-size: 1rem; letter-spacing: 3px; }
  .section { padding: 70px 25px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 2rem; }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

/*=============================================================================*/
/* MODAL CATALOGO STYLES */
/*=============================================================================*/
.catalog-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.catalog-modal.active {
  display: flex;
}

.modal-content {
  background: #0d0d0d;
  background-image: radial-gradient(circle at top right, rgba(220, 185, 115, 0.05), transparent 400px);
  border: 1px solid rgba(220, 185, 115, 0.25);
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  border-radius: 15px;
  padding: 2.5rem;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  color: #dcb973;
  transform: rotate(90deg);
}

.modal-title {
  color: #dcb973;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(220, 185, 115, 0.15);
  padding-bottom: 1rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}

.modal-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}


.modal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 185, 115, 0.3);
}

.modal-card-image {
  width: 100%;
  height: 220px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modal-card:hover .modal-card-image img {
  transform: scale(1.05);
}

.modal-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.modal-card-body h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.modal-card-body p {
  color: #9c9c9c;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.modal-availability {
  font-size: 0.85rem !important;
  color: #dcb973 !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-shadow: 0 0 10px rgba(220, 185, 115, 0.25);
}

.modal-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-wa-btn:hover {
  background: #128c7e;
  transform: translateY(-1px);
}

.modal-footer-close {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-bottom-close-btn {
  background: transparent;
  border: 1px solid rgba(220, 185, 115, 0.4);
  color: #dcb973;
  padding: 0.8rem 2.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-bottom-close-btn:hover {
  background: #dcb973;
  color: #0d0d0d;
  box-shadow: 0 4px 15px rgba(220, 185, 115, 0.2);
}

@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    max-height: 95vh;
  }
  .modal-title {
    font-size: 1.5rem;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* === ¿CÓMO ENCARGAR? SECTION === */
.how-to-order {
  background: #0a0a0a;
}

.how-to-order-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.how-to-order-img-wrapper {
  max-width: 450px;
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(220, 185, 115, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(220, 185, 115, 0.1);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.how-to-order-img-wrapper:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 185, 115, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(220, 185, 115, 0.2);
}

.how-to-order-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* === OVERRIDE FOR CADENAS IMAGE RESOLUTION (NO CROP) === */
#modal-cadenas .modal-card-image img {
  object-fit: contain;
}


