:root {
  --verde: #277448;
  --dorado: #dd9933;
  --gris-claro: #f5f5f5;
  --texto: #333333;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--texto);
  background-color: #ffffff;
  padding-top: 130px; /* espacio para header fijo */
}

/* HEADER */
#header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: var(--dorado);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 15px 25px;
  border-bottom: 4px solid var(--verde);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);

}


.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-bottom {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.logo-area img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.logo-area span {
  font-weight: bold;
  font-size: 1.8rem;
  color: var(--verde);
}

/* CORRECCIÓN DEL SUBRAYADO DEL TEXTO BAJO EL LOGO */
.logo-area a {
  text-decoration: none;
  color: var(--verde);
  font-weight: bold;
  font-size: 1.8rem;
}

/* MENÚ */
nav {
  display: flex;
  gap: 4px;
}

nav a {
  color: #ffffff;
  background-color: var(--verde);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15rem;      /* más grande, más elegante */
  padding: 12px 22px;      /* más aire, más presencia */
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: 0.2s;
}


nav a:hover {
  background-color: #1f5c38;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

/* HERO CON IMAGEN INSTITUCIONAL */
.hero {
  padding: 20px 20px;            /* antes 40px → ahora más arriba */
  color: #ffffff;
  background-image: url("../imagenes/escolar.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--dorado);
  position: relative;
  height: 480px;

  display: flex;
  justify-content: flex-end;     /* derecha */
  align-items: flex-start;       /* arriba */
}

/* DEGRADADO SUAVE PARA TEXTO */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 350px;
  text-align: left;
  margin-right: 8%;
  margin-top: 0px;               /* lo pegamos más arriba */
}

/* AJUSTE PARA MÓVILES */
@media (max-width: 768px) {
  .hero {
    height: 320px;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
  }

  .hero-content {
    margin-right: 0;
    margin-top: 0;
    text-align: center;
  }
}


/* MAIN */
main {
  padding: 30px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

section {
  margin-bottom: 40px;
}

section h2 {
  color: var(--verde);
  margin-bottom: 10px;
  border-left: 4px solid var(--dorado);
  padding-left: 8px;
  font-size: 1.8rem;
}


/* HERO DE FUNCIONALIDADES */
.hero-funcionalidades {
  position: relative;
  width: 100%;
  height: 480px;
  background-color: var(--verde); /* relleno lateral verde */
  overflow: hidden;
}

/* Imagen completa sin recortes */
.hero-funcionalidades-img {
  width: 100%;
  height: 100%;
  object-fit: contain;           /* muestra la imagen completa */
  object-position: center;       /* centrada */
  display: block;
}

/* Texto al margen izquierdo */
.hero-funcionalidades-content {
  position: absolute;
  top: 30px;                     /* arriba */
  left: 5%;                      /* margen izquierdo */
  z-index: 2;
  max-width: 350px;
  color: #fff;
  text-align: left;
}

/* Degradado suave */
.hero-funcionalidades::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1;
}

/* Móvil */
@media (max-width: 768px) {
  .hero-funcionalidades {
    height: 350px;
  }

  .hero-funcionalidades-img {
    object-fit: cover;           /* llena el espacio en móvil */
    object-position: top;
  }

  .hero-funcionalidades-content {
    left: 0;
    right: 0;
    text-align: center;
    margin: auto;
  }
}



/* CONTACTO */
.contact-wrapper {
  border-top: 3px solid var(--dorado);
  border-bottom: 3px solid var(--dorado);
  padding: 25px 0;
  margin-top: 40px;
}

.contact-title {
  text-align: center;
  color: var(--verde);
  font-size: 1.8rem;
}

.contact-subtitle {
  text-align: center;
  color: var(--verde);
  font-size: 1.4rem;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-btn {
  display: block;
  width: 220px;
  padding: 14px 20px;
  background-color: var(--verde);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  font-size: 1rem;
}

.contact-legend {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 6px;
  color: var(--texto);
  width: 220px;
}

/* FOOTER */
footer {
  background-color: var(--gris-claro);
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 40px;
}

footer a {
  color: var(--verde);
  text-decoration: none;
  margin-right: 10px;
}
