/*
Theme Name: El Mundo Decorex
Theme URI: https://elmundodecorex.com
Author: Saul Romero
Description: Tema tipo Landing Page optimizado para catálogo y cotización de acabados y remodelación en Puebla.
Version: 1.0.0
Text Domain: mundo-decorex
*/

:root {
  --primary-color: #0d3b2e;
  --primary-dark: #07221a;
  --accent-color: #e6631e;
  --accent-hover: #cf5315;
  --text-dark: #1f2937;
  --text-muted: #5b6574;
  --bg-light: #f7f9f8;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --whatsapp-color: #25d366;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: all 0.3s ease-in-out;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-dark); background-color: var(--bg-white); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary-color); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 85px 0; }
.section-title-wrap { text-align: center; margin-bottom: 50px; }
.badge-tag { display: inline-block; background: rgba(230, 99, 30, 0.12); color: var(--accent-color); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 6px 16px; border-radius: 50px; margin-bottom: 12px; }
.section-title { font-size: 2.3rem; margin-bottom: 15px; }
.section-desc { color: var(--text-muted); max-width: 680px; margin: 0 auto; font-size: 1.05rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; padding: 13px 28px; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.btn-accent { background-color: var(--accent-color); color: #fff; }
.btn-accent:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(230, 99, 30, 0.3); }
.btn-outline-white { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--primary-color); }

.site-header { position: sticky; top: 0; width: 100%; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); z-index: 999; transition: var(--transition); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-symbol { width: 42px; height: 42px; background: var(--primary-color); border-left: 6px solid var(--accent-color); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; font-weight: 800; }
.brand-text h2 { font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.5px; }
.brand-text span { color: var(--accent-color); }
.brand-text p { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; }
.nav-menu { display: flex; list-style: none; gap: 28px; }
.nav-link { font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem; color: var(--primary-dark); position: relative; }
.nav-link::after { content: ''; position: absolute; width: 0%; height: 2px; background: var(--accent-color); bottom: -4px; left: 0; transition: var(--transition); }
.nav-link:hover::after { width: 100%; }
.header-cta-btn { display: inline-flex; }
.mobile-toggle { display: none; font-size: 1.5rem; background: none; border: none; color: var(--primary-color); cursor: pointer; }

.hero-section { position: relative; min-height: 85vh; display: flex; align-items: center; background: linear-gradient(rgba(13, 59, 46, 0.88), rgba(7, 34, 26, 0.92)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; color: #fff; }
.hero-content { max-width: 780px; padding: 40px 0; }
.hero-badges { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.hero-badge-pill { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(5px); padding: 6px 14px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.25); }
.hero-badge-pill i { color: var(--accent-color); margin-right: 6px; }
.hero-title { font-size: 3.2rem; color: #fff; line-height: 1.15; margin-bottom: 22px; }
.hero-title span { color: #ff9359; }
.hero-subtitle { font-size: 1.18rem; color: #e2e8f0; margin-bottom: 35px; line-height: 1.7; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-top: 20px; }
.feature-card { background: var(--bg-light); padding: 38px 26px; border-radius: 10px; border-bottom: 4px solid transparent; transition: var(--transition); }
.feature-card:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow-lg); border-bottom: 4px solid var(--accent-color); }
.feature-icon-box { width: 60px; height: 60px; background: rgba(13, 59, 46, 0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--primary-color); margin-bottom: 20px; transition: var(--transition); }
.feature-card:hover .feature-icon-box { background: var(--accent-color); color: #fff; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

.catalog-section { background-color: var(--bg-light); }
.catalog-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn { padding: 10px 22px; background: #fff; border: 1px solid var(--border-color); border-radius: 50px; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; cursor: pointer; color: var(--text-dark); transition: var(--transition); }
.tab-btn.active, .tab-btn:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.catalog-item { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; }
.catalog-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.catalog-img-wrap { position: relative; height: 220px; overflow: hidden; }
.catalog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.catalog-item:hover .catalog-img-wrap img { transform: scale(1.08); }
.category-tag { position: absolute; top: 12px; left: 12px; background: rgba(13, 59, 46, 0.85); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; }
.catalog-details { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.catalog-details h4 { font-size: 1.18rem; margin-bottom: 8px; }
.catalog-details p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; flex-grow: 1; }
.btn-quote-item { width: 100%; padding: 10px; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 6px; color: var(--primary-color); font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: var(--transition); }
.btn-quote-item:hover { background: var(--whatsapp-color); color: #fff; border-color: var(--whatsapp-color); }

.ba-slider-container { max-width: 900px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.before-after-wrapper { position: relative; width: 100%; height: 480px; overflow: hidden; user-select: none; }
.ba-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-overlay { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; }
.ba-overlay .ba-img { width: 900px; max-width: none; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; transform: translateX(-50%); cursor: ew-resize; z-index: 10; }
.ba-handle-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; background: var(--accent-color); border: 3px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); }
.ba-label { position: absolute; bottom: 18px; padding: 6px 14px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; border-radius: 4px; text-transform: uppercase; z-index: 5; }
.ba-label.before { right: 18px; }
.ba-label.after { left: 18px; }

.contact-card-box { background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.contact-form-side { padding: 45px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 6px; font-family: var(--font-body); font-size: 0.95rem; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(13, 59, 46, 0.1); }
.contact-info-side { background: var(--primary-color); color: #fff; padding: 45px; display: flex; flex-direction: column; justify-content: space-between; }
.info-list { list-style: none; margin: 30px 0; }
.info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.info-item i { font-size: 1.25rem; color: var(--accent-color); margin-top: 4px; }
.info-item h4 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.info-item p { color: #cbd5e1; font-size: 0.92rem; }
.map-preview { border-radius: 8px; overflow: hidden; height: 180px; border: 1px solid rgba(255, 255, 255, 0.2); }

.site-footer { background: var(--primary-dark); color: #94a3b8; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { margin-top: 18px; font-size: 0.9rem; line-height: 1.7; max-width: 380px; }
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; position: relative; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 24px 0; text-align: center; font-size: 0.85rem; }

.floating-whatsapp { position: fixed; bottom: 25px; right: 25px; background-color: var(--whatsapp-color); color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25); z-index: 1000; transition: var(--transition); }
.floating-whatsapp:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }

@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
  .contact-card-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ba-overlay .ba-img { width: 100vw; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-menu { position: absolute; top: 80px; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 25px; box-shadow: var(--shadow-md); display: none; gap: 18px; }
  .nav-menu.active { display: flex; }
  .header-cta-btn { display: none; }
  .hero-title { font-size: 2rem; }
  .before-after-wrapper { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   LOGOTIPO TIPOGRÁFICO EXACTO: EL MUNDO DECOREX
   ========================================================================== */

.decorex-brand-lockup {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  width: auto !important;
  max-width: 280px !important;
  user-select: none !important;
  padding: 4px 0 !important;
}

/* Fila 1: EL MUNDO */
.decorex-top-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  gap: 8px !important;
  line-height: 1 !important;
}

.decorex-green-line {
  flex: 1 !important;
  height: 2px !important;
  background-color: #076a37 !important;
  border-radius: 1px !important;
}

.decorex-sub-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 5px !important;
  color: #111827 !important;
  margin-right: -5px !important; /* Compensa espaciado final */
  white-space: nowrap !important;
}

/* Fila 2: DecoreX (tipografía gruesa y ceñida) */
.decorex-main-row {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 2.3rem !important;
  font-weight: 900 !important;
  line-height: 0.95 !important;
  letter-spacing: -1px !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 3px 0 2px 0 !important;
}

.decor-green {
  color: #076a37 !important; /* Verde bosque */
}

.decor-orange {
  color: #ff5500 !important; /* Naranja corporativo */
}

/* Fila 3: Divisor con hojas centrales */
.decorex-leaf-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  gap: 8px !important;
  margin-bottom: 2px !important;
}

.decorex-leaves-svg {
  width: 24px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* Fila 4: Eslogan inferior */
.decorex-bottom-slogan {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.48rem !important;
  font-weight: 800 !important;
  letter-spacing: 3px !important;
  color: #111827 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  width: 100% !important;
  white-space: nowrap !important;
  margin-right: -3px !important;
  opacity: 0.95 !important;
}

/* --- Ajuste Responsivo para Dispositivos Móviles --- */
@media (max-width: 768px) {
  .decorex-brand-lockup {
    max-width: 210px !important;
  }
  .decorex-sub-title {
    font-size: 0.58rem !important;
    letter-spacing: 3.5px !important;
    margin-right: -3.5px !important;
  }
  .decorex-main-row {
    font-size: 1.75rem !important;
  }
  .decorex-leaves-svg {
    width: 18px !important;
    height: 11px !important;
  }
  .decorex-bottom-slogan {
    font-size: 0.38rem !important;
    letter-spacing: 2px !important;
    margin-right: -2px !important;
  }
}

/* ==========================================================================
   AJUSTE DE ALTURA Y CENTRADO VERTICAL DEL LOGO
   ========================================================================== */

/* 1. Dar altura cómoda al header para que no apriete el logo */
.site-header .header-inner {
  min-height: 95px !important;
  display: flex !important;
  align-items: center !important;
}

/* 2. Centrado y margen vertical del logotipo */
.decorex-brand-lockup {
  margin: 10px 0 !important;      /* Separa de arriba y abajo equitativamente */
  padding: 6px 0 !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 3. Margen superior extra a la primera línea para despegarla del borde */
.decorex-top-row {
  margin-top: 4px !important;
  padding-top: 2px !important;
}

/* Ajuste responsivo en móviles */
@media (max-width: 768px) {
  .site-header .header-inner {
    min-height: 85px !important;
  }
  .decorex-brand-lockup {
    margin: 8px 0 !important;
  }
}

/* ==========================================================================
   LOGOTIPO VERTICAL EN FOOTER
   ========================================================================== */

.footer-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.footer-decorex-brand {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  width: 100% !important;
  max-width: 240px !important;
  user-select: none !important;
  margin-bottom: 20px !important;
  background: transparent !important;
}

/* 1. Isotipo Arquitectónico */
.footer-d-icon {
  position: relative !important;
  width: 78px !important;
  height: 82px !important;
  display: flex !important;
  align-items: flex-end !important;
  margin-bottom: 10px !important;
}

.footer-chimney {
  width: 22px !important;
  height: 64px !important;
  background-color: #ff6801 !important;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 28%) !important;
  border-radius: 2px 0 0 2px !important;
}

.footer-curve {
  position: absolute !important;
  top: 0 !important;
  left: 15px !important;
  width: 63px !important;
  height: 82px !important;
  border: 11px solid #25d366 !important;
  border-left: none !important;
  border-radius: 0 46px 46px 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.footer-window {
  display: grid !important;
  grid-template-columns: 6px 6px !important;
  grid-gap: 2.5px !important;
  margin-left: 2px !important;
  margin-top: 5px !important;
}

.footer-window span {
  width: 6px !important;
  height: 6px !important;
  background-color: #ffffff !important;
  border-radius: 1px !important;
}

/* 2. Bloque Tipográfico */
.footer-text-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.footer-top-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  gap: 6px !important;
}

.footer-decor-line {
  flex: 1 !important;
  height: 1.5px !important;
  background-color: rgba(255, 255, 255, 0.4) !important;
}

.footer-el-mundo {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 3.5px !important;
  color: #ffffff !important;
  margin-right: -3.5px !important;
  white-space: nowrap !important;
}

.footer-main-row {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 2.1rem !important;
  font-weight: 900 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.5px !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 4px 0 2px 0 !important;
}

.footer-txt-decor {
  color: #ffffff !important;
}

.footer-txt-x {
  color: #ff6801 !important;
}

.footer-leaf-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  gap: 6px !important;
  margin-bottom: 3px !important;
}

.footer-leaves-svg {
  width: 22px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.footer-slogan {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.45rem !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  color: #cbd5e1 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  width: 100% !important;
  white-space: nowrap !important;
  margin-right: -2px !important;
}

/* Adaptación móvil */
@media (max-width: 768px) {
  .footer-brand {
    align-items: center !important;
    text-align: center !important;
  }
  .footer-decorex-brand {
    max-width: 200px !important;
    margin: 0 auto 20px auto !important;
  }
}

/* ==========================================================================
   SECCIÓN 4: CATÁLOGO DIGITAL Y SISTEMA DE FILTRADO MULTINIVEL
   ========================================================================== */

.catalog-section {
  background-color: var(--bg-light, #f7f9f8);
  position: relative;
}

/* Pestañas Principales */
.main-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.main-tabs-container {
  display: inline-flex;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color, #e2e8f0);
  flex-wrap: wrap;
  justify-content: center;
}

.main-tab-btn {
  padding: 9px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted, #5b6574);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.main-tab-btn:hover {
  color: var(--primary-color, #0d3b2e);
}

.main-tab-btn.active {
  background: var(--primary-color, #0d3b2e);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 59, 46, 0.25);
}

/* Sub-filtros Dinámicos */
.sub-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 35px;
  min-height: 38px;
}

.sub-tabs-container {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.sub-tab-btn {
  padding: 6px 14px;
  border: 1px solid #d4ded9;
  background: #ffffff;
  color: #374151;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-tab-btn:hover {
  border-color: var(--accent-color, #ff6801);
  color: var(--accent-color, #ff6801);
}

.sub-tab-btn.active {
  background: var(--accent-color, #ff6801);
  border-color: var(--accent-color, #ff6801);
  color: #ffffff;
}

/* Cuadrícula de Tarjetas */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf2ef;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(13, 59, 46, 0.12);
  border-color: #d1ded8;
}

.img-wrap {
  position: relative;
  height: 210px;
  background: #0d3b2e;
  overflow: hidden;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .img-wrap img {
  transform: scale(1.06);
}

.category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13, 59, 46, 0.92);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sku-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-color, #ff6801);
  letter-spacing: 1px;
  margin-bottom: 5px;
  display: block;
}

.card-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color, #0d3b2e);
  margin-bottom: 8px;
  line-height: 1.25;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--text-muted, #5b6574);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-color, #e2e8f0);
}

.features-list span {
  font-size: 0.76rem;
  font-weight: 600;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.features-list span i {
  color: var(--whatsapp-color, #25d366);
  font-size: 0.7rem;
}

/* Botón WhatsApp */
.btn-whatsapp {
  width: 100%;
  margin-top: auto;
  padding: 11px 16px;
  background: #ffffff;
  border: 2px solid var(--whatsapp-color, #25d366);
  border-radius: 8px;
  color: var(--primary-color, #0d3b2e);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-whatsapp i {
  font-size: 1.15rem;
  color: var(--whatsapp-color, #25d366);
  transition: color 0.25s ease;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-color, #25d366);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover i {
  color: #ffffff;
}

/* Responsivo */
@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .main-tabs-container {
    border-radius: 16px;
    width: 100%;
  }
  .main-tab-btn {
    flex: 1 1 calc(50% - 10px);
    font-size: 0.8rem;
    text-align: center;
  }
  .img-wrap {
    height: 190px;
  }
}

/* ==========================================================================
   TARJETA DINÁMICA DE FOLLAJES Y MODAL DE MUESTRARIO COMPLETO
   ========================================================================== */

/* Botón flotante "Ver los 15 modelos" sobre la imagen */
.btn-open-gallery {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(13, 59, 46, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
  z-index: 3;
}

.btn-open-gallery:hover {
  background: var(--accent-color, #ff6801);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 104, 1, 0.35);
}

/* Header del contenedor de chips */
.chips-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.chips-hint {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Scrollbar táctil horizontal para los 15 chips */
.chips-scroll-container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.chips-scroll-container::-webkit-scrollbar {
  height: 5px;
}

.chips-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.follaje-chip {
  flex-shrink: 0;
  background: #ffffff;
  border: 1.2px solid #d4ded9;
  color: #2b332f;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.follaje-chip:hover {
  border-color: var(--primary-color, #0d3b2e);
  color: var(--primary-color, #0d3b2e);
}

.follaje-chip.active {
  background: var(--primary-color, #0d3b2e);
  border-color: var(--primary-color, #0d3b2e);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(13, 59, 46, 0.2);
}

/* ==========================================================================
   VENTANA MODAL / LIGHTBOX
   ========================================================================== */
.decorex-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 34, 26, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.decorex-modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.decorex-modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 1050px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  animation: modalScaleUp 0.3s ease;
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.decorex-modal-header {
  padding: 20px 28px;
  background: #fbfcfb;
  border-bottom: 1px solid #eef2f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-title {
  font-size: 1.4rem;
  color: var(--primary-color, #0d3b2e);
  margin-top: 4px;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted, #5b6574);
  margin-top: 2px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #0f172a;
}

.decorex-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Grilla de items en el modal */
.follaje-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.modal-follaje-item {
  background: #ffffff;
  border: 1px solid #eef2f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.modal-follaje-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color, #0d3b2e);
  box-shadow: 0 8px 16px rgba(13, 59, 46, 0.1);
}

.modal-follaje-thumb {
  height: 140px;
  position: relative;
  background: #0d3b2e;
}

.modal-follaje-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-follaje-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.modal-follaje-info h4 {
  font-size: 0.95rem;
  color: var(--primary-color, #0d3b2e);
  margin-bottom: 4px;
}

.modal-follaje-info span {
  font-size: 0.72rem;
  color: var(--text-muted, #5b6574);
  margin-bottom: 12px;
}

.btn-select-model {
  margin-top: auto;
  width: 100%;
  padding: 7px 10px;
  background: #f7f9f8;
  border: 1px solid #d4ded9;
  border-radius: 6px;
  color: var(--primary-color, #0d3b2e);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-select-model:hover {
  background: var(--whatsapp-color, #25d366);
  border-color: var(--whatsapp-color, #25d366);
  color: #ffffff;
}

.decorex-modal-footer {
  padding: 16px 28px;
  background: #f8faf9;
  border-top: 1px solid #eef2f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-footer-btn {
  width: auto !important;
  margin-top: 0 !important;
  padding: 8px 18px !important;
  font-size: 0.84rem !important;
}

@media (max-width: 768px) {
  .decorex-modal-content {
    max-height: 95vh;
  }
  .decorex-modal-header,
  .decorex-modal-body,
  .decorex-modal-footer {
    padding: 16px;
  }
  .follaje-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}

/* ==========================================================================
   CORRECCIÓN DEL CONTENEDOR Y MÁSCARA DEL SLIDER
   ========================================================================== */

.before-after-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 512;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(13, 59, 46, 0.14);
  cursor: ew-resize;
  user-select: none;
  background-color: #e2e8f0;
}

/* 1. Imagen de fondo (DESPUÉS): llena siempre el 100% del contenedor */
.before-after-container .img-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  pointer-events: none;
}

/* 2. Contenedor con máscara de recorte (ANTES): sólo recorta el ancho visible */
.img-before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%; /* Se modifica dinámicamente con JS */
  height: 100%;
  overflow: hidden;
  z-index: 2;
  will-change: width;
}

/* 3. Imagen interior (ANTES): DEBE medir exactamente lo mismo que el contenedor exterior */
.img-before-wrapper .img-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* El ancho se fuerza por JS, pero por CSS base fijamos su comportamiento: */
  max-width: none;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}




/* Backdrop fijo que no interactúa con eventos de arrastre extraños */
.decorex-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 30, 23, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.decorex-modal-backdrop.open {
  display: flex !important;
  opacity: 1;
}

/* El contenido del modal captura de forma sólida todos los eventos de puntero */
.decorex-modal-content {
  pointer-events: auto;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateZ(0); /* Aceleración por hardware para eliminar parpadeos de render */
  backface-visibility: hidden;
}

/* Estabilizar las tarjetas internas para que el hover no confunda al ratón */
.modal-follaje-item {
  transform: translateZ(0);
  transition: box-shadow 0.2s ease; /* Evitar saltos de translateY si causan flicker */
}

.modal-follaje-item:hover {
  transform: none; /* Mantener la posición fija al pasar el mouse para que el scroll sea 100% estable */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Agrupador de botones superiores del modal */
.modal-actions-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botón compartir moderno y discreto */
.btn-share-modal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f1f5f9;
  color: #0d3b2e;
  border: 1px solid #cbd5e1;
  padding: 7px 14px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-share-modal i {
  font-size: 0.85rem;
  color: #ff6801;
}

.btn-share-modal:hover {
  background: #0d3b2e;
  color: #ffffff;
  border-color: #0d3b2e;
}

.btn-share-modal:hover i {
  color: #ffffff;
}

/* Notificación flotante "¡Enlace copiado!" */
.decorex-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0d3b2e;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.decorex-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.decorex-toast i {
  color: #ff6801;
}


/* ==========================================================================
   ESTRUCTURA GENERAL RESPONSIVE PARA MODALES (DECOREX)
   ========================================================================== */

/* Limitar ancho y altura máxima del modal */
.decorex-modal-content {
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Mantiene bordes limpios */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Encabezado: distribuir espacio adecuadamente */
.decorex-modal-header {
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0; /* Nunca se comprime por el contenido inferior */
}

.decorex-modal-header > div:first-child {
  flex: 1 1 auto;
  min-width: 0; /* Permite que el texto respete los márgenes sin romper la caja */
}

.modal-actions-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0; /* Mantiene los botones en su tamaño original */
}

.decorex-modal-header .modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0d3b2e;
  line-height: 1.25;
  margin: 8px 0 6px 0;
}

.decorex-modal-header .modal-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* El cuerpo DEBE tener scroll vertical para que los productos siempre se vean */
.decorex-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}

.decorex-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  background: #ffffff;
}

/* ==========================================================================
   OPTIMIZACIÓN MÓVIL (PANTALLAS MENORES A 640PX Y DISPOSITIVOS MUY ANGOSTOS)
   ========================================================================== */
@media (max-width: 640px) {
  .decorex-modal-content {
    width: 96%;
    max-height: 94vh;
    border-radius: 12px;
  }

  .decorex-modal-header {
    padding: 14px 16px;
    gap: 12px;
  }

  /* Reducir el tamaño de títulos en celular para aprovechar el espacio */
  .decorex-modal-header .modal-title {
    font-size: 1.05rem;
    line-height: 1.2;
    margin: 6px 0 4px 0;
  }

  .decorex-modal-header .modal-subtitle {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  /* Compactar el botón compartir en pantallas angostas */
  .btn-share-modal {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .btn-share-modal span {
    display: inline-block; /* O puedes usar display: none si solo quieres el icono en < 380px */
  }

  .decorex-modal-body {
    padding: 14px 16px;
  }

  /* Cuadrícula de productos de 1 sola columna o 2 columnas compactas en móvil */
  .follaje-modal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .decorex-modal-footer {
    padding: 12px 16px;
    flex-direction: column;
    text-align: center;
  }

  .decorex-modal-footer span {
    font-size: 0.78rem;
  }

  .modal-footer-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Ajuste específico para pantallas extremadamente angostas (< 380px) */
@media (max-width: 380px) {
  .btn-share-modal span {
    display: none; /* Oculta la palabra 'Compartir' y deja solo el icono para liberar 70px de ancho */
  }

  .btn-share-modal {
    padding: 6px 9px;
  }
}

/* ==========================================================================
   BARRA HORIZONTAL EN UNA SOLA LÍNEA DE REDES (FOOTER)
   ========================================================================== */
.footer-social-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  margin-top: 30px;
}

.footer-social-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: 'Montserrat', sans-serif;
}

.footer-social-inline .social-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-social-inline .social-item i {
  font-size: 1.05rem;
}

.footer-social-inline .fb-link i {
  color: #1877f2;
}

.footer-social-inline .ig-link i {
  color: #e1306c;
}

.footer-social-inline .web-link i {
  color: #25d366;
}

.footer-social-inline .social-item:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-social-inline .social-sep {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
  user-select: none;
}

/* Enlaces de la columna Contacto Directo */
.footer-links li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: #ff6801;
}

/* En pantallas angostas permite acomodo orgánico */
@media (max-width: 600px) {
  .footer-social-inline {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .footer-social-inline .social-sep {
    display: none;
  }
}

