/* palette: forest-amber */
:root {
  --primary-color: #1B5E20;      /* botones, acentos, títulos */
  --secondary-color: #2E7D32;    /* hero bg, footer */
  --accent-color: #E8A020;       /* iconos, hover, decoración */
  --background-color: #F2FAF2;   /* fondo secciones claras */
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(0,0,0,0.15);
  --shadow-color: rgba(0,0,0,0.07);
  --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  --main-font: 'Lora', serif;
  --alt-font: 'Noto Sans', sans-serif;
  
  /* border-style: sharp */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-btn: 0px;
  
  /* shadow-style: subtle */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Typography scale - bold-editorial */
h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.15;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

h3 {
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.3;
}

p {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fade-up 0.6s ease-out both;
}

/* Header & Burger Menu (mobile-first) */
header {
  background: var(--secondary-color);
  position: relative;
  width: 100%;
  z-index: 1000;
}

.header-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  cursor: pointer;
}

.burger-btn .bar {
  width: 24px;
  height: 2px;
  background: #f0f0f0;
  transition: transform 0.28s, opacity 0.28s;
}

#menu-toggle:checked + .burger-btn .bar:first-child {
  transform: translateY(7px) rotate(45deg);
}

#menu-toggle:checked + .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked + .burger-btn .bar:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--secondary-color);
  z-index: 999;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  color: #f5f5f5;
  font-weight: 600;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  min-height: 44px;
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .header-inner {
    padding: 14px 24px;
  }
  
  .burger-btn {
    display: none;
  }
  
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    padding: 0;
    border-top: none;
  }
  
  .site-nav ul {
    flex-direction: row;
    gap: 28px;
  }
  
  .site-nav a {
    padding: 0;
  }
}

/* Hero Section */
.hero-section {
  min-height: 81vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-title {
  font-size: clamp(34px, 5.5vw, 68px);
}

/* Section Spacing */
.section-padding {
  padding: 48px 16px;
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 80px 24px;
  }
}

/* Headings & Subheadings */
.section-heading {
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subheading {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 12px 32px;
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-btn);
  transition: transform 0.2s, background-color 0.2s;
  min-height: 44px;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Features Grid (features-2x2) */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: #ffffff;
  padding: 32px;
  border-top: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-color);
}

/* About Section (img-fullwidth) */
.fullwidth-img-container {
  width: 100%;
  overflow: hidden;
}

.fullwidth-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Stats Bar (stats-bar) */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  max-width: 250px;
  opacity: 0.9;
}

/* Testimonials (testimonials-cards) */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  background: #ffffff;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: var(--accent-color);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
}

/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form-container {
  background: var(--background-color);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--dark-color);
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(27, 94, 32, 0.2);
}

/* FAQ Section */
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.faq-answer {
  color: var(--text-color);
}

/* Footer style */
footer {
  background: var(--secondary-color);
  color: #f5f5f5;
  padding: 48px 16px 24px 16px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 24px;
  }
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-nav ul {
    flex-direction: row;
    gap: 24px;
    text-align: left;
  }
}

.footer-nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

.footer-copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  opacity: 0.7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}