/* ==========================================================================
   VIVERO FLORES DE MI TIERRA — ESTILOS MAESTROS BOTÁNICOS
   Parcela 24, Calle La Febre, Valle de Ocoa, Hijuelas, Región de Valparaíso
   Tipografía: Playfair Display + Plus Jakarta Sans
   Paleta: Forest Green (#012D1D / #1B4332), Ochre Bloom (#FFC221),
           Terracotta (#994703), Sage Canvas (#D8E7DE / #CBE0D4)
   ========================================================================== */

:root {
  --color-surface: #d8e7de;
  --color-surface-container: #cbe0d4;
  --color-surface-container-low: #e2efe8;
  --color-surface-container-high: #bed8c7;
  --color-surface-lowest: #ffffff;
  
  --color-primary: #012d1d;
  --color-primary-container: #1b4332;
  --color-on-primary: #ffffff;
  
  --color-secondary: #994703;
  --color-secondary-container: #fc934f;
  --color-secondary-dark: #753400;
  
  --color-moss-green: #2d6a4f;
  --color-pale-pistachio: #d8f3dc;
  --color-ochre-bloom: #ffc221;
  --color-ochre-dark: #f7c018;
  --color-soft-clay: #e2efe7;
  --color-deep-earth: #17231b;
  
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: #d8e7de;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

body {
  margin: 0;
  padding: 0;
  background-color: #d8e7de;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  min-height: 100dvh;
  background-image: 
    url("data:image/svg+xml,%3Csvg%20width%3D%22240%22%20height%3D%22240%22%20viewBox%3D%220%200%20240%20240%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3Cpath%20id%3D%22p1%22%20d%3D%22M0%200%20C%20-7%20-14%2C%20-8%20-26%2C%200%20-34%20C%208%20-26%2C%207%20-14%2C%200%200%20Z%22%20fill%3D%22%232D6A4F%22%20fill-opacity%3D%220.22%22/%3E%0A%20%20%20%20%3Cpath%20id%3D%22p1-inner%22%20d%3D%22M0%200%20C%20-4%20-10%2C%20-5%20-18%2C%200%20-24%20C%205%20-18%2C%204%20-10%2C%200%200%20Z%22%20fill%3D%22%231B4332%22%20fill-opacity%3D%220.28%22/%3E%0A%20%20%20%20%3Cpath%20id%3D%22p2%22%20d%3D%22M0%200%20C%20-8%20-10%2C%20-10%20-22%2C%200%20-26%20C%2010%20-22%2C%208%20-10%2C%200%200%20Z%22%20fill%3D%22%2340916C%22%20fill-opacity%3D%220.20%22/%3E%0A%20%20%20%20%3Cg%20id%3D%22leaf%22%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M0%200%20C%20-12%20-15%2C%20-14%20-35%2C%200%20-48%20C%2014%20-35%2C%2012%20-15%2C%200%200%20Z%22%20fill%3D%22%231B4332%22%20fill-opacity%3D%220.18%22/%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M0%200%20L0%20-44%22%20stroke%3D%22%23012D1D%22%20stroke-width%3D%221%22%20stroke-opacity%3D%220.25%22/%3E%0A%20%20%20%20%3C/g%3E%0A%20%20%20%20%3Cg%20id%3D%22flower-bloom%22%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p1%22%20transform%3D%22rotate%280%29%22/%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p1%22%20transform%3D%22rotate%2845%29%22/%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p1%22%20transform%3D%22rotate%2890%29%22/%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p1%22%20transform%3D%22rotate%28135%29%22/%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p1%22%20transform%3D%22rotate%28180%29%22/%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p1%22%20transform%3D%22rotate%28225%29%22/%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p1%22%20transform%3D%22rotate%28270%29%22/%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p1%22%20transform%3D%22rotate%28315%29%22/%3E%0A%20%20%20%20%20%20%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%229%22%20fill%3D%22%231B4332%22%20fill-opacity%3D%220.30%22/%3E%0A%20%20%20%20%20%20%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%225%22%20fill%3D%22%2352B788%22%20fill-opacity%3D%220.40%22/%3E%0A%20%20%20%20%20%20%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%222%22%20fill%3D%22%23D8F3DC%22%20fill-opacity%3D%220.60%22/%3E%0A%20%20%20%20%3C/g%3E%0A%20%20%20%20%3Cg%20id%3D%22flower-wild%22%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p2%22%20transform%3D%22rotate%280%29%22/%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p2%22%20transform%3D%22rotate%2872%29%22/%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p2%22%20transform%3D%22rotate%28144%29%22/%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p2%22%20transform%3D%22rotate%28216%29%22/%3E%0A%20%20%20%20%20%20%3Cuse%20href%3D%22%23p2%22%20transform%3D%22rotate%28288%29%22/%3E%0A%20%20%20%20%20%20%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%226%22%20fill%3D%22%23012D1D%22%20fill-opacity%3D%220.32%22/%3E%0A%20%20%20%20%20%20%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%223%22%20fill%3D%22%2374C69D%22%20fill-opacity%3D%220.45%22/%3E%0A%20%20%20%20%3C/g%3E%0A%20%20%20%20%3Cg%20id%3D%22flower-bud%22%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M0%200%20C%20-6%20-12%2C%20-8%20-22%2C%20-2%20-28%20C%203%20-24%2C%206%20-16%2C%200%200%20Z%22%20fill%3D%22%232D6A4F%22%20fill-opacity%3D%220.22%22/%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M0%200%20C%206%20-12%2C%208%20-22%2C%202%20-28%20C%20-3%20-24%2C%20-6%20-16%2C%200%200%20Z%22%20fill%3D%22%231B4332%22%20fill-opacity%3D%220.24%22/%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M-3%20-4%20C%20-8%20-2%2C%20-10%206%2C%20-3%208%22%20stroke%3D%22%231B4332%22%20stroke-width%3D%221.2%22%20stroke-opacity%3D%220.3%22%20fill%3D%22none%22/%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M3%20-4%20C%208%20-2%2C%2010%206%2C%203%208%22%20stroke%3D%22%231B4332%22%20stroke-width%3D%221.2%22%20stroke-opacity%3D%220.3%22%20fill%3D%22none%22/%3E%0A%20%20%20%20%3C/g%3E%0A%20%20%3C/defs%3E%0A%0A%20%20%3Cpath%20d%3D%22M20%20220%20Q%2070%20170%20120%20180%20T%20220%2080%22%20stroke%3D%22%231B4332%22%20stroke-width%3D%221.5%22%20stroke-opacity%3D%220.14%22%20fill%3D%22none%22/%3E%0A%20%20%3Cpath%20d%3D%22M0%2050%20Q%2080%2080%20150%2030%22%20stroke%3D%22%232D6A4F%22%20stroke-width%3D%221.2%22%20stroke-opacity%3D%220.12%22%20fill%3D%22none%22/%3E%0A%0A%20%20%3Cuse%20href%3D%22%23leaf%22%20x%3D%2290%22%20y%3D%22175%22%20transform%3D%22rotate%28-35%2090%20175%29%20scale%280.7%29%22/%3E%0A%20%20%3Cuse%20href%3D%22%23leaf%22%20x%3D%22150%22%20y%3D%22140%22%20transform%3D%22rotate%2845%20150%20140%29%20scale%280.65%29%22/%3E%0A%20%20%3Cuse%20href%3D%22%23leaf%22%20x%3D%2260%22%20y%3D%2265%22%20transform%3D%22rotate%28110%2060%2065%29%20scale%280.6%29%22/%3E%0A%20%20%3Cuse%20href%3D%22%23leaf%22%20x%3D%22180%22%20y%3D%2255%22%20transform%3D%22rotate%28-60%20180%2055%29%20scale%280.7%29%22/%3E%0A%0A%20%20%3Cuse%20href%3D%22%23flower-bloom%22%20x%3D%2260%22%20y%3D%2260%22%20transform%3D%22scale%280.85%29%22/%3E%0A%20%20%3Cuse%20href%3D%22%23flower-wild%22%20x%3D%22185%22%20y%3D%2285%22%20transform%3D%22scale%280.85%29%22/%3E%0A%20%20%3Cuse%20href%3D%22%23flower-bloom%22%20x%3D%22175%22%20y%3D%22195%22%20transform%3D%22rotate%2825%20175%20195%29%20scale%280.75%29%22/%3E%0A%20%20%3Cuse%20href%3D%22%23flower-wild%22%20x%3D%2240%22%20y%3D%22180%22%20transform%3D%22rotate%2840%2040%20180%29%20scale%280.75%29%22/%3E%0A%20%20%3Cuse%20href%3D%22%23flower-bud%22%20x%3D%22120%22%20y%3D%22115%22%20transform%3D%22rotate%28-20%20120%20115%29%20scale%280.8%29%22/%3E%0A%0A%20%20%3Ccircle%20cx%3D%22105%22%20cy%3D%2240%22%20r%3D%222.5%22%20fill%3D%22%2352B788%22%20fill-opacity%3D%220.25%22/%3E%0A%20%20%3Ccircle%20cx%3D%22215%22%20cy%3D%22140%22%20r%3D%222%22%20fill%3D%22%232D6A4F%22%20fill-opacity%3D%220.22%22/%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%22110%22%20r%3D%222.2%22%20fill%3D%22%231B4332%22%20fill-opacity%3D%220.22%22/%3E%0A%20%20%3Ccircle%20cx%3D%22125%22%20cy%3D%22225%22%20r%3D%222.5%22%20fill%3D%22%2352B788%22%20fill-opacity%3D%220.25%22/%3E%0A%3C/svg%3E"),
    radial-gradient(circle at 12% 16%, rgba(45, 106, 79, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 88% 38%, rgba(27, 67, 50, 0.20) 0%, transparent 48%),
    radial-gradient(circle at 20% 72%, rgba(45, 106, 79, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 82% 86%, rgba(1, 45, 29, 0.20) 0%, transparent 50%);
  background-attachment: fixed;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 240px 240px, auto, auto, auto, auto;
  color: var(--color-deep-earth);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 640px) {
  body {
    background-size: 160px 160px, auto, auto, auto, auto;
  }
}

/* Prevenir zoom automático en iPhone Safari */
input, select, textarea, button {
  font-size: 16px !important;
  font-family: inherit;
}

@media (pointer: coarse) {
  input, select, textarea {
    min-height: 44px;
  }
}

/* Higiene táctil */
button, a, [role="button"], .interactive-element, .filter-pill {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

button:active, a.btn-active:active, .card-interactive:active, [role="button"]:active {
  transform: scale(0.98);
  transition: transform 100ms ease-out;
}

h1, h2, h3, h4, .font-display, .font-heading {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Fondos fotográficos con Scrim */
.banner-mayorista-scrim {
  background-image: 
    linear-gradient(to right, rgba(1, 45, 29, 0.94) 0%, rgba(1, 45, 29, 0.82) 50%, rgba(0, 0, 0, 0.25) 100%),
    url('../assets/images/banner2.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.historia-bg-scrim {
  background-image: 
    linear-gradient(to right, rgba(1, 45, 29, 0.92) 0%, rgba(1, 45, 29, 0.8) 50%, rgba(0, 0, 0, 0.25) 100%),
    url('../assets/images/banner3.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.glass-gold-badge {
  background: rgba(255, 194, 33, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 194, 33, 0.45);
  color: #ffc221;
}

.border-hairline {
  border: 1px solid rgba(1, 45, 29, 0.12);
}

.shadow-soft {
  box-shadow: 0 4px 20px -2px rgba(1, 45, 29, 0.08), 0 2px 6px -1px rgba(1, 45, 29, 0.04);
}

@media (hover: hover) and (pointer: fine) {
  .hover-lift {
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -4px rgba(1, 45, 29, 0.15);
  }

  .plant-card:hover .group-hover\:scale-105 {
    transform: scale(1.05);
  }
}

.filter-pill.active {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 2px 8px rgba(1, 45, 29, 0.25);
}

.safe-bottom-padding {
  padding-bottom: max(0.75rem, calc(0.75rem + env(safe-area-inset-bottom, 0px)));
}

.safe-top-padding {
  padding-top: env(safe-area-inset-top, 0px);
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.horizontal-scroll-touch {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.overscroll-contain {
  overscroll-behavior: contain;
}

/* ==========================================================================
   ESTILOS DE IMPRESIÓN PROFESIONAL (@media print)
   Permite imprimir o exportar a PDF un Catálogo Limpio y Ejecutivo
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }

  /* Ocultar elementos no imprimibles */
  header, 
  nav, 
  footer, 
  #floating-cart-btn, 
  #mobile-nav, 
  .sticky-mobile-bar, 
  #cart-drawer, 
  #plant-modal,
  .hero-section,
  .bg-decorations,
  .no-print,
  button,
  input,
  select {
    display: none !important;
  }

  /* El modal del catálogo se convierte en el documento principal */
  #digital-catalog-modal {
    position: static !important;
    display: block !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1 !important;
  }

  #digital-catalog-modal > div:first-child {
    display: none !important; /* backdrop */
  }

  #digital-catalog-modal .modal-panel {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  #digital-catalog-table-body tr {
    page-break-inside: avoid;
  }

  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  th, td {
    border-bottom: 1px solid #cccccc !important;
    padding: 6pt 4pt !important;
  }
}
