/* ========================= ROOT VARIABLES ========================= */
:root {
  /* Brand Colors */
  --color-primary: #556ef6;     /* Main brand color */
  --color-primary-dark: #3e58e0;
  --color-dark: #333;
  --color-light: #fff;
  --color-accent: #bf61ff;      /* Extra accent color for highlights or shapes */
  --color-background: #f8faff;  /* Light background used in sections */
  --color-success: #25D366;     /* WhatsApp green */
  --color-danger: #ff5d6c;      /* Example accent if needed */

  /* Typography */
  --font-main: 'Poppins', Arial, sans-serif;
  --font-heading: 'Playfair Display', serif;
  --fs-base: 16px;     /* Base font size (browser default is typically 16px) */
  --fs-h1: clamp(2rem, 5vw, 3rem);
  --fs-h2: clamp(1.8rem, 4vw, 2.4rem);
  --fs-h3: 1.5rem;
  --fs-h4: 1.2rem;
  --fs-body: 1rem;

  /* Spacing & Layout */
  --spacing-section: 4rem;
  --transition-fast: 0.3s ease;
}

/* ========================= BASE STYLES ========================= */
html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-size: var(--fs-base);
  color: var(--color-dark);
  background: var(--color-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin: 0;
}

p {
  margin: 0;
}

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

.loader {
  border: 8px solid #f3f3f3; 
  border-top: 8px solid var(--color-dark);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================= NAVBAR ========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 1rem;
  transition: background-color var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  background: var(--color-light);
  border-radius: 30px;
  padding: 0.5rem 1rem;
  width: 100%;
  max-width: 1800px;
  justify-content: space-between;
}

.navbar.scrolled {
  background: rgba(128, 90, 64, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  text-decoration: none;
  margin-right: 2rem;
}

.main-nav {
  flex: 1;
}

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

.nav-links li a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
  padding-bottom: 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links li a:hover {
  color: #111;
}

.nav-links li a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #111;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 1rem;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: var(--color-dark);
  margin: 4px 0;
  transition: all var(--transition-fast);
}

/* Mobile menu */
@media (max-width: 980px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--color-light);
    position: absolute;
    top: 60px;
    right: 10%;
    padding: 1rem;
    border-radius: 10px;
    z-index: 9999;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: flex;
  }
}

/**************************************************************
 * DROPDOWN MENU (Catalogo Sub-menu)
 **************************************************************/
 .catalogo-dropdown {
  position: relative; /* for positioning the .submenu */
}

.catalogo-dropdown .submenu {
  /* Hide the submenu by default */
  display: none;
  position: absolute;
  top: 100%;           /* or something like top: calc(100% + 5px) if you want a small gap */
  left: 0;
  padding: 1rem 1.5rem;
  min-width: 160px;
  background: var(--color-light);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  opacity: 0;
  transform: translateY(5px);
  z-index: 9999;
}

/* Keep the sub-menu open while hovering the parent or the submenu itself */
.catalogo-dropdown:hover .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Sub-menu item spacing and styling */
.catalogo-dropdown .submenu li {
  margin-bottom: 0.5rem;
}

.catalogo-dropdown .submenu li:last-child {
  margin-bottom: 0;
}

.catalogo-dropdown .submenu li a {
  display: block;
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.catalogo-dropdown .submenu li a:hover {
  color: #111;
}

@media (max-width: 768px) {
  .catalogo-dropdown > a::after {
    content: " ▼ "; /* A simple downward arrow character */
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.85rem; /* Adjust for style */
    color: var(--color-dark);
  }
}

/* ========================= HERO SLIDER ========================= */
.hero-banner {
  position: relative;
  height: 92vh; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-carousel-container {
  display: flex;
  height: 100%;
  width: 300%;
  transition: transform var(--transition-fast);
}

.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-content {
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 50rem;
  color: var(--color-light);
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 2rem;
  border-radius: 8px;
}

.hero-content .subheading {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-button {
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 20px;
  background-color: #222;
  color: var(--color-light);
  border-radius: 5px;
  display: inline-block;
  transition: background-color var(--transition-fast);
}

.cta-button:hover {
  background-color: #555;
}

.indicator-dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
  cursor: pointer;
}

.dot.active {
  background-color: #222;
}

.prev, .next {
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: var(--color-light);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 50%;
  z-index: 10;
  transition: background var(--transition-fast);
}

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.prev {
  left: 1rem;
}

.next {
  right: 1rem;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .cta-button {
    font-size: 0.9rem;
  }
  .indicator-dots {
    bottom: 2%;
  }
  .prev, .next {
    bottom: 45%;
    font-size: 1.2rem;
  }
}

/* ========================= TRES COLUMNAS ========================= */
.tres-columnas {
  display: flex;
  gap: 1rem;
  margin: 2rem;
  position: relative;
  z-index: 1;
}

.columna {
  flex: 1;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.left-column, .right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.info-item i.info-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.product-image {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

.btn {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.btn:hover {
  background-color: #555;
}

.mt-4 {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .tres-columnas {
    flex-direction: column;
    margin: 1rem;
  }
}

/* ========================= CARDS SECTION ========================= */
.bg-secondary {
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.cards-section {
  padding: var(--spacing-section) 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.cards-text {
  flex: 1;
  min-width: 300px;
}

.cards-text h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

.cards-text p {
  margin-bottom: 1.5rem;
}

.cards-text h5 {
  font-size: var(--fs-h4);
  margin-bottom: 0.25rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  flex: 1;
  min-width: 300px;
}

/* Card */
.card {
  border-radius: 16px;
  background: var(--color-light);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
  border: none;
}

.card-hover:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  aspect-ratio: 3 / 5;
  width: 100%;
  height: auto;
  max-height: 300px;  /* or a variable, e.g. var(--card-img-max-height) */
  object-fit: cover; /* ensures the image scales/crops elegantly */
  transition: transform var(--transition-fast);
}

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

.card-body {
  padding: 2rem 1rem;
  text-align: center;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #000;
  margin-top: 1rem;
  margin-bottom: 1.1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(85, 110, 246, 0.4);
}

/* PHONE VIEW REFINEMENTS (example: max-width: 480px or 576px) */
@media (max-width: 768px) {
  /* Give the entire section some breathing room on the sides */
  .cards-section {
    padding: 2rem 1rem;
  }

  /* Stack the row vertically; ensure items are centered */
  .cards-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .card-img-top {
    aspect-ratio: 5 / 3;
  }

  /* Center text and tighten spacing */
  .cards-text {
    text-align: center;
    margin-bottom: 1rem;
  }
  .cards-text h2 {
    font-size: 1.6rem; /* Slightly smaller for phones */
  }

  .cards-text p {
    width: 70%;
    margin: 0 auto;
    margin-bottom: 1rem;
  }

  /* Switch grid to a single column for better readability */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Adjust as needed */
  }

  /* Center each card and give it max-width for symmetric space */
  .card {
    margin: 0 auto;
    max-width: 90%;
  }

  /* Adjust card body paddings, font sizes, etc., if necessary */
  .card-body {
    padding: 1.5rem 1rem;
  }
}

/* ========================= CUSTOM SECTION (MODULAR IMAGE) ========================= */
.custom-section-wrapper {
  width: 100%;
  background: linear-gradient(120deg, #ffffff 40%, #f5f7fa 100%);
}

.custom-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 50px;
  gap: 15%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: none;
}

.custom-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(#2fab61, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
  z-index: 0;
}

.custom-section .left-column {
  max-width: 50%;
  z-index: 1;
}

.custom-section .left-column h1 {
  font-size: var(--fs-h1);
  line-height: 1.2;
  margin-bottom: 24px;
}

.custom-section .left-column .highlight {
  background-image: linear-gradient(
    45deg,
    #88c0d0,
    var(--color-accent),
    var(--color-danger)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position var(--transition-fast);
}

.custom-section .left-column .highlight:hover {
  background-position: 100% 0;
}

.custom-section .left-column p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.custom-section .left-column a.cta-button {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(85, 110, 246, 0.3);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-section .left-column a.cta-button:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 6px 16px rgba(85, 110, 246, 0.4);
}

.custom-section .right-column {
  position: relative;
  width: 50%;
  display: flex;
  justify-content: center;
  z-index: 1;
}

/* 1) Remove the fixed 200px height and rely on aspect ratio.
   2) Use overflow: hidden + object-fit: cover for consistent cropping. */
.image-box {
  position: relative;
  width: clamp(220px, 30vw, 300px);
  aspect-ratio: 2 / 1.85; /* Force 3:5 ratio */
  background-color: #f5f7fa;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.image-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Use width/height 100% + object-fit to maintain the 3:5 ratio. */
.image-box .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.image-box:hover .product-image {
  transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .custom-section {
    flex-direction: column;
    padding: 2rem 1rem;     /* Reduce horizontal padding for phones */
    gap: 2rem;              /* Increase gap since stacked */
    text-align: center;
  }

  .custom-section::before {
    top: 300px;
    right: 0;
  }

  .custom-section .left-column,
  .custom-section .right-column {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;         /* Centering columns */
  }

  .custom-section .left-column h1 {
    font-size: 2rem;        /* Slightly smaller heading on phones */
    margin-bottom: 1rem;
  }

  .image-box {
    width: 70vw;            /* Make it adapt to smaller screens */
    max-width: 300px;       /* Cap to avoid oversized images */
    margin: 0 auto;
  }
}

/* ========================= NEWSLETTER & CONTACT SECTION ========================= */
.newsletter-contact-wrapper {
  width: 100%;
  background: var(--color-background);
}

/* Example: a minimal yet modern vibe using brand accents & subtle shape overlays */
.newsletter-contact-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  padding: var(--spacing-section) 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Optionally add a decorative shape behind the newsletter section */
.newsletter-contact-section::before {
  content: "";
  position: absolute;
  top: 260px;
  left: -7px;
  width: 200px;
  height: 200px;
  background: radial-gradient(var(--color-accent), transparent 70%);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
}

.newsletter-contact-left,
.newsletter-contact-right {
  flex: 1;
  min-width: 280px;
  z-index: 1;
}

.newsletter-contact-left {
  text-align: left;
}

.newsletter-contact-left h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-dark);
}

.newsletter-contact-left p {
  font-size: var(--fs-body);
  color: #555;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 400px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 350px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="tel"] {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: var(--fs-body);
  transition: border-color var(--transition-fast);
}

.newsletter-form input[type="text"]:focus,
.newsletter-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--color-dark);
}

.newsletter-form button {
  background: var(--color-dark);
  color: var(--color-light);
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.newsletter-form button:hover {
  background: #555;
  transform: translateY(-2px);
}

.newsletter-contact-right h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
}

.newsletter-contact-right p {
  font-size: var(--fs-body);
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.contact-list i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.btn-whatsapp {
  display: inline-block;
  background-color: var(--color-success);
  color: var(--color-light);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-whatsapp:hover {
  background-color: #1ebf57;
  transform: translateY(-2px);
}

/* New Creative CTA Buttons */
.btn-creative {
  display: inline-block;
  /* Use a subtle gradient of brand + accent */
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-light);
  border: none; /* Ensures no border line */
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  /* Soft brand-color box-shadow */
  box-shadow: 0 4px 12px rgba(85, 110, 246, 0.3);
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

/* Hover + Press States */
.btn-creative:hover {
  /* Slightly shift the gradient on hover */
  background: linear-gradient(
    45deg,
    var(--color-primary-dark),
    #9a48e6
  );
  box-shadow: 0 6px 16px rgba(85, 110, 246, 0.4);
  transform: translateY(-2px);
}

.btn-creative:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Responsive layout */
@media (max-width: 768px) {
  .newsletter-contact-section {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }
  .newsletter-contact-left,
  .newsletter-contact-right {
    text-align: center;
    min-width: auto;
  }
  .newsletter-form {
    width: 100%;
    max-width: 350px;       /* Keep an upper limit but allow 100% if narrower */
    margin: 0 auto;
  }
  .contact-list li {
    text-align: justify;
  }
}

/* ========================= FOOTER ========================= */
.site-footer {
  background-color: #222;
  color: var(--color-light);
  padding: 3rem 1rem 2rem;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-col {
  flex: 1;
  min-width: 180px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  text-decoration: none;
  color: #ccc;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-social .social-icons a {
  display: inline-block;
  margin-right: 0.75rem;
  color: #ccc;
  transition: color var(--transition-fast);
}

.footer-social .social-icons a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.payment-icons img {
  height: 24px;
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ========================= WHATSAPP FLOAT ========================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

/* ========================= MODAL ========================= */
.modal-overlay {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: 9999;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-light);
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: var(--color-dark);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark);
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
}

.modal-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-dark);
  color: var(--color-light);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: background var(--transition-fast);
}

.modal-button:hover {
  background: #555;
}

/**************************************************************
 * CATALOGO SECTION
 **************************************************************/
/* For the container that holds the iframe, loader, and error message */
.catalogo-main {
  padding: 2rem;
  min-height: 80vh; /* ensures a tall enough area for a luxurious look */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--color-background);
}

.catalogo-main h1,
.catalogo-main #catalogo-title {
  font-size: var(--fs-h2);
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-dark);
}

.catalogo-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  padding-bottom: 2rem; /* extra space beneath iframe for a clean look */
}

/* Loader overlay, covering the iframe area with a semi-opaque backdrop */
#loader-overlay {
  display: none; /* default hidden */
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  z-index: 10;
}

/* The spinning loader is defined with .loader & @keyframes spin
   - no changes needed unless you want to refine its size or border color. */

/* Iframe styling: warm, minimal border, subtle shadow for an upscale look */
#catalogo-iframe {
  display: none; /* hidden until loaded by JS */
  width: 100%;
  min-height: 600px; /* ensures a consistent tall view */
  border: none;
  border-radius: 8px;
  background: var(--color-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
}

/* Error message styling for non-existent categories */
#error-message {
  display: none; /* default hidden */
  text-align: center;
  color: var(--color-danger);
  margin-top: 2rem;
  font-weight: 600;
  font-size: 1.1rem;
}