/* ------------------------------
   Estilos generales (Renovado v4)
------------------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green-900: #1f3a32; 
  --green-700: #2e4a3d; 
  --green-500: #3b5a4e;
  --green-300: #cfe3da; 
  --sand: #f9f9f7; 
  --ink: #24332c; 
  --white: #fff;
}

html { scroll-behavior: smooth; }

/* Tipografía actualizada a Outfit para un look más moderno */
body { 
  font-family: 'Outfit', system-ui, -apple-system, sans-serif; 
  color: var(--ink); 
  background: var(--white); 
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--green-900); line-height: 1.2; font-weight: 600; }
p { line-height: 1.6; font-weight: 300; }

/* Header / nav */
header { 
  background: rgba(255, 255, 255, 0.9); 
  backdrop-filter: blur(8px); 
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(234, 234, 234, 0.8); 
  position: fixed; top: 0; left: 0; right: 0; z-index: 999; 
}

nav { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 14px 8vw; }
.logo img { height: 44px; width: auto; }
.nav-links { list-style: none; display: flex; gap: 18px; align-items: center; }
.nav-links a { font-weight: 500; padding: 8px 10px; border-radius: 8px; transition: background 0.2s; }
.nav-links a:hover, .lang-tag:hover { background: var(--green-300); }
.lang-tag { font-size: 12px; padding: 6px 8px; border: 1px solid #dfe7e3; border-radius: 8px; cursor: pointer; transition: background 0.2s; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--green-700); transition: 0.3s; }

/* Sections */
section { padding: 88px 8vw; }

/* Hero Section con Glassmorphism mejorado */
.hero-section { 
  background-image: url('images/green.jpeg'); 
  background-size: cover; 
  background-position: center; 
  min-height: 88vh; 
  display: grid; 
  place-items: center; 
  text-align: center; 
  position: relative; 
}

.hero-section::after { 
  content: ""; position: absolute; inset: 0; 
  background: linear-gradient(180deg, rgba(12,18,15,0.3), rgba(12,18,15,0.2)); 
}

.hero-content { 
  position: relative; 
  z-index: 1; 
  color: #fff; 
  display: flex; flex-direction: column; gap: 20px; align-items: center; 
  
  /* Efecto Glassmorphism Premium */
  background: rgba(20, 30, 25, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  
  padding: 32px 40px;
  border-radius: 16px;
  max-width: 680px;
}

.hero-content h1 { font-size: clamp(32px, 4vw, 52px); color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero-content p { font-size: clamp(17px, 2.2vw, 22px); opacity: 0.95; font-weight: 400; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 14px; opacity: 0.95; }
.hero-badges span { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); padding: 6px 12px; border-radius: 99px; backdrop-filter: blur(4px); }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 500; border: 1px solid transparent; transition: all 0.2s ease; cursor: pointer; text-transform: uppercase; font-size: 13px; letter-spacing: 0.5px; }
.btn-primary { background: var(--green-500); color: #fff; box-shadow: 0 4px 12px rgba(59, 90, 78, 0.4); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-secondary { background: var(--green-300); color: var(--green-900); }
.btn-light { background: #fff; border-color: #e6eee9; color: var(--green-900); }
.btn-secondary:hover, .btn-light:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-mini { padding: 8px 14px; font-size: 12px; }

/* Layout helpers */
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cards.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Cards con micro-interacciones */
.card { 
  background: var(--sand); 
  border: 1px solid #e6eee9; 
  border-radius: 16px; 
  padding: 24px; 
  text-align: left; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(31, 58, 50, 0.08);
  border-color: var(--green-300);
}
.card img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }

.testimonial p { font-style: italic; }
.list { margin: 8px 0 16px 18px; }
.list li { margin: 6px 0; }

/* Filters & table */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 24px; }
.filters input[type="text"], .filters input[type="number"], .filters select { 
  padding: 10px 14px; border: 1px solid #dfe7e3; border-radius: 10px; min-width: 180px; font-family: inherit;
}
.table-wrapper { overflow: auto; border: 1px solid #eef2ef; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.offer-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.offer-table th, .offer-table td { padding: 14px 12px; border-bottom: 1px solid #f0f3f0; text-align: left; }
.offer-table th { position: sticky; top: 0; background: #f4f8f6; z-index: 1; font-weight: 600; color: var(--green-900); text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
.offer-table tbody tr { transition: background-color 0.2s; }
.offer-table tbody tr:hover { background-color: #f8fbf9; }
.offer-table td:last-child { text-align: right; }

/* Contact */
.contact-section form { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.contact-section input, .contact-section textarea, .contact-section select { 
  width: 100%; padding: 14px 16px; border: 1px solid #dfe7e3; border-radius: 12px; font-family: inherit; font-size: 15px; transition: border-color 0.2s;
}
.contact-section input:focus, .contact-section textarea:focus { outline: none; border-color: var(--green-500); }
.contact-section textarea { min-height: 140px; }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.form-status { margin: 10px auto 0; padding: 12px 18px; border-radius: 10px; background: #effaf3; color: #1d3f30; border: 1px solid #d8efe3; width: fit-content; }

/* Footer */
footer { background: var(--green-500); color: #fff; padding: 32px 8vw; text-align: center; }
.footer-link { text-decoration: underline; color: #fff; opacity: 0.8; }
.footer-link:hover { opacity: 1; }

/* Responsive */
@media (max-width: 980px) {
  .grid.two { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  nav { padding: 12px 6vw; }
  .menu-toggle { display: flex; }
  .cards.three { grid-template-columns: 1fr; }
  section { padding: 60px 6vw; }
}

/* Scrim overlay */
.nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 998; display: none; }
.nav-open .nav-scrim { display: block; }

/* Menú móvil (v3.4 - Fullscreen overlay) */
@media (max-width: 900px) {
  header .nav-links {
    position: fixed !important;
    top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
    width: 100% !important; max-width: none !important; height: 100vh !important;
    background: #ffffff !important;
    padding: 96px 24px 28px !important;
    display: flex !important; flex-direction: column !important; gap: 16px !important;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002 !important;
    overflow-y: auto !important;
    box-shadow: none !important;
  }
  header .nav-links.nav-active { transform: translateY(0); }
  
  header .nav-links a {
    font-size: 22px !important;
    line-height: 1.4 !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0;
    color: var(--green-900) !important;
    background: transparent !important;
    font-weight: 600;
  }
  
  .nav-scrim { display: none !important; }
  body.nav-open { overflow: hidden; }
  body.nav-open header { background: #ffffff !important; border-bottom: 1px solid #eaeaea; }
  
  /* Animación icono menú X */
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}