:root {
  --bg-main: #F8F5EF;
  --bg-white: #FFFFFF;
  --color-green-dark: #173B2F;
  --color-green-medium: #2E6B55;
  --color-green-soft: #DDEBE4;
  --color-warning-yellow: #FFF2C7;
  --color-cta-orange: #E06F35;
  --text-dark: #1F2933;
  --text-gray: #6B7280;
  --border-color: #E5E7EB;
  --bg-checkout: #F7F8FA;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.py-section { padding: 60px 0; }
.hidden { display: none !important; }

/* Buttons */
.btn-primary {
  background-color: var(--color-cta-orange);
  color: var(--bg-white);
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 18px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
  width: 100%;
  text-align: center;
}

.btn-primary:hover {
  background-color: #c95d28;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-green-dark);
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid var(--color-green-dark);
  border-radius: 8px;
  font-size: 16px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-secondary:hover {
  background-color: var(--color-green-dark);
  color: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--color-green-dark);
  line-height: 1.2;
}

h1 {
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: 800;
}

h2 {
  font-size: 24px;
  margin-bottom: 24px;
  font-weight: 700;
}

/* 1. Top Ad Notice */
.top-ad-notice {
  background-color: var(--color-warning-yellow);
  color: var(--text-dark);
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  font-weight: 500;
  z-index: 1001;
  position: relative;
}

/* 2. Floating Info Strips */
.ticker-wrapper {
  background-color: var(--color-green-dark);
  color: var(--bg-white);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  z-index: 1000;
  display: flex;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
}

.ticker-item {
  padding: 0 30px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.ticker-item::before {
  content: "•";
  margin-right: 30px;
  color: var(--color-green-soft);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sticky Bottom Bar Mobile */
.bottom-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.bottom-sticky-bar.visible {
  transform: translateY(0);
}

.bottom-sticky-info {
  display: flex;
  flex-direction: column;
}

.bottom-sticky-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-green-dark);
}

.bottom-sticky-price {
  font-weight: 800;
  font-size: 16px;
  color: var(--color-cta-orange);
}

.bottom-sticky-shipping {
  font-size: 11px;
  color: var(--text-gray);
}

.bottom-sticky-bar .btn-primary {
  width: auto;
  min-height: 40px;
  padding: 8px 24px;
  font-size: 16px;
}

/* 3. Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-green-dark);
  letter-spacing: -0.5px;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.desktop-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s;
}

.desktop-nav a:hover {
  color: var(--color-green-medium);
}

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

.cart-icon-btn {
  background: none;
  border: none;
  position: relative;
  color: var(--text-dark);
  padding: 4px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: var(--color-cta-orange);
  color: var(--bg-white);
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-btn {
  background: none;
  border: none;
  padding: 4px;
  display: block;
}

.header-buy-btn {
  display: none;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 1002;
  transition: left 0.3s ease;
  padding: 24px;
  box-shadow: 4px 0 15px rgba(0,0,0,0.05);
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-close {
  background: none;
  border: none;
  float: right;
  margin-bottom: 24px;
}

.mobile-menu ul {
  list-style: none;
  clear: both;
}

.mobile-menu li {
  margin-bottom: 20px;
}

.mobile-menu a {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-green-dark);
  display: block;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

/* 4. Hero Principal */
.hero {
  position: relative;
  padding: 40px 0 60px;
  background-image: url('images/bg_home_window.png'); /* Will adjust name later */
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 245, 239, 0.85); /* Overlay */
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 30px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.floating-product {
  animation: float 4s ease-in-out infinite;
}

.hero-text {
  text-align: center;
}

.hero-subhead {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-green-medium);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero-price-block {
  margin-bottom: 24px;
}

.hero-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-green-dark);
  line-height: 1;
}

.hero-price-note {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 8px;
}

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

.hero-microcopy {
  font-size: 12px;
  color: var(--text-gray);
  font-style: italic;
}

/* 5. Trust Bar */
.trust-bar {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-green-dark);
}

.trust-icon {
  color: var(--color-green-medium);
}

/* 6. Problema */
.problem-section {
  position: relative;
  padding: 60px 0;
  background-image: url('images/bg_bedroom.png');
  background-size: cover;
  background-position: center;
}

.problem-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
}

.problem-content {
  position: relative;
  z-index: 1;
}

.problem-text {
  margin-bottom: 40px;
}

.problem-disclaimer {
  font-size: 14px;
  color: var(--text-gray);
  background: var(--bg-main);
  padding: 16px;
  border-left: 4px solid var(--color-green-medium);
  margin-top: 24px;
}

.pest-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pest-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.pest-icon {
  font-size: 24px;
  background-color: var(--color-green-soft);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--color-green-dark);
}

.pest-text h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--color-green-dark);
}

.pest-text p {
  font-size: 14px;
  color: var(--text-gray);
}

/* 7. Cómo funciona */
.how-it-works {
  background-color: var(--bg-main);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.step-item {
  display: flex;
  gap: 16px;
}

.step-number {
  background-color: var(--color-green-dark);
  color: var(--bg-white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.step-text p {
  font-size: 15px;
  color: var(--text-gray);
}

/* 8. Dónde usar */
.where-to-use {
  background-color: var(--bg-white);
}

.where-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.where-tag {
  background: var(--bg-main);
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 500;
  color: var(--color-green-dark);
  font-size: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.where-tag:hover {
  background: var(--color-green-soft);
  border-color: var(--color-green-soft);
}

.where-microcopy {
  margin-top: 24px;
  font-size: 13px;
  text-align: center;
  color: var(--text-gray);
  font-style: italic;
}

/* Fragrance Banners */
.scent-banner {
  width: 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.scent-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 59, 47, 0.7); /* Dark green with opacity */
}

.scent-banner-content {
  position: relative;
  z-index: 1;
  color: var(--bg-white);
  max-width: 700px;
}

.scent-banner h3 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--color-warning-yellow);
}

.scent-banner p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--bg-white);
}

/* 9. SEO Text */
.seo-text-section {
  background-color: var(--bg-main);
}

.seo-text-content p {
  margin-bottom: 16px;
  color: var(--text-dark);
}

/* 10. Seguridad */
.security-section {
  background-color: var(--bg-white);
}

.security-box {
  background-color: var(--color-warning-yellow);
  padding: 32px 24px;
  border-radius: 12px;
}

.security-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.security-list {
  list-style: none;
}

.security-list li {
  font-size: 14px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.security-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-cta-orange);
  font-weight: bold;
}

/* 11. Accordion Details */
.product-details {
  background-color: var(--bg-main);
}

.accordion {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-white);
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-green-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header::after {
  content: "+";
  font-size: 20px;
  color: var(--color-green-medium);
  transition: transform 0.3s;
}

.accordion-header.active::after {
  content: "−";
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px;
  color: var(--text-gray);
}

.accordion-header.active + .accordion-content {
  padding: 0 20px 20px;
}

.accordion-content ul {
  padding-left: 20px;
  margin-top: 8px;
}

.accordion-content li {
  margin-bottom: 6px;
}

/* 13. Cart Drawer */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 2001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

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

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

.cart-header h2 {
  margin: 0;
  font-size: 20px;
}

.cart-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-gray);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--bg-main);
  border-radius: 8px;
}

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

.cart-item-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--color-green-dark);
  margin-bottom: 12px;
}

.qty-selector {
  display: inline-flex;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  align-items: center;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.qty-input {
  width: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  height: 28px;
  font-size: 14px;
  font-family: inherit;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-main);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
}

/* 14. Footer */
.site-footer {
  background-color: var(--color-green-dark);
  color: var(--color-green-soft);
  padding: 60px 0 24px;
}

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

.footer-col h3 {
  color: var(--bg-white);
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col p {
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.8;
}

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

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

.footer-col a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--bg-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

.footer-payments {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.payment-icon {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 20px;
  z-index: 3000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-text p {
  font-size: 14px;
  color: var(--text-gray);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-buttons button {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-dark);
}

.cookie-buttons button.btn-accept {
  background: var(--color-green-dark);
  color: var(--bg-white);
  border-color: var(--color-green-dark);
}

/* Desktop Media Queries */
@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }

  .hero {
    padding: 80px 0;
  }
  
  .hero-content {
    flex-direction: row-reverse;
    align-items: center;
    gap: 60px;
  }
  
  .hero-image-wrapper {
    flex: 1;
    max-width: 400px;
    margin: 0;
  }
  
  .hero-text {
    flex: 1;
    text-align: left;
  }
  
  .hero-buttons {
    flex-direction: row;
    width: auto;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: auto;
  }

  .desktop-nav {
    display: block;
  }

  .hamburger-btn {
    display: none;
  }

  .header-buy-btn {
    display: inline-flex;
    padding: 8px 20px;
    min-height: 40px;
    font-size: 14px;
  }

  .trust-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .pest-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .pest-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .where-tags {
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }

  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-text {
    flex: 1;
  }
  
  .bottom-sticky-bar {
    display: none; /* Hide sticky mobile bar on desktop */
  }
}
