/* ==================== FUENTES LOCALES ==================== */
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Myriad Variable Concept';
  src: url('../fonts/MyriadVariableConcept-Roman.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colores principales */
  --optagas-dark: hsl(160, 50%, 15%);
  --optagas-green: hsl(160, 70%, 20%);
  --optagas-lime: hsl(80, 60%, 55%);
  --optagas-light: hsl(80, 50%, 75%);
  --optagas-cream: hsl(60, 30%, 95%);
  --optagas-footer: hsl(160, 60%, 10%);

  /* Tokens semánticos */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(160, 50%, 15%);
  --primary: hsl(160, 70%, 20%);
  --primary-foreground: hsl(60, 20%, 98%);
  --secondary: hsl(80, 60%, 55%);
  --secondary-foreground: hsl(160, 50%, 15%);
  --muted: hsl(80, 30%, 90%);
  --muted-foreground: hsl(160, 30%, 40%);
  --border: hsl(80, 30%, 85%);

  --radius: 0.75rem;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

/* ==================== UTILIDADES ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--optagas-light);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--optagas-cream);
  color: var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background-color: white;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.navbar-logo .highlight {
  color: var(--secondary);
}

.navbar-logo .leaf {
  width: 20px;
  height: 20px;
  fill: var(--secondary);
  margin-top: -8px;
}

.navbar-logo .natural {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary);
  margin-left: -4px;
}

.logo-image {
  max-width: 60%;
}

.navbar-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .navbar-nav {
    display: flex;
  }
}

.navbar-nav a {
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s ease;
}

.navbar-nav a:hover {
  color: var(--secondary);
}

.navbar-nav a.active {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.navbar-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .navbar-toggle {
    display: none;
  }
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ==================== HERO ==================== */
.hero {
  margin: 2rem 1rem;
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
  .hero {
    margin: 2rem auto;
    width: calc(100% - 4rem);
    height: 700px;
    min-height: auto;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20, 61, 46, 0.9) 0%, rgba(20, 61, 46, 0.7) 50%, rgba(20, 61, 46, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 3rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 4rem;
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  line-height: 1;
  max-width: 800px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 5.5rem;
  }
}

.hero-title .lime {
  color: var(--optagas-lime);
  /* #dae0ed in image looks more white/grey, keeping lime per class */
  color: #E2E8F0;
  /* Adjusting to look more like the white/light grey in image */
}

.hero-title .green {
  color: var(--secondary);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #D1D5DB;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 2rem;
  }
}

.hero-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  margin-bottom: auto;
}

/* Stats Styling - Bottom Right */
.hero-stats {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  z-index: 20;
}

.hero-stat {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-stat {
    width: 200px;
    height: 200px;
  }
}

.hero-stat.green {
  background-color: var(--secondary);
  border-top-left-radius: 2rem;
}

.hero-stat.cream {
  background-color: #E2E8F0;
  border-top-right-radius: 0;
  border-top-left-radius: 2rem;
  margin-left: -1rem;
  margin-right: 0;
}

.hero-stat-value {
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
}

@media (min-width: 768px) {
  .hero-stat-value {
    font-size: 5rem;
  }
}

.hero-stat-icon {
  width: 60px;
  height: 60px;
  stroke: var(--secondary);
}

@media (min-width: 768px) {
  .hero-stat-icon {
    width: 100px;
    height: 100px;
  }
}

/* CTA Styling - Bottom Left */
.hero-cta {
  position: absolute;
  bottom: 3rem;
  left: 2rem;
  z-index: 20;
}

@media (min-width: 768px) {
  .hero-cta {
    bottom: 4rem;
    left: 4rem;
  }
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background-color: #E2E8F0;
  color: #1a4d3a;
  /* Dark green text */
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.btn-hero svg {
  background-color: #0F5132;
  /* Icon circle bg */
  color: white;
  border-radius: 50%;
  padding: 4px;
  width: 32px;
  height: 32px;
}

/* ==================== TRANSPORT SECTION ==================== */
.transport {
  padding: 5rem 0;
  background-color: var(--primary);
  position: relative;
  overflow: hidden;
}

.transport-leaf {
  position: absolute;
  left: 2rem;
  top: 2rem;
  width: 80px;
  height: 80px;
  fill: rgba(139, 195, 74, 0.3);
}

.transport-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .transport-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.transport-info {
  background-color: var(--secondary);
  border-radius: 1rem;
  padding: 2rem;
}

.transport-info p {
  color: var(--primary-foreground);
  font-size: 1.125rem;
  line-height: 1.8;
  font-style: italic;
}

.transport-image-wrapper {
  position: relative;
}

.transport-image {
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.transport-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.transport-types {
  position: absolute;
  bottom: 2rem;
  left: 0;
}

.transport-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.transport-type span {
  color: var(--secondary);
  font-weight: 500;
}

.transport-type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--secondary);
}

.transport-content h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-foreground);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .transport-content h2 {
    font-size: 2.5rem;
  }
}

.transport-content a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.transport-content a:hover {
  color: white;
}

.transport-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}

/* ==================== CALCULATOR SECTION ==================== */
.calculator {
  padding: 5rem 0;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.calculator-pattern {
  position: absolute;
  right: 0;
  top: 0;
  width: 33%;
  height: 100%;
  opacity: 0.1;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, var(--secondary) 20px, var(--secondary) 22px);
}

.calculator-leaf {
  position: absolute;
  left: 0;
  bottom: 5rem;
  width: 160px;
  height: 160px;
  fill: rgba(139, 195, 74, 0.2);
  transform: translateX(-25%);
}

.calculator-header {
  text-align: center;
  margin-bottom: 3rem;
}

.calculator-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calculator-title .leaf {
  width: 40px;
  height: 40px;
  fill: var(--secondary);
}

.calculator-subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .calculator-subtitle {
    font-size: 1.25rem;
  }
}

.calculator-formula {
  max-width: 700px;
  margin: 0 auto 3rem;
  background-color: rgba(139, 195, 74, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.calculator-formula p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.calculator-formula-equation {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .calculator-formula-equation {
    font-size: 1.5rem;
  }
}

.calculator-formula-divider {
  width: 250px;
  height: 4px;
  background-color: var(--secondary);
  margin: 0.5rem auto;
}

.calculator-main {
  display: grid;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .calculator-main {
    grid-template-columns: 1fr 1fr;
  }
}

.calculator-input-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .calculator-input-section h3 {
    font-size: 2rem;
  }
}

.toggle-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.toggle-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid var(--border);
  background-color: white;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background-color: var(--muted);
}

.toggle-btn.active {
  background-color: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.calculator-amount {
  background-color: rgba(139, 195, 74, 0.1);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.calculator-amount-label {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.calculator-amount-input {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.calculator-amount-input span {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.calculator-amount-input input {
  flex: 1;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  background: transparent;
  border: none;
  outline: none;
  text-align: center;
}

.calculator-amount-input input::placeholder {
  color: var(--secondary);
  opacity: 0.5;
}

.calculator-amount-divider {
  height: 4px;
  background-color: rgba(139, 195, 74, 0.3);
  margin-top: 0.5rem;
}

.calculator-result-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calculator-result-section h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .calculator-result-section h3 {
    font-size: 2.5rem;
  }
}

.calculator-result {
  background-color: white;
  border: 4px solid var(--primary);
  border-radius: 50px;
  padding: 1.5rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.calculator-result-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .calculator-result-value {
    font-size: 2.5rem;
  }
}

.calculator-result-period {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-left: 0.5rem;
}

/* ==================== NEWSLETTER SECTION ==================== */
.newsletter-wave {
  background-color: var(--background);
}

.newsletter-wave svg {
  display: block;
  width: 100%;
}

.newsletter {
  background-color: var(--primary);
  padding: 4rem 0;
  position: relative;
}

.newsletter-leaf {
  position: absolute;
  left: 2rem;
  top: 2rem;
  width: 128px;
  height: 128px;
  fill: rgba(139, 195, 74, 0.3);
}

.newsletter-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .newsletter-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .newsletter-title {
    font-size: 3rem;
  }
}

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-style: italic;
}

.newsletter-badge .leaf {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.newsletter-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin: 1rem 0 2rem;
}

@media (min-width: 768px) {
  .newsletter-subtitle {
    font-size: 1.25rem;
  }
}

.newsletter-form {
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.newsletter-input:focus {
  outline: none;
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--optagas-footer);
  color: var(--primary-foreground);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}

.footer-logo .highlight {
  color: var(--secondary);
}

.footer-logo .leaf {
  width: 20px;
  height: 20px;
  fill: var(--secondary);
  margin-top: -8px;
}

.footer-logo .natural {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary);
  margin-left: -4px;
}

.footer-address {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-address svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  border-color: white;
  color: white;
}

.footer-contact {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 2rem;
}

@media (max-width: 767px) {
  .footer-contact {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
  }
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: white;
}

.footer-contact svg {
  width: 20px;
  height: 20px;
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 64px;
  height: 64px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  animation: pulse-soft 2s ease-in-out infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes pulse-soft {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

/* ==================== LEAF SVG ==================== */
.leaf-icon {
  display: inline-block;
}