
:root {
  --verde-oliva: #698530;
  --verde-claro: #83A048;
  --verde-profundo: #528513;
  --verde-suave: #5F9462;
  --gris-90: #484342;
  --gris-80: #5B5150;
  --gris-70: #6E6260;
  --gris-60: #837673;
  --fondo: #f6f7f1;
  --gris-suave: #f0f2ec;
  --gris-borde: rgba(72,67,66,.16);
  --verde-borde: rgba(105,133,48,.24);
  --blanco: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Arial, Helvetica, sans-serif; color: var(--gris-90); background: var(--blanco); line-height: 1.6; }
a { color: var(--verde-profundo); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 90%; max-width: 1180px; margin: 0 auto; }
header { background: linear-gradient(135deg, #2d2f2b 0%, #3f4826 42%, #5e7d20 100%); color: var(--blanco); padding: 84px 0 76px; border-bottom: 8px solid var(--verde-claro); }
header h1 { font-size: 46px; margin-bottom: 12px; line-height: 1.15; letter-spacing: -0.5px; color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
header h2 { color: rgba(255,255,255,.98); font-size: 23px; font-weight: 600; margin-bottom: 22px; max-width: 900px; text-shadow: 0 1px 2px rgba(0,0,0,.14); }
header p { font-size: 19px; max-width: 860px; margin-bottom: 20px; color: rgba(255,255,255,.96); }
.hero-highlight { color: #f0f6d5; font-weight: bold; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
nav { background: var(--blanco); border-bottom: 1px solid var(--verde-borde); position: sticky; top: 0; z-index: 10; box-shadow: 0 3px 14px rgba(72,67,66,.06); }
nav .container { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 14px 0; }
.nav-toggle { border: 1px solid var(--verde-borde); background: var(--blanco); color: var(--gris-90); border-radius: 999px; padding: 10px 15px; font-size: 14px; font-weight: bold; font-family: inherit; cursor: pointer; transition: .25s ease; width:100%; min-height:44px; display:inline-flex; align-items:center; justify-content:center; text-align:center; line-height:1.25; }
.nav-toggle:hover { transform: translateY(-1px); border-color: var(--verde-oliva); }
.nav-toggle::after { content: " +"; color: var(--verde-profundo); }
.nav-toggle.is-active, .nav-toggle[aria-expanded="true"] { background: var(--verde-oliva); color: var(--blanco); border-color: var(--verde-oliva); }
.nav-toggle.is-active::after, .nav-toggle[aria-expanded="true"]::after { content: " –"; color: var(--blanco); }
section { padding: 62px 0; }
.panel-section[hidden] { display: none; }
.panel-section.is-active { display: block; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-close { border: 1px solid var(--gris-borde); color: var(--gris-80); background: var(--blanco); border-radius: 999px; padding: 9px 14px; font-family: inherit; font-weight: bold; cursor: pointer; transition: .25s ease; }
.panel-close:hover { background: var(--gris-90); color: var(--blanco); }
h2 { font-size: 32px; color: var(--verde-profundo); margin-bottom: 18px; line-height: 1.25; }
.panel-heading h2 { margin-bottom: 0; }
h3 { font-size: 22px; color: var(--verde-oliva); margin-bottom: 12px; line-height: 1.25; }
p { margin-bottom: 16px; font-size: 17px; }
.intro { max-width: 940px; font-size: 18px; }
.lead { font-size: 20px; color: var(--gris-90); font-weight: bold; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; margin-top: 28px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.card { background: var(--blanco); border: 1px solid var(--verde-borde); border-radius: 14px; padding: 26px; box-shadow: 0 6px 18px rgba(72, 67, 66, 0.06); }
.card ul { margin-left: 20px; margin-top: 12px; }
.card li { margin-bottom: 8px; }
.tag { display: inline-block; background: rgba(131,160,72,.16); color: var(--verde-profundo); padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: bold; margin-bottom: 14px; }
.tag-orange, .tag.tag-orange { background: rgba(105,133,48,.14); color: var(--verde-profundo); }
.btn { display: inline-block; background: #6f8d2d; color: var(--blanco); padding: 13px 22px; border-radius: 8px; font-weight: bold; border: 0; transition: 0.3s; font-family: inherit; cursor: pointer; }
.btn:hover { background: #587c18; text-decoration: none; }
.btn-outline { display: inline-block; border: 2px solid var(--verde-oliva); color: var(--verde-oliva); padding: 11px 19px; border-radius: 8px; font-weight: bold; transition: 0.3s; background: var(--blanco); }
.btn-outline:hover { background: var(--verde-oliva); color: var(--blanco); text-decoration: none; }
.btn-light { display: inline-block; border: 2px solid rgba(255,255,255,.95); color: #ffffff; padding: 11px 19px; border-radius: 8px; font-weight: bold; transition: 0.3s; background: rgba(255,255,255,.02); cursor: pointer; font-family: inherit; font-size: 16px; }
.btn-light:hover { background: var(--blanco); color: #44581c; text-decoration: none; }
.quote-box { background: rgba(131,160,72,.13); border-left: 5px solid var(--verde-oliva); padding: 30px; border-radius: 14px; margin-top: 28px; }
.timeline { margin-top: 30px; }
.timeline-item { background: var(--blanco); border-left: 5px solid var(--verde-oliva); border-radius: 12px; padding: 24px 26px; margin-bottom: 20px; box-shadow: 0 6px 18px rgba(72,67,66,0.05); }
.timeline-item .period { color: var(--verde-profundo); font-weight: bold; margin-bottom: 8px; }
.article-list { margin-top: 28px; }
.article-item { padding: 22px 0; border-bottom: 1px solid var(--gris-borde); }
.article-item h3 { margin-bottom: 8px; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 30px; }
.download-card { background: var(--blanco); border-left: 5px solid var(--verde-oliva); padding: 26px; border-radius: 12px; box-shadow: 0 6px 18px rgba(72,67,66,0.06); }
.cta-box, .contact-form-card { background: var(--gris-90); color: var(--blanco); padding: 32px; border-radius: 16px; margin-top: 0; }
.cta-box h3, .contact-form-card h3 { color: var(--blanco); font-size: 26px; }
.work-method { background: rgba(131,160,72,.13); padding: 32px; border-radius: 16px; margin-top: 28px; }
.work-method strong { color: var(--verde-profundo); }
.contact-data { background: var(--blanco); border-radius: 14px; border: 1px solid var(--verde-borde); padding: 26px; box-shadow: 0 6px 18px rgba(72,67,66,0.06); }
.form-control { width: 100%; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; padding: 13px 14px; margin-bottom: 12px; font-family: inherit; font-size: 15px; color: var(--gris-90); background: var(--blanco); }
textarea.form-control { min-height: 145px; resize: vertical; }
.form-control:focus { outline: none; border-color: var(--verde-claro); box-shadow: 0 0 0 4px rgba(131,160,72,.22); }
.g-recaptcha { max-width: 100%; overflow: hidden; transform-origin: left top; }
.group-subsection { margin-top: 24px; }
.group-subsection + .group-subsection { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--gris-borde); }
.group-subsection > h3 { margin-bottom: 18px; color: var(--verde-profundo); font-size: 26px; }
footer { background: var(--gris-90); color: var(--blanco); text-align: center; padding: 30px 0; font-size: 14px; border-top: 6px solid var(--verde-claro); }
footer p { font-size: 14px; }
footer a { color: var(--blanco); font-weight: bold; }
.status-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--fondo); }
.status-card { width: min(680px, 100%); background: var(--blanco); border: 1px solid var(--verde-borde); border-radius: 18px; padding: 42px 28px; text-align: center; box-shadow: 0 10px 26px rgba(72,67,66,.10); }
.status-card h1 { color: var(--verde-profundo); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.status-card h5 { color: var(--gris-70); font-size: 1.05rem; margin: 7px 0; }
.status-card img { max-width: 220px; margin: 20px auto; }
.status-card a { display: inline-block; margin-top: 10px; background: var(--verde-oliva); color: var(--blanco); padding: 12px 20px; border-radius: 8px; font-weight: bold; }
@media (max-width: 980px) { nav .container { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { header { padding: 56px 0; } header h1 { font-size: 34px; } header h2 { font-size: 19px; } header p { font-size: 17px; } h2 { font-size: 27px; } nav .container { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .nav-toggle { font-size: 13px; padding: 9px 12px; } .panel-heading { flex-direction: column; } .g-recaptcha { transform: scale(.88); margin-bottom: -8px; } }
@media (max-width: 520px) { nav .container { grid-template-columns: 1fr; } }

header .container {
  position: relative;
  z-index: 1;
}
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.05) 45%, rgba(255,255,255,.02) 100%);
  pointer-events: none;
}
header {
  position: relative;
  overflow: hidden;
}
header p, header h2 {
  max-width: 920px;
}


/* v5 header refinado: texto oscuro, fondo claro con acento verde */
header {
  background: linear-gradient(135deg, #f7f8f2 0%, #eef2e4 58%, #dfe8cf 100%) !important;
  color: var(--gris-90) !important;
  border-bottom: 8px solid var(--verde-oliva) !important;
  box-shadow: inset 0 -1px 0 rgba(72,67,66,.10);
}

header::before {
  background:
    radial-gradient(circle at 88% 18%, rgba(105,133,48,.18), transparent 28rem),
    linear-gradient(90deg, rgba(255,255,255,.60) 0%, rgba(255,255,255,.20) 58%, rgba(105,133,48,.08) 100%) !important;
}

header h1 {
  color: var(--gris-90) !important;
  text-shadow: none !important;
}

header h2 {
  color: var(--gris-80) !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}

header p {
  color: var(--gris-80) !important;
  text-shadow: none !important;
}

.hero-highlight {
  color: var(--verde-profundo) !important;
}

header .btn {
  background: var(--verde-oliva) !important;
  color: #ffffff !important;
}

header .btn:hover {
  background: var(--verde-profundo) !important;
}

header .btn-light {
  color: var(--gris-90) !important;
  border-color: var(--verde-oliva) !important;
  background: rgba(255,255,255,.60) !important;
}

header .btn-light:hover {
  background: var(--verde-oliva) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

header .container {
  max-width: 1180px;
}


/* v6: corrección de posicionamiento al navegar */
.panel-section {
  scroll-margin-top: 96px;
}

nav {
  scroll-margin-top: 0;
}

@media (max-width: 768px) {
  .panel-section {
    scroll-margin-top: 128px;
  }
}


/* v7: barra de botones siempre visible */
nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body {
  overflow-x: hidden;
}

.panel-section {
  scroll-margin-top: 112px;
}

@media (max-width: 768px) {
  nav {
    max-height: 42vh;
    overflow-y: auto;
  }

  .panel-section {
    scroll-margin-top: 148px;
  }
}


/* v8: botón Inicio y texto justificado */
.nav-home::after {
  content: "" !important;
}

.panel-section p,
.panel-section li,
.panel-section .intro,
.panel-section .lead,
.panel-section .card,
.panel-section .timeline-item,
.panel-section .article-item,
.panel-section .download-card,
.panel-section .quote-box,
.panel-section .work-method,
.panel-section .contact-data,
.panel-section .contact-form-card {
  text-align: justify;
}

header p {
  text-align: justify;
}

.card h3,
.timeline-item h3,
.article-item h3,
.download-card h3,
.contact-data h3,
.contact-form-card h3,
.panel-heading h2,
.group-subsection > h3 {
  text-align: left;
}

.nav-toggle.nav-home {
  background: var(--gris-90);
  color: #ffffff;
  border-color: var(--gris-90);
}

.nav-toggle.nav-home:hover {
  background: var(--verde-oliva);
  border-color: var(--verde-oliva);
}


/* v9: barra SIEMPRE en una sola hilera */
nav .container {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 96% !important;
  max-width: 1320px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scrollbar-width: thin;
}

.nav-toggle {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: auto !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  nav {
    max-height: none !important;
    overflow-y: visible !important;
  }

  nav .container {
    grid-template-columns: none !important;
    justify-content: flex-start !important;
  }

  .nav-toggle {
    font-size: 12px !important;
    padding: 8px 11px !important;
  }
}

@media (max-width: 520px) {
  nav .container {
    grid-template-columns: none !important;
    justify-content: flex-start !important;
  }
}


/* v10: botones del hero uniformes */
.hero-actions {
  align-items: stretch;
}

.hero-actions .btn,
.hero-actions .btn-light {
  width: 170px !important;
  min-width: 170px !important;
  height: 50px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
}

.hero-actions .btn-light,
.hero-actions .btn {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
}

@media (max-width: 768px) {
  .hero-actions .btn,
  .hero-actions .btn-light {
    width: 160px !important;
    min-width: 160px !important;
    height: 48px !important;
    font-size: 14px !important;
  }
}


/* v12: foto visible y difuminada dentro del encabezado */
header {
  position: relative;
  overflow: hidden;
}

header .container {
  position: relative !important;
  padding-right: 320px !important;
  z-index: 1;
}

.header-fade-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  overflow: hidden;
  pointer-events: none;
  opacity: .92;
}

.header-fade-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: saturate(.96) contrast(1.02);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 58%, rgba(0,0,0,.78) 72%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 58%, rgba(0,0,0,.78) 72%, rgba(0,0,0,0) 100%);
}

header h2,
header p {
  max-width: 760px !important;
}

@media (max-width: 1024px) {
  header .container {
    padding-right: 250px !important;
  }

  .header-fade-photo {
    width: 250px;
  }

  header h2,
  header p {
    max-width: 700px !important;
  }
}

@media (max-width: 820px) {
  header .container {
    padding-right: 0 !important;
  }

  .header-fade-photo {
    position: relative;
    width: 100%;
    height: 140px;
    margin-top: 18px;
    opacity: .78;
  }

  .header-fade-photo img {
    object-position: center 24%;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
  }

  header h2,
  header p {
    max-width: 100% !important;
  }
}


/* v13: foto visible en encabezado, sin difuminado */
.header-fade-photo {
  opacity: 1 !important;
  border-left: 1px solid rgba(105,133,48,.18);
  box-shadow: inset 18px 0 28px rgba(255,255,255,.45);
}

.header-fade-photo img {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  filter: saturate(.98) contrast(1.02) !important;
  opacity: 1 !important;
}

@media (max-width: 820px) {
  .header-fade-photo img {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}


/* v14: borde verde para enmarcar la foto del encabezado */
.header-fade-photo {
  border: 4px solid var(--verde-oliva) !important;
  border-radius: 18px !important;
  box-shadow:
    0 14px 32px rgba(72, 67, 66, .18),
    0 0 0 6px rgba(131, 160, 72, .16) !important;
  background: #eef2e4 !important;
  overflow: hidden !important;
}

.header-fade-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Alternativa más marcada usando el verde profundo en hover */
.header-fade-photo:hover {
  border-color: var(--verde-profundo) !important;
}

/* Lorena Bonvino - ajustes finales */
.header-fade-photo {
  border: 4px solid var(--verde-oliva) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 32px rgba(72, 67, 66, .18), 0 0 0 6px rgba(131, 160, 72, .16) !important;
  background: #eef2e4 !important;
  overflow: hidden !important;
}
.header-fade-photo img { object-position: center 35% !important; }
.hero-actions .btn, .hero-actions .btn-light {
  width: 170px !important; min-width: 170px !important; height: 50px !important; padding: 0 18px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  text-align: center !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1 !important;
  border-radius: 10px !important; box-sizing: border-box !important;
}
nav .container {
  display: flex !important; flex-wrap: nowrap !important; justify-content: center !important; align-items: center !important;
  gap: 8px !important; width: 96% !important; max-width: 1320px !important;
  overflow-x: auto !important; overflow-y: hidden !important; white-space: nowrap !important;
}
.nav-toggle {
  flex: 0 0 auto !important; width: auto !important; min-width: auto !important; min-height: 38px !important;
  padding: 8px 12px !important; font-size: 13px !important; line-height: 1.1 !important; white-space: nowrap !important;
}
.panel-section p, .panel-section li, .panel-section .intro, .panel-section .lead, .panel-section .card,
.panel-section .timeline-item, .panel-section .quote-box, .panel-section .work-method,
.panel-section .contact-data, .panel-section .contact-form-card { text-align: justify; }
.card h3, .timeline-item h3, .contact-data h3, .contact-form-card h3, .panel-heading h2, .group-subsection > h3 { text-align: left; }
@media (max-width: 768px) { nav .container { justify-content: flex-start !important; } }
