/* ========================================
   MOVELARIA — Mueblería de Barrio
   Design System & Component Styles
   ======================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Primary Palette */
  --wood-brown: #5C3D2E;
  --wood-brown-light: #7A5A4A;
  --wood-brown-dark: #3E2A1E;
  --beige: #D9C5A0;
  --beige-light: #E8DCC4;
  --cream: #F5EFE0;
  --cream-light: #FAF7F0;
  --warm-gray: #8B8178;
  --warm-gray-light: #B0A89E;

  /* Accent Palette */
  --olive: #6B7C4E;
  --olive-light: #8A9E68;
  --olive-dark: #4E5C38;
  --terracotta: #C4704E;
  --terracotta-light: #D4906E;
  --mustard: #D4A84B;
  --mustard-light: #E0C06A;

  /* Functional */
  --text-dark: #2E1F14;
  --text-body: #4A3728;
  --text-muted: #8B7D6F;
  --white: #FFFDF8;
  --shadow-warm: rgba(92, 61, 46, 0.12);
  --shadow-warm-strong: rgba(92, 61, 46, 0.2);

  /* WhatsApp */
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE57;

  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

em {
  font-style: italic;
  color: var(--terracotta);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--olive);
  background: rgba(107, 124, 78, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--wood-brown);
  color: var(--cream);
  box-shadow: 0 4px 16px rgba(92, 61, 46, 0.25);
}

.btn-primary:hover {
  background: var(--wood-brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(92, 61, 46, 0.35);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--wood-brown);
  border: 2px solid var(--wood-brown);
}

.btn-outline:hover {
  background: var(--wood-brown);
  color: var(--cream);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-out);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(245, 239, 224, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px var(--shadow-warm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

.logo-tagline {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  transition: color 0.3s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

.main-nav a:hover {
  color: var(--wood-brown);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--whatsapp-dark);
  background: rgba(37, 211, 102, 0.1);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s var(--ease-out);
}

.header-whatsapp:hover {
  background: var(--whatsapp);
  color: #fff;
  transform: scale(1.02);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(62, 42, 30, 0.75) 0%, rgba(92, 61, 46, 0.6) 50%, rgba(107, 124, 78, 0.4) 100%),
    url('https://images.unsplash.com/photo-1618220179428-22790b461013?w=1600&h=1000&fit=crop&auto=format') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(196, 112, 78, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(107, 124, 78, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 750px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--beige);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s var(--ease-out);
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero h1 em {
  color: var(--mustard-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--beige-light);
  max-width: 520px;
  margin: 0 auto 32px;
  opacity: 0.9;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--beige-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInUp 1s var(--ease-out) 1s both;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--beige);
  border-bottom: 2px solid var(--beige);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

/* ===== WAVE DIVIDERS ===== */
.divider {
  margin-top: -1px;
  line-height: 0;
}

.divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

.divider-wood {
  color: var(--cream);
  background: transparent;
}

.divider-cream {
  color: var(--cream-light);
  background: var(--cream);
}

.divider-warm {
  color: var(--beige-light);
  background: var(--cream-light);
}

.divider-green {
  color: var(--olive-dark);
  background: var(--beige-light);
}

.divider-testimonios {
  color: var(--wood-brown);
  background: var(--olive-dark);
}

.divider-contact {
  color: var(--cream);
  background: var(--wood-brown);
}

/* ===== NOSOTROS ===== */
.nosotros {
  padding: var(--section-padding);
  background: var(--cream);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.nosotros-image-wrapper {
  position: relative;
}

.nosotros-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px var(--shadow-warm-strong);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.nosotros-image-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--terracotta);
  opacity: 0.15;
  border-radius: var(--radius-lg);
  z-index: -1;
}

.nosotros-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--olive);
  color: var(--cream);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 8px 30px rgba(107, 124, 78, 0.3);
}

.nosotros-badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.nosotros-badge-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.nosotros-content h2 {
  margin-bottom: 20px;
}

.nosotros-content p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.nosotros-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--cream-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--terracotta);
  transition: transform 0.3s var(--ease-out);
}

.value-item:hover {
  transform: translateX(6px);
}

.value-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.value-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.value-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== CATEGORÍAS ===== */
.categorias {
  padding: var(--section-padding);
  background: var(--cream-light);
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.categoria-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 30px var(--shadow-warm);
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  display: block;
}

.categoria-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px var(--shadow-warm-strong);
}

.categoria-img {
  overflow: hidden;
  height: 220px;
}

.categoria-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.categoria-card:hover .categoria-img img {
  transform: scale(1.08);
}

.categoria-info {
  padding: 20px;
  position: relative;
}

.categoria-info h3 {
  margin-bottom: 4px;
}

.categoria-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.categoria-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--terracotta);
  transition: transform 0.3s var(--ease-out);
}

.categoria-card:hover .categoria-arrow {
  transform: translateY(-50%) translateX(4px);
}

/* ===== PRODUCTOS ===== */
.productos {
  padding: var(--section-padding);
  background: var(--beige-light);
}

.productos-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.producto-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-warm);
  transition: all 0.4s var(--ease-out);
}

.producto-card:hover {
  box-shadow: 0 16px 48px var(--shadow-warm-strong);
  transform: translateY(-4px);
}

/* .producto-card-featured: no special sizing, uses same layout as other cards */

.producto-img {
  position: relative;
  overflow: hidden;
}

.producto-card-featured .producto-img {
  height: 240px;
}

.producto-card:not(.producto-card-featured) .producto-img {
  height: 240px;
}

.producto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.producto-card:hover .producto-img img {
  transform: scale(1.05);
}

.producto-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--mustard);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
}

.producto-info {
  padding: 24px;
}

.producto-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--olive);
}

.producto-info h3 {
  margin: 4px 0 8px;
}

.producto-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.producto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.producto-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.productos-cta {
  text-align: center;
  margin-top: 48px;
  padding: 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--beige);
}

.productos-cta p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* ===== AMBIENTES ===== */
.ambientes {
  padding: var(--section-padding);
  background: var(--olive-dark);
  color: var(--cream);
}

.ambientes .section-label {
  color: var(--olive-light);
  background: rgba(138, 158, 104, 0.15);
}

.ambientes h2 {
  color: var(--cream);
}

.ambientes .section-header p {
  color: var(--beige-light);
}

.ambientes-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.ambiente-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.ambiente-large {
  grid-row: span 2;
}

.ambiente-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  display: block;
  min-height: 280px;
}

.ambiente-large img {
  min-height: 580px;
}

.ambiente-item:hover img {
  transform: scale(1.05);
}

.ambiente-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(46, 31, 20, 0.85) 0%, transparent 100%);
  color: var(--cream);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.ambiente-item:hover .ambiente-overlay {
  transform: translateY(0);
  opacity: 1;
}

.ambiente-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--terracotta);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
}

.ambiente-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== TESTIMONIOS ===== */
.testimonios {
  padding: var(--section-padding);
  background: var(--wood-brown);
  color: var(--cream);
}

.testimonios .section-label {
  color: var(--mustard-light);
  background: rgba(212, 168, 75, 0.15);
}

.testimonios h2 {
  color: var(--cream);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonio-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s var(--ease-out);
}

.testimonio-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.testimonio-stars {
  color: var(--mustard);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonio-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--beige-light);
  font-style: italic;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonio-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cream);
  flex-shrink: 0;
}

.testimonio-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--cream);
}

.testimonio-author span {
  font-size: 0.8rem;
  color: var(--warm-gray-light);
}

/* ===== CONTACTO ===== */
.contacto {
  padding: var(--section-padding);
  background: var(--cream);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacto-info h2 {
  margin-bottom: 12px;
}

.contacto-info>p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contacto-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--cream-light);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease-out);
}

.contacto-item:hover {
  transform: translateX(4px);
}

.contacto-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contacto-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.contacto-item span,
.contacto-item a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contacto-item a {
  color: var(--whatsapp-dark);
  font-weight: 500;
}

.contacto-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contacto-map {
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-warm);
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--wood-brown-dark);
  color: var(--beige-light);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-name {
  color: var(--cream);
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--cream);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  opacity: 0.6;
  padding: 4px 0;
  transition: opacity 0.3s, transform 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(4px);
}

.footer-contact p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ===== WHATSAPP FLOATING ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.4s var(--ease-spring);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  flex-shrink: 0;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(8px);
  }
}

@keyframes floatPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .categorias-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .productos-showcase {
    grid-template-columns: 1fr;
  }

  .producto-card-featured {
    grid-row: span 1;
  }

  .producto-card-featured .producto-img {
    height: 260px;
  }

  .ambientes-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .ambiente-large {
    grid-row: span 1;
  }

  .ambiente-large img {
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 20px;
    box-shadow: -8px 0 40px var(--shadow-warm-strong);
    transition: right 0.4s var(--ease-out);
    z-index: 1000;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    font-size: 1.2rem;
    padding: 8px 0;
  }

  .header-whatsapp {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nosotros-image-wrapper img {
    height: 340px;
  }

  .categorias-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .categoria-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .categoria-img {
    height: 100%;
  }

  .testimonios-grid {
    grid-template-columns: 1fr;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .map-placeholder {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .ambientes-mosaic {
    grid-template-columns: 1fr;
  }

  .whatsapp-float-text {
    display: none;
  }

  .whatsapp-float {
    padding: 16px;
    border-radius: 50%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 100px 16px 60px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .contacto-actions {
    flex-direction: column;
  }

  .producto-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}