/* VARIABLES */
:root {
  --verde: #277448;
  --dorado: #dd9933;
  --gris-claro: #f5f5f5;
  --texto: #333333;
}

/* BASE */
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);
  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,
.logo-area a {
  font-weight: bold;
  font-size: 1.8rem;
  color: var(--verde);
  text-decoration: none;
}

/* MENÚ */
nav {
  display: flex;
  gap: 4px;
}

nav a {
  color: #ffffff;
  background-color: var(--verde);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15rem;
  padding: 12px 22px;
  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 PRINCIPAL */
.hero {
  padding: 20px;
  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;
  align-items: flex-start;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  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%;
}

/* HERO MÓVIL */
@media (max-width: 768px) {
  .hero {
    height: 320px;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
  }

  .hero-content {
    margin-right: 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 FUNCIONALIDADES */
.hero-funcionalidades {
  position: relative;
  width: 100%;
  height: 480px;
  background-color: var(--verde);
  overflow: hidden;
}

.hero-funcionalidades-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-funcionalidades-content {
  position: absolute;
  top: 30px;
  left: 5%;
  z-index: 2;
  max-width: 350px;
  color: #fff;
  text-align: left;
}

.hero-funcionalidades::before {
  content: "";
  position: absolute;
  inset: 0;
  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 FUNCIONALIDADES MÓVIL */
@media (max-width: 768px) {
  .hero-funcionalidades {
    height: 350px;
  }

  .hero-funcionalidades-img {
    object-fit: cover;
    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,
.contact-subtitle {
  text-align: center;
  color: var(--verde);
}

.contact-title {
  font-size: 1.8rem;
}

.contact-subtitle {
  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;
}

/* FUNCIONALIDADES — DOS COLUMNAS */
/* FUNCIONALIDADES — DOS COLUMNAS */
.funcionalidades-dos-columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;               /* antes 30px → más compacto */
  padding: 20px 10px;      /* menos padding */
}

.func-columna {
  display: flex;
  flex-direction: column;
  gap: 14px;               /* antes 18px → más compacto */
}

.func-subtitulo {
  font-size: 20px;
  color: var(--verde);
  margin-bottom: 4px;
}

/* CARD */
.func-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 15px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* ANIMACIÓN SUAVE + GLOW VERDE */
.func-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(39, 116, 72, 0.35); /* glow verde más visible */
}



/* ICONO REAL */
.func-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* CONTENEDOR DE TEXTO */
.func-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;                /* antes 4px → más pegado */
}

/* TÍTULO */
.func-title {
  margin: 0;
  color: var(--verde);
  font-size: 16px;
  font-weight: bold;
}

/* DESCRIPCIÓN */
.func-desc {
  margin: 0;
  color: #444;
  font-size: 13px;
  line-height: 1.35;       /* más compacto */
}

/* MÓVIL */
@media (max-width: 768px) {
  .funcionalidades-dos-columnas {
    grid-template-columns: 1fr;
  }
}

/* Sub Rayado FUNCIONALIDADES */
.titulo-funcionalidad {
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--dorado);
  margin-bottom: 14px;
  color: #1a1a1a;
}

.menu a.activo {
  background-color: var(--dorado);
  color: #fff;
  border: 2px solid var(--verde);
  padding: 8px 14px;
  border-radius: 6px;
}

.testimonios {
  max-width: 1100px;
  margin: 60px auto;
  padding: 20px;
}

.testimonios h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #277448;
  font-size: 28px;
}

.fila-testimonios {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.testimonios h2 {
  border: none !important;
  padding-left: 0;
  margin-bottom: 40px;
  text-align: center;
  color: #277448;
  font-size: 28px;
  font-weight: 600;
}

.testimonio {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-left: 5px solid #dd9933;  /* ← vuelve a ponerla aquí */
  border-radius: 8px;
  flex: 1;
}


.testimonio img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

.testimonio h3 {
  margin: 0 0 10px;
  color: #277448;
}

.testimonio p {
  margin: 0 0 10px;
  line-height: 1.4;
}

.autor {
  font-size: 14px;
  color: #555;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .fila-testimonios {
    flex-direction: column;
  }

  .testimonio {
    flex-direction: column;
    text-align: center;
  }

  .testimonio img {
    margin: 0 auto;
  }
}

.cta-testimonios {
  text-align: center;
  margin-top: 40px;
}

.cta-testimonios p {
  font-size: 20px;
  color: #277448;
  margin-bottom: 15px;
  font-weight: 600;
}

.btn-verde {
  display: inline-block;
  background: #277448;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-verde:hover {
  background: #1f5c38;
}

