:root {
  --red: #bf1e2e;            /* principal */
  --green-sage: #88b183;     /* secundario pastel */
  --white: #ffffff;          /* terciario */
  --bg: #f4f6f8;
  --text: #222;
  --container-max: 1200px;

  --shadow-light: rgba(0,0,0,0.06);
  --shadow-medium: rgba(0,0,0,0.08);
  --shadow-hover: rgba(0,0,0,0.15);
}

/* Reset básico */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Contenedor */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem;
}

/* HEADER */
.site-header {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 1px;
  transition: transform 0.2s;
}
.brand:hover { transform: scale(1.05); }

/* NAV RESPONSIVE */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.8rem;
  color: var(--white);
  cursor: pointer;
}
.nav {
  display: flex;
  gap: 1rem;
}
.nav a {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  color: var(--white);
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}
.nav a:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.nav a.active { background: var(--green-sage); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--red);
    padding: 0.8rem;
    border-radius: 8px;
    position: absolute;
    top: 64px;
    right: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    z-index: 999;
  }
  .nav.show { display: flex; }
  .nav a { text-align: center; }
}

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 2rem auto;
  padding: 5rem 1rem;
  text-align: center;
  background: var(--white);
  color: var(--red);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: none; /* quitamos overlay oscuro */
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  z-index: 1;
  position: relative;
  animation: fadeInUp 1s ease forwards;
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--red);
  margin-bottom: 2rem;
  z-index: 1;
  position: relative;
  animation: fadeInUp 1.2s ease forwards;
}
.hero .btn {
  background: var(--green-sage);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  z-index: 1;
  position: relative;
}
.hero .btn:hover {
  background: #6a7d63;
  transform: translateY(-2px);
}


@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px);}
  100% { opacity: 1; transform: translateY(0);}
}

/* EMPRESAS */
.grid-empresas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  margin-top: 1.5rem;
}
.empresa-card {
  position: relative;
  flex: 1 1 calc(25% - 1.5rem);
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.empresa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px var(--shadow-hover);
}
.empresa-card .logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  margin: 1rem auto 0.5rem;
  box-shadow: 0 4px 12px var(--shadow-medium);
}
.empresa-card h3 {
  font-size: 1.2rem;
  color: var(--green-sage);
  margin: 0.5rem 0;
}
.empresa-card .ejemplo-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin: 0.5rem 1rem 1rem;
}
.empresa-card .ejemplo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.empresa-card:hover .ejemplo {
  transform: scale(1.05);
}
.empresa-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--green-sage);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  padding: 0 0.5rem;
}
.empresa-card:hover .overlay {
  opacity: 1;
}

.empresas h1 {
  text-align: center;
  margin-bottom: 2rem;
}

/* ESTADISTICAS */

.estadisticas {
  padding: 2rem 0;
}

/* El .container queda centrado por su regla global; aquí hacemos el layout interno */
.estadisticas .container {
  display: flex;
  justify-content: center; /* centra la fila dentro del container */
}

/* fila flexible de tarjetas */
.stats-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* tarjetas */
.stat {
  background: var(--white);
  padding: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 14px var(--shadow-light);
  min-width: 140px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px var(--shadow-hover);
  cursor: pointer;
}
.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--green-sage);
  position: relative;
}
/* + delante del número (mantenerlo por pseudo-elemento para accesibilidad/estilo) */
.stat strong::before {
  content: "+";
  margin-right: 6px;
  color: var(--green-sage);
}


/* FORMULARIOS */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px var(--shadow-light);
  transition: box-shadow 0.3s ease;
}
.form label {
  font-weight: 600;
  color: var(--green-sage);
  font-size: 1rem;
}
.form input,
.form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.form input:focus,
.form textarea:focus {
  border-color: var(--green-sage);
  box-shadow: 0 4px 12px rgba(136,177,131,0.2);
}
.form textarea { resize: vertical; min-height: 120px; }
.form button {
  background: var(--green-sage);
  color: var(--white);
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.form button:hover {
  background: #6a7d63;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* FOOTER */
.site-footer {
  background: var(--red);
  color: var(--white);
  padding: 2rem 1rem;
  margin-top: 3rem;
  text-align: center;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  border-radius: 12px 12px 0 0;
}
.site-footer p { margin-bottom: 1rem; font-weight: 500; font-size: 0.95rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.socials { display: flex; gap: 1rem; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  transition: background 0.3s, transform 0.3s;
}
.social-icon:hover { background: var(--green-sage); transform: scale(1.1); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .estadisticas { flex-direction: column; gap: 1rem; align-items: center; }
  .grid-empresas { flex-direction: column; gap: 1rem; }
  .empresa-card { flex: 1 1 100%; }
}

/* SECCION CARDS */
.cards-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 3rem 1rem;
}

.cards-section .card {
  flex: 1 1 calc(33% - 1.5rem);
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 20px var(--shadow-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cards-section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.cards-section .card h3 {
  color: var(--red);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.cards-section .card p,
.cards-section .card ul {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.cards-section .card ul {
  padding-left: 1.2rem;
}

.cards-section .card ul li::before {
  content: "•";
  color: var(--green-sage);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

@media (max-width: 900px) {
  .cards-section .card {
    flex: 1 1 100%;
  }
}

/* Botones globales */
.btn {
  display: inline-block;
  background: var(--green-sage);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.btn:hover {
  background: #6a7d63;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
