:root {
  --primary: #5C8A3A;
  --dark: #2D4A2B;
  --accent: #E89B4C;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --text: #2B2B2B;
  --muted: #6B6B6B;
  --border: #E8E4DD;
  --header-h: 78px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* fuerza el atributo hidden incluso cuando lo sobrescribe display:flex u otros */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--dark);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}
p { color: var(--muted); line-height: 1.7; }
strong { color: inherit; font-weight: 700; }
button { font-family: inherit; cursor: pointer; }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-logo img { height: 42px; width: auto; display: block; }
.site-nav { display: flex; gap: 8px; align-items: center; }
.site-nav a {
  padding: 8px 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  border-radius: 8px;
  transition: all .2s;
}
.site-nav a:hover { color: var(--primary); background: var(--cream); }
.site-nav a.active { color: var(--primary); }
.site-nav .nav-cta {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  margin-left: 8px;
}
.site-nav .nav-cta:hover { background: var(--dark); color: white; }
.nav-toggle { display: none; background: none; border: none; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: .3s; }

/* ========== LAYOUT HELPERS ========== */
.section { padding: 100px 32px; }
.section.cream { background: var(--cream); }
.section.dark { background: var(--dark); color: white; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: white; }
.boxed { max-width: 1200px; margin: 0 auto; }
.boxed.narrow { max-width: 900px; }
.row { display: flex; flex-wrap: wrap; gap: 40px; }
.row.center { align-items: center; }
.row.between { justify-content: space-between; }
.row.gap-sm { gap: 22px; }
.row.gap-lg { gap: 60px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.w-25 { flex: 0 1 calc(25% - 18px); }
.w-31 { flex: 0 1 calc(33.333% - 16px); min-width: 280px; }
.w-33 { flex: 0 1 calc(33.333% - 16px); min-width: 280px; }
.w-44 { flex: 0 1 calc(44% - 30px); min-width: 300px; }
.w-48 { flex: 0 1 calc(50% - 12px); min-width: 280px; }
.svc-col { flex: 0 1 calc(25% - 18px); min-width: 200px; }
.w-50 { flex: 0 1 calc(50% - 20px); min-width: 280px; }
.w-52 { flex: 0 1 calc(56% - 30px); min-width: 320px; }
.w-58 { flex: 0 1 calc(58% - 20px); min-width: 320px; }
.w-38 { flex: 0 1 calc(38% - 20px); min-width: 280px; }

/* ========== TYPOGRAPHY ========== */
.eyebrow {
  font-family: 'Poppins', sans-serif;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}
.eyebrow.accent { color: var(--accent); }
.eyebrow.muted { color: var(--muted); }
.eyebrow.primary { color: var(--primary); }  /* por si en algún sitio quieres volver al verde */
.h1 { font-size: 58px; line-height: 1.05; color: var(--dark); }
.h2 { font-size: 42px; line-height: 1.15; color: var(--dark); }
.h3 { font-size: 22px; line-height: 1.3; color: var(--dark); font-weight: 700; }
.h4 { font-size: 20px; line-height: 1.3; color: var(--dark); font-weight: 700; }
.center { text-align: center; }
.lead { font-size: 18px; line-height: 1.65; color: var(--text); }
.lead.muted { color: var(--muted); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all .25s ease;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--dark); color: white; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #D8893B; transform: translateY(-1px); color: white; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ========== HERO ========== */
.hero { background: var(--cream); padding: 100px 32px; }
.hero .h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero img.hero-img {
  border-radius: 28px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(45,74,43,0.15);
  width: 100%;
}
.trust {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 28px;
}
.avatars { display: flex; flex-shrink: 0; }
.avatars img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid white; object-fit: cover; }
.avatars img + img { margin-left: -12px; }

/* ========== STATS STRIP ========== */
.stats { background: var(--dark); padding: 64px 32px; color: white; }
.stat { text-align: center; display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.stat .num {
  font-family: 'Poppins', sans-serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat .label { color: white; font-size: 15px; font-weight: 500; }

/* ========== SPLIT ========== */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 60px; }
.split .img-col, .split .text-col { flex: 0 1 calc(48% - 30px); min-width: 300px; }
.split img { border-radius: 24px; aspect-ratio: 4/3; object-fit: cover; box-shadow: 0 20px 50px rgba(45,74,43,0.12); width: 100%; }
.split .h2 { margin-bottom: 16px; }
.split p { margin-bottom: 14px; }
.split p:last-of-type { margin-bottom: 24px; }

/* ========== SERVICE CARDS ========== */
.service-card {
  background: white;
  padding: 22px;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(45,74,43,0.08);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(45,74,43,0.14); }
.service-card img { aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; width: 100%; }
.service-card .h3 { margin-bottom: 0; }
.service-card p { font-size: 15px; line-height: 1.6; flex: 1; margin: 0; }

/* ========== ICONBOX (3 motivos) ========== */
.iconbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 16px;
}
.iconbox .icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.iconbox.accent .icon { background: #FCE9D5; color: var(--accent); }
.iconbox h4 { font-size: 20px; }
.iconbox p { font-size: 15px; }

/* ========== GALLERY ========== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery img {
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 24px;
  width: 100%;
  transition: transform .3s;
}
.gallery img:hover { transform: scale(1.02); }

/* ========== TESTIMONIALS ========== */
.testi {
  background: var(--white);
  padding: 36px 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  box-shadow: 0 10px 26px rgba(45,74,43,0.07), 0 3px 8px rgba(45,74,43,0.04);
  border-top: 4px solid var(--accent);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testi:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(45,74,43,0.12), 0 6px 14px rgba(45,74,43,0.06);
}
.testi .stars { color: var(--accent); font-size: 15px; letter-spacing: 4px; line-height: 1; }
.testi .quote-mark {
  font-family: Georgia, serif;
  font-size: 100px;
  color: var(--primary);
  line-height: 0.5;
  font-weight: 700;
  opacity: 0.18;
  position: absolute;
  top: 50px;
  right: 28px;
  pointer-events: none;
  user-select: none;
}
.testi .quote { font-size: 16px; line-height: 1.75; color: var(--text); margin: 0; font-weight: 500; position: relative; z-index: 1; }
.testi .author { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.testi .author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testi .author .name { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--dark); font-size: 16px; line-height: 1.2; }
.testi .author .role { color: var(--muted); font-size: 13px; line-height: 1.3; margin-top: 4px; }

/* ========== TESTIMONIOS · SECCIÓN ========== */
.testi-section {
  position: relative;
  background: var(--white);
}
.testi-section .testi-section-head { text-align: center; margin-bottom: 50px; }

/* ========== CARRUSEL INFINITO ========== */
.testi-carousel {
  position: relative;
  padding: 8px 0;
}
.carousel-viewport {
  overflow: hidden;
  padding: 20px 12px 36px;
  /* Fundido sutil en los bordes para que los cards no se "corten" duros */
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}
.carousel-track {
  display: flex;
  gap: 22px;
  transition: transform .65s cubic-bezier(.4,.14,.3,1);
  will-change: transform;
}
.testi-slide {
  flex: 0 0 calc(33.333% - 14.66px);
  display: flex;
  min-width: 0;
}
.testi-slide > .testi { width: 100%; }
@media (max-width: 900px) {
  .testi-slide { flex: 0 0 calc(50% - 11px); }
}
@media (max-width: 600px) {
  .testi-slide { flex: 0 0 100%; }
  .carousel-viewport { mask-image: none; -webkit-mask-image: none; padding: 14px 6px 28px; }
}

/* Flechas a izq/der, círculo flotante */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--dark);
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 10px 28px rgba(45,74,43,0.14);
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 0;
  line-height: 1;
}
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }
.carousel-arrow:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 14px 32px rgba(92,138,58,0.45);
  transform: translateY(-50%) scale(1.08);
}
.carousel-arrow:active { transform: translateY(-50%) scale(0.96); }
@media (max-width: 1100px) {
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}
@media (max-width: 600px) {
  /* Flechas debajo del carrusel, centradas */
  .testi-carousel { padding: 8px 0 68px; }
  .carousel-arrow {
    top: auto;
    bottom: 0;
    transform: none;
    width: 44px;
    height: 44px;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(45,74,43,0.15);
  }
  .carousel-prev { left: 50%; margin-left: -52px; }
  .carousel-next { right: 50%; margin-right: -52px; left: auto; }
  .carousel-arrow:hover { transform: scale(1.06); }
  .carousel-arrow:active { transform: scale(0.94); }
}

/* "Leer más" button dentro del testi */
.testi-more {
  background: none;
  border: none;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  transition: color .2s;
  letter-spacing: 0.3px;
}
.testi-more::after { content: ' →'; display: inline-block; transition: transform .2s; }
.testi-more:hover { color: var(--dark); }
.testi-more:hover::after { transform: translateX(4px); }

/* ========== REVEAL ON SCROLL ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========== MODAL TESTIMONIO ========== */
.testi-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.testi-modal[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45,74,43,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: stFadeIn .2s ease;
  cursor: pointer;
}
.modal-card {
  position: relative;
  background: var(--white);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 40px 36px;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  z-index: 1;
  border-top: 4px solid var(--accent);
  animation: stModalIn .25s cubic-bezier(.16,.84,.44,1);
}
@keyframes stFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes stModalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  line-height: 1;
  padding: 0;
}
.modal-close:hover { background: var(--primary); color: var(--white); transform: rotate(90deg); }
.modal-stars { color: var(--accent); font-size: 17px; letter-spacing: 4px; margin-bottom: 16px; line-height: 1; }
.modal-quote {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 28px;
  font-weight: 500;
}
.modal-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.modal-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.modal-author .name { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--dark); font-size: 17px; line-height: 1.2; }
.modal-author .role { color: var(--muted); font-size: 14px; line-height: 1.3; margin-top: 4px; }

/* ========== TRUST LOGOS ========== */
.logos { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.logos img { max-height: 52px; flex: 0 0 auto; opacity: 0.55; filter: grayscale(1); transition: all .25s; }
.logos img:hover { opacity: 1; filter: grayscale(0); }

/* ========== BLOG (cargado dinámicamente) ========== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(45,74,43,0.1); }
.post-card a { color: inherit; text-decoration: none; display: block; }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card .body { padding: 22px; }
.post-card .cat {
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}
.post-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
  line-height: 1.35;
}
.post-card .excerpt { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.post-card .read-more { color: var(--primary); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; }
.blog-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 14px;
}
.blog-loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== CTA BANNER ========== */
.cta-banner {
  padding: 80px 32px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background: rgba(45,74,43,0.55); }
.cta-banner .boxed { position: relative; z-index: 1; }
.cta-card {
  background: rgba(45,74,43,0.92);
  border-radius: 28px;
  padding: 64px;
  text-align: center;
  color: white;
}
.cta-card h2 { color: white; font-size: 40px; margin-bottom: 14px; }
.cta-card p { color: #E4ECDC; font-size: 18px; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--dark);
  color: #B5C5AC;
  padding: 70px 32px 30px;
}
.site-footer .container { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}
.site-footer h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.site-footer .footer-brand p { color: #B5C5AC; font-size: 14px; line-height: 1.7; margin: 14px 0 0; }
.site-footer .footer-logo { height: 42px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a, .site-footer .contact-info a { color: #B5C5AC; text-decoration: none; font-size: 14px; transition: color .2s; }
.site-footer ul a:hover, .site-footer .contact-info a:hover { color: var(--accent); }
.contact-info { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.contact-info .ci-svg {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.92;
  transition: opacity .2s;
}
.contact-info a:hover .ci-svg { opacity: 1; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.socials a svg { display: block; }
.socials a:hover { background: var(--accent); color: white; transform: translateY(-2px); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-legal .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal .legal-links a { color: #B5C5AC; text-decoration: none; }
.footer-legal .legal-links a:hover { color: white; }
.acred-strip {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 22px 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  margin-bottom: 40px;
}
.acred-strip .acred-label {
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-right: 6px;
}
.acred-strip .acred-logos { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.acred-strip .acred-logos img {
  height: 56px;
  width: auto;
  background: white;
  padding: 6px 10px;
  border-radius: 10px;
  display: block;
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 4px 12px rgba(0,0,0,0.15);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(37,211,102,0.5), 0 6px 16px rgba(0,0,0,0.2);
  color: white;
}
.whatsapp-float svg { width: 32px; height: 32px; fill: white; position: relative; z-index: 2; }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.6;
  z-index: 0;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--dark);
  color: white;
  padding: 9px 16px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  letter-spacing: 0.3px;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--dark);
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ========== UTILITIES desktop / móvil ========== */
.hide-mobile { display: inline; }
.show-mobile { display: none; }
.blog-cta-mobile { display: none; }
@media (max-width: 600px) {
  .hide-mobile { display: none; }
  .show-mobile { display: inline; }
}

/* ========== RESPONSIVE ========== */

/* ----- ≤ 980 px (tablet y móvil grande) ----- */
@media (max-width: 980px) {
  .section, .hero { padding: 60px 22px; }
  .h1 { font-size: 36px !important; }
  .h2 { font-size: 28px; }
  .hero, .split { gap: 30px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .row { gap: 22px; }
  .row.gap-lg { gap: 30px; }
  .cta-card { padding: 40px 28px; }
  .cta-card h2 { font-size: 28px; }

  /* CLAVE: quito el min-width de TODAS las columnas anchas, si no se desbordan
     o crean ese efecto de "no ocupar el ancho disponible" en móvil */
  .w-31, .w-33, .w-44, .w-48, .w-50, .w-52, .w-58, .w-38,
  .split .img-col, .split .text-col {
    min-width: 0 !important;
    flex: 0 1 100% !important;
  }

  /* Si en un split la columna de texto va primero en el HTML (Metodología, p.ej.),
     en móvil seguimos mostrando la imagen ARRIBA para consistencia visual */
  .split .text-col:first-child { order: 2; }
  .split .img-col:last-child   { order: 1; }

  /* Servicios 2 en 2 */
  .svc-col { flex: 0 1 calc(50% - 11px) !important; min-width: 130px !important; }

  /* HERO: en móvil PRIMERO se ve la imagen, luego el texto */
  .hero .w-52 { order: 2; }
  .hero .w-44 { order: 1; }

  /* Hero: dos botones lado a lado en móvil */
  .hero-ctas { flex-wrap: nowrap; gap: 10px; }
  .hero-ctas .btn {
    flex: 1 1 0;
    padding: 12px 16px;
    font-size: 13px;
    justify-content: center;
    text-align: center;
    min-width: 0;
    white-space: nowrap;
  }

  /* Quiénes Somos: botón "Conoce al equipo" centrado en móvil.
     Para que align-self funcione, .text-col tiene que ser flex container */
  .split .text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .split .text-col .btn { align-self: center; margin-top: 10px; }

  /* Blog: la cabecera se centra (eyebrow + h2). El botón de la cabecera
     se OCULTA en móvil y aparece UN ÚNICO botón debajo del grid */
  .blog-head { text-align: center; gap: 16px; }
  .blog-head .col { align-items: center !important; }
  .blog-head .eyebrow, .blog-head .h2 { text-align: center; width: 100%; }
  .blog-cta-col { display: none; }
  .blog-cta-mobile {
    display: flex;
    justify-content: center;
    margin-top: 30px;
  }

  /* Mobile burger nav */
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 32px; border-radius: 0; width: 100%; }
  .site-nav .nav-cta {
    margin: 14px 32px 6px;
    padding: 13px 24px;
    text-align: center;
    border-radius: 50px;
    width: auto;          /* corrige el "Mi cuenta" demasiado ancho */
    align-self: stretch;  /* ocupa el ancho disponible menos los márgenes */
  }
}

/* ----- ≤ 600 px (móvil) ----- */
@media (max-width: 600px) {
  /* Sección general más compacta */
  .section, .hero { padding: 50px 20px; }

  /* Hero */
  .hero { padding-top: 30px; }      /* 50 → 30 (quito 20px arriba) */
  .hero .trust { font-size: 13px; }
  .hero img.hero-img {
    height: 150px;                  /* imagen más bajita en móvil */
    aspect-ratio: auto;             /* anulo el 4/3 del desktop */
    object-fit: cover;
  }

  /* Servicios cards: padding, fuentes y botones más pequeños para que el texto
     y los botones quepan en 2 columnas sin romper línea de forma fea */
  .service-card { padding: 16px; gap: 10px; }
  .service-card .h3 { font-size: 17px; line-height: 1.25; }
  .service-card p { font-size: 13.5px; line-height: 1.5; }
  .service-card .btn {
    padding: 10px 14px;
    font-size: 12.5px;
    letter-spacing: 0.2px;
    gap: 4px;
    align-self: stretch;
    justify-content: center;
  }

  /* Testimonios cards más estrechos por dentro */
  .testi { padding: 28px 22px; }
  .testi .quote-mark { font-size: 70px; top: 32px; right: 18px; }
  .testi .author img { width: 46px; height: 46px; }
  .testi-section .testi-section-head { margin-bottom: 32px; }

  /* Modal testimonio */
  .testi-modal { padding: 14px; }
  .modal-card { padding: 38px 22px 26px; max-height: 92vh; }
  .modal-quote { font-size: 15px; }
  .modal-author img { width: 48px; height: 48px; }

  /* Por qué elegirnos — compacto */
  .iconbox { gap: 10px; padding: 4px 8px; }
  .iconbox .icon { width: 54px; height: 54px; font-size: 24px; }
  .iconbox h4 { font-size: 18px; }
  .iconbox p { font-size: 14px; }

  /* Logos colaboradores */
  .logos { gap: 22px; justify-content: center; }
  .logos img { max-height: 36px; }

  /* Acreditaciones del footer */
  .acred-strip { padding: 18px 16px; gap: 14px; }
  .acred-strip .acred-label { font-size: 11px; text-align: center; margin-right: 0; }
  .acred-strip .acred-logos { gap: 10px; }
  .acred-strip .acred-logos img { height: 46px; padding: 5px 8px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding: 50px 22px 24px; }

  /* Header padding */
  .site-header .container { padding: 0 20px; }

  /* WhatsApp flotante */
  .whatsapp-float { width: 56px; height: 56px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .wa-tooltip { display: none; }

  /* CTA banner */
  .cta-banner { padding: 50px 20px; }
  .cta-card { padding: 36px 22px; }
  .cta-card h2 { font-size: 26px; }
  .cta-card p { font-size: 16px; }
}

/* ----- ≤ 380 px (móviles muy pequeños) ----- */
@media (max-width: 380px) {
  .section, .hero { padding: 44px 18px; }
  .h1 { font-size: 30px !important; }
  .testi { padding: 24px 18px; }
  .svc-col { min-width: 120px !important; }
}

/* ============================================================
   CURSOS GRID 3×2 (home — 6 cursos online)
   ============================================================ */
.cursos-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
/* Neutralizar restos de .svc-col (flex) cuando el padre es grid */
.cursos-grid-3 > article {
  flex: none !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100%;
}
@media (max-width: 980px) {
  .cursos-grid-3 { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  .cursos-grid-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIOS — 2 VIDEOS (home)
   ============================================================ */
.testi-videos-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 30px;
}
@media (max-width: 800px) {
  .testi-videos-2 { grid-template-columns: 1fr; gap: 22px; }
}
.testi-video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testi-video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--dark);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.testi-video-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}
.testi-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: opacity .2s ease;
}
.testi-video-thumb:hover img { opacity: 1; }
.testi-video-thumb .play-icon {
  position: absolute;
  inset: 0;
  font-size: 0;                              /* oculta el ▶ del HTML */
  color: transparent;
  background: rgba(45, 74, 43, 0.30);
  transition: background .2s ease;
}
/* Círculo blanco centrado */
.testi-video-thumb .play-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background .2s ease;
}
/* Triángulo verde de play */
.testi-video-thumb .play-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--primary);
  transform: translate(-40%, -50%);          /* offset ligero a la derecha para centrado óptico */
}
.testi-video-thumb:hover .play-icon { background: rgba(45, 74, 43, 0.20); }
.testi-video-thumb:hover .play-icon::before {
  transform: translate(-50%, -50%) scale(1.08);
  background: white;
}
.testi-video-meta {
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.testi-video-meta strong {
  display: block;
  color: var(--dark);
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.testi-video-meta span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}

/* ============================================================
   COLABORADORES — logos más grandes y juntos
   ============================================================ */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 48px;
}
.logos img {
  max-height: 72px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .logos { gap: 22px 30px; }
  .logos img { max-height: 56px; max-width: 140px; }
}

/* ============================================================
   PAGE HERO (compartido — usado en testimonios.html y como fallback)
   ============================================================ */
.page-hero {
  background: var(--dark);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 130px 32px 110px;
  text-align: center;
  position: relative;
}
.page-hero .eyebrow { color: var(--accent); margin-bottom: 18px; }
.page-hero .page-h1 {
  color: white;
  font-size: 54px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 auto 20px;
  max-width: 900px;
}
.page-hero .page-lead {
  color: #E4ECDC;
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}
@media (max-width: 980px) {
  .page-hero { padding: 90px 22px 80px; }
  .page-hero .page-h1 { font-size: 36px; }
}
@media (max-width: 600px) {
  .page-hero { padding: 60px 20px 50px; }
  .page-hero .page-h1 { font-size: 28px; }
  .page-hero .page-lead { font-size: 16px; }
}

/* ============================================================
   /testimonios/ — grid de testimonios escritos
   Reutiliza la card .testi del carrusel pero en CSS Grid (sin scroll)
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
.testi-grid > .testi {
  margin: 0;
  height: 100%;
}
@media (max-width: 800px) {
  .testi-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ============================================================
   /testimonios/ — grid de vídeos (3 columnas)
   ============================================================ */
.testi-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 980px) {
  .testi-videos-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .testi-videos-grid { grid-template-columns: 1fr; }
}

/* En la página de testimonios la sección de cards usa fondo crema
   pero queremos que sea de altura natural sin testi-carousel */
.testi-page-videos-section { padding-top: 80px; padding-bottom: 80px; }
