/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Common Colors */
  --primary-color: #2d5a27;
  --secondary-color: #8b9a46;
  --accent-color: #c8a16b;
  --white: #ffffff;
  --cream: #f9f7f2;
  --text-color: #1a1a1a;
  --text-muted: #555555;
  --heading-color: #2d5a27;
  
  /* Layout */
  --container-max: 1200px;
  --shadow-soft: 0 10px 40px rgba(45, 90, 39, 0.08);
  --shadow-hover: 0 20px 60px rgba(45, 90, 39, 0.12);
  --border-color: rgba(45, 90, 39, 0.08);
  
  /* Transitions */
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme {
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --text-color: #f5f5f0;
  --text-muted: #b0b0b0;
  --heading-color: #c8a16b;
  --cream: #1a1a1a;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 60px rgba(0, 0, 10, 0.4);
  --border-color: rgba(255, 255, 255, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--cream);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50c-2-5-5-5-7 0s5 5 7 0z' fill='%232d5a27' fill-opacity='0.03'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
}

/* Main Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 2000;
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary-color);
  z-index: 2001;
  transition: width 0.1s ease;
}

.main-header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(45, 90, 39, 0.08);
}

body.dark-theme .main-header.scrolled {
  background: rgba(18, 18, 18, 0.95);
}

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

.header-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.theme-button {
  background: rgba(45, 90, 39, 0.05);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text-color);
  transition: var(--transition);
}

.theme-button:hover {
  background: rgba(45, 90, 39, 0.1);
  transform: translateY(-2px);
}

.theme-text {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.theme-icon-wrapper {
  width: 20px;
  height: 20px;
  position: relative;
}

.sun-icon, .moon-icon {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  transition: var(--transition);
}

.moon-icon { opacity: 0; transform: rotate(-90deg) scale(0); }
body.dark-theme .sun-icon { opacity: 0; transform: rotate(90deg) scale(0); }
body.dark-theme .moon-icon { opacity: 1; transform: rotate(0) scale(1); color: var(--accent-color); }

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 100px 30px;
}

.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 40px;
  border-radius: 24px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.hero-logo:hover {
  transform: scale(1.05);
}

.hero-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.5rem, 10vw, 6rem);
  color: var(--heading-color);
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Estilo para la O con gota */
.logo-o {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.drop-svg {
  position: absolute;
  width: 0.28em;
  height: 0.28em;
  top: 38%;
  left: 31%;
  transform: rotate(-22deg);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
  z-index: 1;
  pointer-events: none;
}

.hero .subtitle {
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--secondary-color);
  font-weight: 400;
  margin-bottom: 30px;
}

.hero .description {
  max-width: 600px;
  margin: 0 auto 50px;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  padding: 20px 45px;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 25px rgba(200, 161, 107, 0.3);
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(200, 161, 107, 0.4);
}

/* About Section */
.about {
  padding: 120px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--heading-color);
  margin-bottom: 35px;
  line-height: 1.2;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: var(--shadow-hover);
}

/* Products Section */
.products {
  padding: 100px 0;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 8vw, 3.8rem);
  color: var(--heading-color);
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.1;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 70px;
  font-size: 1.05rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.product-card {
  background: var(--white);
  border-radius: 30px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  cursor: pointer;
}

body.dark-theme .product-card {
  background: var(--card-bg);
}

.product-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  height: 350px;
  position: relative;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(45, 90, 39, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.product-card:hover .product-overlay { opacity: 1; }

.view-more {
  padding: 12px 30px;
  background: white;
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.product-card:hover .view-more {
  transform: translateY(0);
}

.product-info {
  padding: 35px;
}

.product-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.product-brief {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.product-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-color);
  letter-spacing: 0.15em;
  margin-bottom: 15px;
  display: block;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Benefits Section */
.benefits {
  background: var(--primary-color);
  padding: 120px 0;
  color: white;
  position: relative;
}

.benefits .section-title {
  color: white;
  margin-bottom: 60px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 50px 30px;
  border-radius: 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.4);
}

.benefit-icon {
  font-size: 2.8rem;
  margin-bottom: 25px;
  display: block;
}

.benefit-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.benefit-card p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.7;
}

/* FAQ Section */
.faq {
  padding: 120px 0;
}

.faq-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: max-content;
}

body.dark-theme .faq-item { background: var(--card-bg); }

.faq-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.faq-question {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 20px;
}

.faq-question h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--primary-color);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition);
}

.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer-content {
  padding: 0 30px 30px 30px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Footer Section */
footer {
  padding: 80px 0;
  background-color: var(--cream);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #25d366;
  color: white;
  padding: 18px 35px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  z-index: 2000;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.whatsapp-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 45px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon { width: 24px; height: 24px; }

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1100px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-container { grid-template-columns: 1fr; }
  .about-content { gap: 40px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .main-header { height: 75px; }
  .header-logo { font-size: 1.5rem; }
  .about-content { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .about-text h2 { font-size: 2.5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .hero-content { padding-top: 50px; }
  .hero h1 { font-size: 3.2rem; }
  .hero-logo { width: 140px; height: 140px; }
  .whatsapp-text { display: none; }
  .whatsapp-button { padding: 18px; border-radius: 50%; right: 25px; bottom: 25px; }
  .section-title { font-size: 2.5rem; }
  .about { padding: 80px 0; }
  .benefits { padding: 80px 0; }
}