/* ===================================================================
   Abundia — base compartida (variables, reset, header, menú, botones)
   Fuentes: Raleway (títulos), Lobster (scripts), Montserrat (cuerpo)
   =================================================================== */

:root {
  --green:   #4da729;   /* verde corporativo (header, títulos) */
  --lime:    #a2e65e;    /* verde lima (acentos, botones) */
  --ink:     #0d141a;    /* texto oscuro */
  --text:    #333333;    /* texto cuerpo */
  --gray-bg: #eceff3;    /* fondo gris claro */
  --cream:   #fcf9ec;    /* fondo tarjetas */
  --maxw:    1224px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Tipografía de apoyo ---------- */
.script {
  font-family: Lobster, cursive;
  font-weight: 400;
}
.script--white { color: #fff; }
.script--lime  { color: var(--lime); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--lime {
  background-color: var(--lime);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 30px;
}
.btn--lime:hover { background-color: #8fd94a; }

.btn--white {
  background-color: #fff;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 14px 28px;
}

/* ---------- Formulario de contacto (preguntas frecuentes y soluciones) ---------- */
.contact-form {
  background: #fff;
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}
.contact-form label {
  display: block;
  font-size: 13px;
  color: #555;
  margin: 0 0 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 20px;
  border: 1px solid #cfd5dc;
  border-radius: 12px;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aa3ad; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.contact-form__btn {
  background: #d4edae;
  color: var(--green);
  border: none;
  border-radius: 50px;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 30px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.contact-form__btn:hover { background: var(--lime); transform: translateY(-2px); }

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  background-color: var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 110px;
}
.site-header__logo img { height: 80px; width: auto; }

.nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
}
.nav__link {
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  padding-bottom: 4px;
  transition: opacity .2s;
}
.nav__link:hover { opacity: .85; }
.nav__link--active { border-bottom: 2px solid #fff; }

.site-header__cta { margin-left: 8px; }

/* Burger (oculto en desktop) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 3px;
  width: 26px;
  background: #fff;
  border-radius: 3px;
  transition: transform .25s, opacity .25s;
}

/* Menú móvil — panel anclado arriba, altura automática */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: var(--green);
  flex-direction: column;
  padding: 26px 28px 40px;
}
.mobile-nav--open {
  display: flex;
  animation: menuIn .3s ease both;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Aparición escalonada de los enlaces y el botón */
.mobile-nav--open .mobile-nav__link,
.mobile-nav--open .mobile-nav__cta {
  animation: linkIn .4s ease both;
}
.mobile-nav--open .mobile-nav__link:nth-child(1) { animation-delay: .10s; }
.mobile-nav--open .mobile-nav__link:nth-child(2) { animation-delay: .16s; }
.mobile-nav--open .mobile-nav__link:nth-child(3) { animation-delay: .22s; }
.mobile-nav--open .mobile-nav__link:nth-child(4) { animation-delay: .28s; }
.mobile-nav--open .mobile-nav__cta { animation-delay: .34s; }
@keyframes linkIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Cierre: se desvanece hacia arriba (mayor especificidad para ganar a menuIn) */
.mobile-nav.mobile-nav--closing {
  animation: menuOut .25s ease both;
}
@keyframes menuOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-20px); }
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav__logo img { height: 64px; width: auto; }
.mobile-nav__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 52px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
  margin-top: 90px;
  text-align: right;
}
.mobile-nav__link {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
}
.mobile-nav__link--active {
  border-bottom: 3px solid #fff;
  padding-bottom: 6px;
}

.mobile-nav__cta {
  align-self: flex-end;
  margin-top: 70px;
  font-size: 15px;
  padding: 18px 44px;
}

/* ---------- Header responsive ---------- */
@media (max-width: 920px) {
  .nav,
  .site-header__cta { display: none; }
  .burger { display: flex; }
}
