/* =========================
   HERO
========================= */

#hero{
  position:relative;
  width:100%;
  height:100vh;
  overflow:hidden;
  color:#fff;
}

.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:1;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.35),
    rgba(0,0,0,.75)
  );
  z-index:2;
}

.hero-content{
  position:absolute;
  left:50%;
  bottom:14vh;
  transform:translateX(-50%);
  z-index:3;
  max-width:960px;
  padding:0 20px;
  text-align:center;
}

.hero-content h1{
  font-size:clamp(2.2rem,4vw,3.4rem);
  font-weight:800;
  line-height:1.2;
  margin-bottom:12px;
}

.hero-content p{
  font-size:1.1rem;
  max-width:720px;
  margin:0 auto 30px;
  opacity:.9;
}

/* =========================
   BOTONES HERO
========================= */

.hero-actions{
  display:flex;
  gap:18px;
  justify-content:center;
  flex-wrap:wrap;
}

.hero-actions a{ text-decoration:none; }

.hero-actions .btn{
  padding:14px 28px;
  border-radius:999px;
  font-weight:600;
  font-size:.95rem;
  transition:.25s ease;
}

.hero-actions .btn-primary{
  background:var(--color-primary);
  color:#fff;
}

.hero-actions .btn-primary:hover{
  filter:brightness(.95);
  transform:translateY(-2px);
}

.hero-actions .btn-secondary{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.6);
}

.hero-actions .btn-secondary:hover{
  background:#fff;
  color:var(--color-dark);
}

/* =========================
   QUIÉNES SOMOS
========================= */

#about{
  background:#fff;
  padding:110px 24px 120px;
}

.about-container{
  max-width:1100px;
  margin:0 auto;
}

#about h2{
  text-align:center;
  font-size:2.4rem;
  font-weight:800;
  margin-bottom:64px;
}

.about-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  margin-bottom:70px;
}

.about-columns p{
  font-size:1.05rem;
  line-height:1.8;
}

.about-icons{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
  text-align:center;
}

.about-item span{
  font-size:2.6rem;
  display:block;
  margin-bottom:18px;
}

.about-item h3{
  font-size:1.2rem;
  font-weight:700;
  margin-bottom:10px;
}

.about-item p{
  font-size:.95rem;
  opacity:.85;
}

/* =========================
   PROYECTOS
========================= */

#projects{
  background:#f7f9f8;
  padding:110px 24px 120px;
}

.projects-container{
  max-width:1400px;
  margin:0 auto;
}

#projects h2{
  text-align:center;
  font-size:2.4rem;
  font-weight:800;
  margin-bottom:64px;
}

.projects-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  align-items:stretch;
}

.project-card{
  background:#fff;
  border-radius:14px;
  padding:40px;
  display:flex;
  flex-direction:column;
  box-shadow:0 12px 30px rgba(0,0,0,.06);
  transition:.25s ease;
}

.project-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,0,0,.1);
}

.project-image{
  height:190px;
  background:linear-gradient(135deg,#dfeee6,#cde3d6);
  border-radius:10px;
  margin-bottom:22px;
}

.project-card h3{
  font-size:1.25rem;
  font-weight:700;
  margin-bottom:14px;
}

.project-card p{
  font-size:.95rem;
  line-height:1.6;
  margin-bottom:18px;
  flex-grow:1;
}

.project-link{
  font-weight:700;
  color:var(--color-primary);
}

/* =========================
   IMPACTO
========================= */

#impact{
  background:linear-gradient(
    rgba(15,40,30,.85),
    rgba(15,40,30,.85)
  );
  padding:110px 24px 120px;
  color:#fff;
}

.impact-container{
  max-width:1200px;
  margin:0 auto;
  text-align:center;
}

#impact h2{
  font-size:2.4rem;
  font-weight:800;
  margin-bottom:64px;
}

.impact-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:40px;
}

.impact-number{
  font-size:3rem;
  font-weight:800;
  margin-bottom:14px;
  color:#9ae6b4;
}

/* =========================
   BLOG
========================= */

#blog{
  background:#fff;
  padding:110px 24px 140px;
}

.blog-container{
  max-width:1200px;
  margin:0 auto;
}

#blog h2{
  text-align:center;
  font-size:2.4rem;
  font-weight:800;
  margin-bottom:64px;
}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
  align-items:stretch;
}

.blog-card{
  background:#f7f9f8;
  border-radius:14px;
  padding:28px;
  display:flex;
  flex-direction:column;
  transition:.25s ease;
}

.blog-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 36px rgba(0,0,0,.08);
}

.blog-image{
  height:180px;
  background:linear-gradient(135deg,#e3efe8,#d2e5db);
  border-radius:10px;
  margin-bottom:22px;
}

.blog-card p{
  flex-grow:1;
}

.blog-link{
  font-weight:700;
  color:var(--color-primary);
}

/* =========================
   CTA INSTITUCIONAL
========================= */

#cta{
  background:#f8faf9;
  padding:100px 24px;
}

/* Slider */
.cta-slider{
  overflow:hidden;
  margin-bottom:72px;
}

.cta-track{
  display:flex;
  gap:24px;
  width:max-content;
  animation: cta-scroll 45s linear infinite;
}

.cta-track img{
  width:520px;
  height:340px;
  object-fit:cover;
  border-radius:24px;
  flex-shrink:0;
}

/* Animación */
@keyframes cta-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* Contenido */
.cta-content{
  max-width:1100px;
  margin:0 auto;
  text-align:center;
}

.cta-content h2{
  font-size:2.4rem;
  font-weight:800;
  color:var(--color-dark);
  margin-bottom:18px;
}

.cta-intro{
  max-width:720px;
  margin:0 auto 56px;
  font-size:1.05rem;
  color:var(--color-dark-soft);
  line-height:1.6;
}

/* Columnas */
.cta-columns{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}

.cta-item{
  text-align:center;
}

.cta-item h3{
  font-size:1.15rem;
  font-weight:700;
  margin-bottom:10px;
}

.cta-item p{
  font-size:.95rem;
  color:var(--color-muted);
  margin-bottom:18px;
}

/* Botones */
.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 20px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.25);
  background:transparent;
  color:var(--color-dark);
  font-weight:600;
  transition:.25s ease;
}

.btn-outline:hover{
  background:var(--color-dark);
  color:#fff;
}

/* Responsive */
@media(max-width:900px){
  .cta-columns{
    grid-template-columns:1fr;
  }
  .cta-track img{
    width:420px;
    height:280px;
  }
}

/* CTA – fuerza tipográfica institucional */

#cta .cta-intro{
  font-size: 1.15rem;
  font-weight: 500;
  color: #1e293b;          /* más contraste */
  margin-bottom: 64px;
}

#cta .cta-item h3{
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

#cta .cta-item p{
  font-size: 1rem;
  font-weight: 400;
  color: #334155;
  margin-bottom: 22px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:1100px){
  .projects-grid{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:900px){
  .about-columns,
  .about-icons,
  .impact-grid,
  .blog-grid{
    grid-template-columns:1fr;
  }
  .hero-content{ bottom:30vh; }
}

@media (max-width:600px){
  .projects-grid{ grid-template-columns:1fr; }
}
/* =========================
   BLOG – AJUSTE VISUAL
========================= */

.blog-card{
  min-height: 460px;              /* altura elegante */
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
}

.blog-card h3{
  margin-bottom: 14px;
}

.blog-card p{
  flex-grow: 1;                   /* empuja el link hacia abajo */
  margin-bottom: 24px;
}

/* Link "Leer más" abajo y limpio */
.blog-link{
  margin-top: auto;
  font-weight: 600;
  font-size: .95rem;
  align-self: flex-start;
}
/* CONTENEDOR EDITORIAL CTA */
.cta-container{
  position: relative;
  display: flex;
  justify-content: center;
}

.cta-box{
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  border-radius: 28px;
  padding: 56px 64px;
  max-width: 880px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.15);
}

/* Tipografía */
.cta-box h2{
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--color-dark);
}

.cta-box p{
  font-size: 1.1rem;
  color: var(--color-dark-soft);
  margin-bottom: 36px;
}

/* Responsive */
@media (max-width: 768px){
  .cta-box{
    padding: 40px 28px;
  }
}
/* =========================
   CTA – NORMALIZACIÓN FINAL
========================= */

/* Quitar subrayado en CTA */
#cta a{
  text-decoration: none;
}

/* Unificar botones SOLO en CTA */
#cta a.btn,
#cta a.btn-outline{
  background: var(--color-primary);
  color: #fff;
  border: none;
}

#cta a.btn:hover,
#cta a.btn-outline:hover{
  background: var(--color-primary-soft);
  transform: translateY(-2px);
}

/* Fuerza tipográfica CTA */
#cta .cta-intro{
  font-size: 1.15rem;
  font-weight: 500;
  color: #1e293b;
}

#cta .cta-item h3{
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

#cta .cta-item p{
  font-size: 1rem;
  color: #334155;
}
/* =========================
   CTA – NORMALIZACIÓN FINAL
========================= */

/* Quitar subrayado en CTA */
#cta a{
  text-decoration: none;
}

/* Unificar botones SOLO en CTA */
#cta a.btn,
#cta a.btn-outline{
  background: var(--color-primary);
  color: #fff;
  border: none;
}

#cta a.btn:hover,
#cta a.btn-outline:hover{
  background: var(--color-primary-soft);
  transform: translateY(-2px);
}

/* Fuerza tipográfica CTA */
#cta h2{
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-dark);
}

#cta .cta-intro{
  font-size: 1.15rem;
  font-weight: 500;
  color: #1e293b;
}

#cta .cta-item h3{
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

#cta .cta-item p{
  font-size: 1rem;
  color: #334155;
}
#cta {
  position: relative;
  overflow: hidden;
}

.cta-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* ===============================
   SOCIOS ESTRATÉGICOS — SLIDER INFINITO
=============================== */

#partners {
  padding: 100px 0 130px;          /* 🔑 más presencia vertical */
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
}

/* ===============================
   TEXTO
=============================== */

.partners-container {
  max-width: 1320px;               /* más ancho institucional */
  margin: 0 auto 56px;
  text-align: center;
  padding: 0 40px;
}

.partners-container h2 {
  font-size: 2.6rem;               /* más jerarquía */
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

/* 🔑 TEXTO MEJORADO (NO DÉBIL) */
.partners-container p {
  font-size: 1.15rem;              /* más legible */
  font-weight: 500;                /* más cuerpo */
  color: #334155;                  /* más contraste */
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ===============================
   SLIDER INFINITO
=============================== */

.partners-slider {
  width: 100%;
  overflow: hidden;
  margin-top: 32px;
}

.partners-track {
  display: flex;
  width: max-content;
  animation: partners-scroll 70s linear infinite;
}

.partners-group {
  display: flex;
  align-items: center;
}

/* ===============================
   LOGOS
=============================== */

.partner-logo {
  flex: 0 0 auto;
  width: 200px;                    /* 🔑 logos más grandes */
  height: 100px;
  margin: 0 56px;                  /* más aire lateral */
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===============================
   ANIMACIÓN
=============================== */

@keyframes partners-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 1024px) {
  .partners-container {
    max-width: 1180px;
  }

  .partner-logo {
    width: 180px;
    height: 90px;
    margin: 0 40px;
  }
}

@media (max-width: 768px) {
  #partners {
    padding: 80px 0 110px;
  }

  .partners-container h2 {
    font-size: 2.1rem;
  }

  .partners-container p {
    font-size: 1.05rem;
  }

  .partner-logo {
    width: 160px;
    height: 80px;
    margin: 0 28px;
  }

  .partners-track {
    animation-duration: 80s;
  }
}


/* ===============================
   TESTIMONIOS
=============================== */

#testimonials {
  padding: 90px 0;
  background: #ffffff; /* contraste limpio tras socios */
}

.testimonials-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.testimonials-container h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
}

.testimonials-container > p {
  font-size: 1rem;
  color: #475569;
  max-width: 760px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* GRID */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

/* TARJETA */
.testimonial-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 32px;
  text-align: left;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial-author strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: #64748b;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #testimonials {
    padding: 70px 0;
  }

  .testimonials-container h2 {
    font-size: 1.9rem;
  }
}
/* ===============================
   RESET TOTAL SOCIOS ESTRATÉGICOS
   (elimina curvas, svg, fondos)
=============================== */

#partners {
  background: #f1f5f9 !important;
  padding: 90px 0 !important;
  border-top: 1px solid #e5e7eb;
  border-bottom: none;
  overflow: hidden;
}

/* MATA cualquier SVG o pseudo-elemento */
#partners::before,
#partners::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* ================================================
   HOME HERO FIX — pegar al final de home.css
================================================ */

.hero-content {
  bottom: 7vh;
}

/* Título más pequeño pero imponente */
.hero-content h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
  color: #fff;
}

/* "equilibrio ecológico" — brilla */
.hero-content h1 em {
  white-space: nowrap;
  color: #9fe8b8;
  font-style: italic;
  text-shadow: 0 0 40px rgba(159,232,184,.35), 0 2px 16px rgba(0,0,0,.3);
}

/* Subtítulo — otra tipografía, blanco más puro */
.hero-content p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,.92);
  opacity: 1;
  letter-spacing: .02em;
  line-height: 1.75;
  text-shadow: 0 1px 12px rgba(0,0,0,.3);
}

@media (max-width: 600px) {
  .hero-content { bottom: 10vh; }
  .hero-content h1 em { white-space: normal; }
  .hero-content p { font-size: 1rem; }
}