/* =========================
   BASE
========================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #F7F3EC;
  color: #2E2E2E;
}

a {
  text-decoration: none;
  color: #40622F;
}

/* =========================
   HEADER
========================= */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-height: 100px;
  width: auto;
  display: block;
}
/* Ocultar botón cerrar por defecto */
.menu-close {
  display: none;
}

.main-nav {
  display: flex;
  gap: 25px;
}

.main-nav a {
  font-weight: 500;
  color: #2E2E2E;
}

.main-nav a:hover {
  color: #4A622F;
}

.lang-switch {
  display: flex;
  gap: 10px;
}

.lang-switch a {
  font-size: 0.9rem;
  color: #777;
}

.lang-switch a.active {
  color: #4A622F;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-switch span {
  font-weight: bold;
  color: #2E2E2E;
}

.lang-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lang-switch a {
  display: inline-block;
}

.lang-switch a:hover .lang-flag {
  transform: scale(1.1);
}

.lang-switch a.active .lang-flag {
  border: 2px solid #4A622F; /* Verde oscuro */
  border-radius: 5px;
}

@media (max-width: 768px) {

  .lang-switch {
    justify-content: center;
    gap: 12px;
  }

  .lang-switch span {
    display: none;
  }

  .lang-flag {
    width: 28px;
    height: 20px;
  }
  
  .logo img {
    max-height: 60px; /* antes estaba 100px */
  }



}


/* =========================
   MENU HAMBURGUESA FULLSCREEN
========================= */
@media (max-width: 768px) {

  .main-nav {
    position: fixed;
    background: #F7F3EC; /* cremita */
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    font-size: 1.5rem;
    padding: 15px 25px;
  }

  .menu-close {
    display: block;
  }
}


/* =========================
   FOOTER
========================= */
.site-footer {
  background: #40622F;
  color: #FFFFFF;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .valores-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-contact,
.footer-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.footer-contact p,
.footer-form h4 {
  margin: 5px 0;
}

.footer-form input {
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  width: 250px;
  border: 1px solid #ccc;
}

.footer-form button {
  background: #EACC1B;
  color: #FFFFFF;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.footer-form form {
  display: flex;
  flex-direction: column;
}

.footer-form button:hover {
  background: #9A9B59;
}

.footer-bottom {
  background: #3C5125;
  text-align: center;
  padding: 15px;
  font-size: 0.85rem;
}

.footer-logo {
  max-height: 300px;
  width: auto;
}

.footer-contact p {
  font-size: 0.9rem;
}

.footer-form input {
  font-size: 0.9rem;
}

.footer-form button {
  font-size: 0.9rem;
}

@media (max-width: 768px) {

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-contact,
  .footer-form {
    align-items: center;
  }

  .footer-form form {
    align-items: center;
  }

  .footer-form input,
  .footer-form button {
    width: 100%;
    max-width: 300px;
  }

}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-form input {
    width: 100%;
    max-width: 300px;
  }
}




/* =========================
   EMPRESA / NOSOTROS
========================= */
/* HERO */
.empresa-hero {
  background: rgb(234, 204, 27);
  padding: 100px 20px;
  text-align: center;
}

.empresa-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}

.empresa-hero p {
  max-width: 700px;
  margin: auto;
  font-size: 18px;
}

/* BLOQUES */
.empresa-block {
  padding: 80px 20px;
  text-align: center;
}

.empresa-block.light {
  background: #f7f7f7;
}

.empresa-block h2 {
  font-size: 32px;
  margin-bottom: 15px;
}
/* ===== VALORES ===== */

.valores-wrapper {
  display: flex;
  justify-content: center;
  margin: 25px 20px;
}

.valores-card {
  background: #40622f; /* verde institucional */
  border-radius: 18px;
  padding: 50px 40px;
  max-width: 1100px;
  width: 100%;
}

.valores-titulo {
  text-align: center;
  color: #eacc1b; /* amarillo */
  font-size: 2rem;
  margin-bottom: 40px;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
}

@media (max-width: 768px) {
  .valores-grid {
    grid-template-columns: 1fr;
  }
}

.valor-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.valor-item:hover {
  transform: translateY(-6px);
}

.valor-item i {
  font-size: 2.4rem;
  color: #40622f;
  margin-bottom: 15px;
}

.valor-item h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #222;
}

.valor-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}
/* Sección general */
.objetivos-section {
  display: flex;
  justify-content: center;
  padding: 25px 20px;
}

/* Tarjeta verde grande */
.objetivos-card {
  background: #40622f;
  max-width: 1100px;
  width: 100%;
  padding: 60px 50px;
  border-radius: 24px;
}

/* Título */
.objetivos-title {
  text-align: center;
  color: #f2c94c;
  font-size: 2rem;
  margin-bottom: 50px;
}

/* Grid de objetivos */
.objetivos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* Tarjetas blancas */
.objetivo-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.objetivo-item h4 {
  color: #40622f;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.objetivo-item p {
  color: #555;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
  .objetivos-card {
    padding: 40px 25px;
  }

  .objetivos-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA */
.empresa-cta {
  background: rgb(234, 204, 27);
  padding: 90px 20px;
  text-align: center;
}

.empresa-cta ul {
  list-style: none;
  max-width: 600px;
  margin: 30px auto 0;
  padding: 0;
}

.empresa-cta li {
  margin-bottom: 10px;
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .empresa-hero h1 {
    font-size: 30px;
  }

  .empresa-block h2 {
    font-size: 26px;
  }
}
/* =========================
   EMPRESA - MISION / VISION
========================= */

.empresa-mv {
  max-width: 1180px;
  margin: 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.mv-card {
  background: #40622F; /* verde institucional */
  max-width: 650px;
  border-radius: 16px;
  padding: 40px 35px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.mv-card h2 {
  color: #EACC1B; /* amarillo */
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.mv-card p {
  color: #FFFFFF;
  font-size: 1rem;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
  .empresa-mv {
    grid-template-columns: 1fr;
    margin: 50px auto;
  }

  .mv-card {
    padding: 30px 25px;
  }
}

/* diferenciales*/
.empresa-diferenciales {
  padding: 25px 20px;
}

.diferenciales-wrapper {
  max-width: 1100px;
  margin: auto;
  background: #40622F; /* verde institucional */
  border-radius: 22px;
  padding: 60px 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.diferenciales-wrapper h2 {
  color: #EACC1B; /* amarillo */
  margin-bottom: 50px;
  text-align: center;
}

/* Grid interno */
.diferenciales-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* Tarjetitas */
.diferencial-item {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diferencial-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Iconos */
.diferencial-item i {
  font-size: 42px;
  color: #40622F;
  margin-bottom: 18px;
}

/* Títulos */
.diferencial-item h4 {
  color: #40622F;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

/* Texto */
.diferencial-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .diferenciales-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .diferenciales-wrapper {
    padding: 40px 20px;
  }

  .diferenciales-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   CONTACTO
========================= */
.contacto-hero {
  text-align: center;
  padding: 60px 20px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.contacto-form button {
  background: #4A622F;
  color: #FFFFFF;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
}

.contacto-form button:hover {
  background: #9A9B59;
}

.mensaje-ok {
  background: #E6F0DA;
  color: #4A622F;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.contacto-mapa iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 12px;
  margin: 40px auto;
  display: block;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .main-nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid #e6e6e6;
  }

  .main-nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .logo img {
    max-height: 60px;
  }
}
