/* ==========================================================================
   MUNDOCAJAS — Hoja de Estilos Principal (Moderno, Responsivo y Rápido)
   ========================================================================== */

:root {
  --primary: #1e3a8a;          /* Azul corporativo industrial */
  --primary-dark: #172554;
  --primary-light: #3b82f6;
  --accent: #eab308;           /* Amarillo/Dorado Kraft industrial */
  --accent-hover: #ca8a04;
  --kraft: #c59b6d;            /* Tono cartón kraft natural */
  --kraft-light: #f5ebe0;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --white: #ffffff;
  --success: #16a34a;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background-color: var(--gray-100);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font: inherit;
}

ul {
  list-style: none;
}

/* Contenedores y Utilidades */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent-hover); }
.text-muted { color: var(--gray-600); }
.font-bold { font-weight: 700; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--kraft-light);
  color: #8b5a2b;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.badge-primary {
  background: rgba(30, 58, 138, 0.1);
  color: var(--primary);
}

.badge-success {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--dark);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

/* Encabezados de Sección */
.section {
  padding: 80px 0;
}

.section-bg {
  background-color: var(--white);
}

.section-header {
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 650px;
  margin: 0 auto;
}

/* Barra Superior de Contacto */
.top-bar {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 20px;
}

.top-bar-links a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-links a:hover {
  color: var(--accent);
}

/* Header & Navbar */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.02);
}

.footer-logo-box {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.footer-logo-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.footer-logo-img {
  height: 46px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.preloader-brand-img {
  max-height: 60px;
  width: auto;
  margin-bottom: 10px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-800);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Acciones exclusivas del menú desplegable móvil */
.mobile-nav-actions {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-btn {
  position: relative;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 10px;
  border-radius: var(--radius-md);
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-btn:hover {
  background: var(--gray-200);
  color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--accent-hover);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.8) 100%),
              url('../images/8e075c3d-6d19-3aa0-6b3f-c73b145fc018.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 110px 0 130px;
}

.hero-content {
  max-width: 700px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
}

.stat-item h4 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Feature Cards / Beneficios */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.feature-card {
  background-color: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 58px;
  height: 58px;
  background-color: var(--kraft-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-text {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Grid de Productos */
.categories-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--dark);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  text-transform: uppercase;
}

.product-img-wrapper {
  background: #f8fafc;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.product-img {
  max-height: 180px;
  object-fit: contain;
  transition: var(--transition);
}

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

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.8rem;
  color: var(--kraft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-desc {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.spec-tag {
  background: var(--gray-100);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.price-unit {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* Calculadora de Cajas a Medida */
.calculator-box {
  background: linear-gradient(135deg, var(--white) 0%, #fefce8 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

.dimensions-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.input-field {
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--white);
  transition: var(--transition);
  width: 100%;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.calc-result-card {
  background: var(--dark);
  color: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-total {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--accent);
}

.result-total-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
}

/* Servicios y Logística */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.service-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.service-body {
  padding: 28px;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-desc {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Proceso en 4 Pasos */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 20px;
}

.step-num {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--kraft-light);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.step-desc {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* Testimonios */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #f59e0b;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray-800);
  margin-bottom: 24px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--kraft-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

.author-name {
  font-weight: 700;
  color: var(--dark);
}

.author-role {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* Formulario de Contacto */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.contact-info-col {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.info-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 3px;
}

.contact-form-col {
  padding: 50px 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Carrito Sidebar / Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--white);
  z-index: 2001;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray-600);
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  align-items: center;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--gray-300);
  background: var(--gray-100);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark);
}

/* Modal de Detalles de Producto */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-title {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (OPTIMIZADO 100% PARA CELULARES Y TABLETS)
   ========================================================================== */

/* Tablets Grandes y Laptops Pequeñas (≤ 992px) */
@media (max-width: 992px) {
  .hero-title { font-size: 2.6rem; }
  .calc-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  
  .features-grid {
    margin-top: -30px;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1.35rem;
    color: var(--dark);
    cursor: pointer;
  }

  .nav-actions .btn-accent {
    display: none; /* Se visualiza dentro del menú móvil */
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    padding: 30px 24px;
    box-shadow: var(--shadow-xl);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 12px;
    z-index: 9999;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
    text-align: center;
  }

  .mobile-nav-actions {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
  }
}

/* Tablets Medianas y Celulares Grandes (≤ 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 55px 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Barra Superior */
  .top-bar {
    padding: 6px 0;
    font-size: 0.75rem;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .top-bar-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Navbar */
  .navbar .container {
    height: 70px;
  }

  .logo-img {
    height: 38px;
    max-width: 150px;
  }

  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }

  /* Hero Section */
  .hero {
    padding: 45px 0 65px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.05rem;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 28px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 15px;
  }

  .stat-item h4 {
    font-size: 1.45rem;
  }

  .stat-item p {
    font-size: 0.78rem;
  }

  /* Pestañas de Categoría con Scroll Táctil */
  .categories-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 6px 4px 14px;
    gap: 8px;
    scrollbar-width: none;
    margin-bottom: 24px;
  }

  .categories-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 8px 16px;
    flex-shrink: 0;
  }

  /* Grid de Productos */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-img-wrapper {
    height: 190px;
    padding: 14px;
  }

  .product-info {
    padding: 18px;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .product-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* Calculadora */
  .calculator-box {
    padding: 22px 16px;
  }

  .dimensions-inputs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .calc-result-card {
    padding: 22px 16px;
  }

  .result-total-val {
    font-size: 1.6rem;
  }

  /* Servicios y Pasos */
  .services-grid,
  .process-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card,
  .testimonial-card {
    padding: 20px;
  }

  /* Formulario de Contacto */
  .contact-info-col {
    padding: 30px 18px;
  }

  .contact-form-col {
    padding: 30px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Carrito Drawer */
  .cart-drawer {
    width: 100%;
    max-width: 100vw;
  }

  /* WhatsApp Flotante */
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
  }

  /* Footer */
  .footer {
    padding: 50px 0 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 35px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Celulares Pequeños (≤ 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .features-grid {
    margin-top: 15px;
    margin-bottom: 25px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 20px 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cart-header {
    padding: 16px;
  }

  .cart-items-list {
    padding: 12px;
  }

  .cart-item {
    padding: 10px;
  }

  .cart-footer {
    padding: 16px;
  }
}

/* ==========================================================================
   PRELOADER 3D — CAJA ARMÁNDOSE Y ABRIÉNDOSE AL INGRESAR A LA WEB
   ========================================================================== */
.page-preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
  overflow: hidden;
}

.page-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

/* Escenario 3D de la Caja */
.box-3d-scene {
  width: 140px;
  height: 140px;
  perspective: 900px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-3d {
  width: 90px;
  height: 90px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(38deg);
  animation: boxAssembleAndOpen 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards infinite;
}

.box-face {
  position: absolute;
  width: 90px;
  height: 90px;
  background: #c59b6d;
  border: 1.5px solid #a87948;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.15);
  backface-visibility: visible;
  transition: transform 0.6s ease;
}

/* Caras de la Caja */
.box-bottom {
  transform: rotateX(-90deg) translateZ(45px);
  background: #8b5f33;
}

.box-front {
  transform: translateZ(45px);
  background: linear-gradient(135deg, #c59b6d 0%, #ba8e5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-back {
  transform: rotateY(180deg) translateZ(45px);
  background: #b08455;
}

.box-left {
  transform: rotateY(-90deg) translateZ(45px);
  background: #a3784a;
}

.box-right {
  transform: rotateY(90deg) translateZ(45px);
  background: #b88c5d;
}

/* Solapas Superiores Abatibles (Flaps) */
.box-top-left {
  height: 45px;
  transform-origin: top;
  transform: rotateX(90deg) translateZ(45px);
  background: #d4ab7d;
  animation: flapTopLeft 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards infinite;
}

.box-top-right {
  height: 45px;
  top: 45px;
  transform-origin: bottom;
  transform: rotateX(-90deg) translateZ(45px);
  background: #caa071;
  animation: flapTopRight 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards infinite;
}

/* Cinta de embalaje sobre la caja */
.box-tape {
  position: absolute;
  width: 100%;
  height: 14px;
  background: rgba(234, 179, 8, 0.85);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  top: 50%;
  transform: translateY(-50%);
}

/* Resplandor interior al abrirse */
.box-interior-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.9) 0%, rgba(234, 179, 8, 0) 70%);
  opacity: 0;
  transform: translateZ(20px);
  animation: glowEffect 2.8s ease-in-out forwards infinite;
}

/* Sombra 3D en el suelo */
.box-shadow-3d {
  position: absolute;
  bottom: 0px;
  width: 110px;
  height: 35px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 75%);
  border-radius: 50%;
  animation: shadowPulse 2.8s ease-in-out forwards infinite;
}

/* Animaciones Keyframes de la Caja */
@keyframes boxAssembleAndOpen {
  0% {
    transform: rotateX(0deg) rotateY(0deg) scale(0.6);
    opacity: 0;
  }
  20% {
    transform: rotateX(-22deg) rotateY(38deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotateX(-25deg) rotateY(218deg) scale(1.05);
  }
  75% {
    transform: rotateX(-15deg) rotateY(398deg) scale(1.15);
  }
  92% {
    transform: rotateX(0deg) rotateY(400deg) scale(1.3);
  }
  100% {
    transform: rotateX(0deg) rotateY(400deg) scale(1.4);
  }
}

@keyframes flapTopLeft {
  0%, 15% {
    transform: rotateX(0deg) translateZ(45px);
  }
  30%, 65% {
    transform: rotateX(90deg) translateZ(45px); /* Cerrada */
  }
  80%, 100% {
    transform: rotateX(-125deg) translateZ(45px); /* Abierta hacia atrás */
  }
}

@keyframes flapTopRight {
  0%, 15% {
    transform: rotateX(0deg) translateZ(45px);
  }
  30%, 65% {
    transform: rotateX(-90deg) translateZ(45px); /* Cerrada */
  }
  80%, 100% {
    transform: rotateX(125deg) translateZ(45px); /* Abierta hacia adelante */
  }
}

@keyframes glowEffect {
  0%, 65% {
    opacity: 0;
    transform: scale(0.5);
  }
  80%, 95% {
    opacity: 1;
    transform: scale(1.4);
  }
  100% {
    opacity: 0.8;
  }
}

@keyframes shadowPulse {
  0% { transform: scale(0.6); opacity: 0.2; }
  50% { transform: scale(1); opacity: 0.5; }
  75% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 0.4; }
}

/* Textos y Barra de Carga del Preloader */
.preloader-text-wrapper {
  text-align: center;
  color: var(--white);
}

.preloader-brand {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.preloader-brand span {
  color: var(--accent);
}

.preloader-status {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
  font-weight: 500;
}

.preloader-bar {
  width: 180px;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  margin: 0 auto;
  overflow: hidden;
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f59e0b);
  border-radius: var(--radius-full);
  animation: progressBar 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes progressBar {
  0% { width: 0%; }
  50% { width: 65%; }
  85% { width: 95%; }
  100% { width: 100%; }
}

@keyframes glowPulseBackdrop {
  0%, 100% { transform: scale(0.9); opacity: 0.18; }
  50% { transform: scale(1.2); opacity: 0.4; }
}

@keyframes shadow3DPulse {
  0% { transform: scale(0.6) translateY(0); opacity: 0.25; }
  50% { transform: scale(0.85) translateY(6px); opacity: 0.45; }
  75% { transform: scale(1.15) translateY(8px); opacity: 0.7; }
  100% { transform: scale(1.35) translateY(10px); opacity: 0.35; }
}

/* Textos y Barra de Carga */
.preloader-text-wrapper {
  text-align: center;
  color: var(--white);
  z-index: 2;
}

.preloader-status {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.preloader-bar {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  margin: 0 auto;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f59e0b);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.6);
  animation: progressBar 2.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes progressBar {
  0% { width: 0%; }
  50% { width: 65%; }
  85% { width: 95%; }
  100% { width: 100%; }
}

/* ==========================================================================
   ANIMACIONES MODERNAS SCROLL REVEAL & MICRO-INTERACCIONES
   ========================================================================== */

/* Elementos con Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Retardo escalonado para grids */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }

/* Efecto Shimmer en Botones Destacados */
.btn-accent, .btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-accent::after, .btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  animation: btnShimmer 4.5s infinite;
}

@keyframes btnShimmer {
  0%, 70% { left: -60%; }
  100% { left: 140%; }
}

/* Pulsación suave en icono flotante de WhatsApp */
.whatsapp-float {
  animation: pulseWhatsApp 2.5s infinite;
}

@keyframes pulseWhatsApp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Efecto Flotante en Iconos */
.floating-icon {
  animation: floatAnim 3s ease-in-out infinite alternate;
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}


