:root {
  /* Nuevos Colores Principales */
  --teal-dark: #2B4C6F;       /* Azul oscuro para textos e íconos principales */
  --teal: #3E6D9C;            /* Azul Derechos (#3E6D9C) */
  --purple: #3E6D9C;          /* Mapeado al Azul Derechos */
  --purple-light: #5A88B7;    /* Azul claro de acento */
  --purple-dark: #203650;     /* Azul muy oscuro */
  --purple-deep: #2A486A;     /* Azul profundo */
  
  --green: #6A994E;           /* Verde Mente (#6A994E) */
  --green-light: #88B76C;     /* Verde claro de acento */
  
  --bg-soft: #f2f7f0;         /* Fondo suave verdoso */
  --bg-purple-soft: #f0f4f8;  /* Fondo suave azulado */
  --text-dark: #1f2d3d;       /* Texto oscuro */
  --text-muted: #52667a;      /* Texto secundario */
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }
.page-wrap { position: relative; }
.leaf-decor { position: absolute; pointer-events: none; z-index: 0; opacity: .9; }

/* HEADER */
header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(62, 109, 156, 0.08);
  border-radius: 0 0 22px 22px;
  margin: 0 24px;
}

.logo-group { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 52px; height: 52px; flex-shrink: 0; }
.logo-text { line-height: 1.15; }
.logo-text .l1 { font-weight: 800; font-size: 20px; color: var(--teal-dark); letter-spacing: .3px; }
.logo-text .l2 { font-weight: 700; font-size: 12px; color: var(--purple); letter-spacing: 2.5px; }

nav ul { display: flex; gap: 36px; }
nav a { font-weight: 600; font-size: 15px; color: var(--teal-dark); padding-bottom: 6px; position: relative; transition: color .2s; }
nav a:hover { color: var(--green); }
nav a.active { color: var(--teal-dark); }
nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--teal-dark); border-radius: 2px; }
nav a.active-purple { color: var(--purple); }
nav a.active-purple::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--purple); border-radius: 2px; }

.header-icons { display: flex; align-items: center; gap: 24px; }
.header-icons button { background: none; border: none; cursor: pointer; color: var(--teal-dark); display: flex; align-items: center; justify-content: center; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 40px; font-weight: 700; font-size: 16px;
  color: var(--white); border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.btn:hover { transform: translateY(-2px); }
.btn-green { background: linear-gradient(135deg, var(--green-light), var(--green)); }
.btn-purple { background: linear-gradient(135deg, var(--purple-light), var(--purple)); }
.btn svg { width: 18px; height: 18px; }

/* HERO */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 70px 90px 90px;
  background: linear-gradient(180deg, #f2f7f0 0%, #e6f0e2 60%, #f6fbf5 100%);
  overflow: hidden;
}
.hero.purple-bg { background: linear-gradient(180deg, #f0f4f8 0%, #e2ebf3 60%, #f5f8fb 100%); }
.hero-text { position: relative; z-index: 2; max-width: 560px; }
.hero-title { font-weight: 800; font-size: 52px; line-height: 1.05; color: var(--teal-dark); letter-spacing: .5px; }
.hero-title .purple { color: var(--purple); }
.hero-title .green { color: var(--green); }
.hero-sub { font-weight: 700; font-size: 30px; color: var(--teal-dark); letter-spacing: 2px; margin-top: 6px; }
.hero-lead { margin-top: 22px; font-size: 19px; font-weight: 600; color: var(--text-dark); line-height: 1.4; }
.hero-desc { margin-top: 14px; font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 460px; }
.hero-buttons { display: flex; gap: 18px; margin-top: 32px; }
.hero-art {
  position: relative; z-index: 2;
  width: 460px; max-width: 44%; flex-shrink: 0;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 30px 60px -18px rgba(62, 109, 156, 0.22), 0 12px 26px -12px rgba(62, 109, 156, 0.12);
}

/* PAGE HERO */
.page-hero {
  position: relative;
  padding: 60px 90px 70px;
  text-align: center;
  overflow: hidden;
}
.page-hero.green-bg { background: linear-gradient(180deg, #f2f7f0 0%, #e6f0e2 60%, #f6fbf5 100%); }
.page-hero.purple-bg { background: linear-gradient(180deg, #f0f4f8 0%, #e2ebf3 60%, #f5f8fb 100%); }
.page-hero-icon {
  width: 78px; height: 78px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.page-hero h1 { font-weight: 800; font-size: 42px; color: var(--teal-dark); position: relative; z-index: 2; }
.page-hero h1 .accent { display: block; }
.page-hero p {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative; z-index: 2;
}

/* SUBPAGE HERO */
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.eyebrow.purple { color: var(--purple); }
.subpage-lead {
  margin-top: 18px;
  font-weight: 700;
  font-size: 26px;
  color: var(--teal-dark);
  line-height: 1.35;
  max-width: 480px;
}

/* SERVICES GRID */
.services-section { padding: 64px 90px; }
.services-section .section-head { margin-bottom: 38px; }
.services-section h2 { font-weight: 800; font-size: 32px; color: var(--teal-dark); margin-bottom: 8px; }
.services-section .section-head p { color: var(--text-muted); font-size: 16px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid #e1e8ed;
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  box-shadow: 0 6px 20px rgba(62, 109, 156, 0.05);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(62, 109, 156, 0.1); }
.service-icon { width: 58px; height: 58px; margin-bottom: 16px; }
.service-icon img, .service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-weight: 700; font-size: 16.5px; color: var(--teal-dark); margin-bottom: 8px; }
.service-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.service-bottom { display: flex; align-items: flex-end; justify-content: flex-end; margin-top: 14px; }
.service-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f0f5f8;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-dark);
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.service-card:hover .service-arrow { background: #e0ecf4; transform: translateX(2px); }

.service-card.wide {
  grid-column: span 2;
  border: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.service-card.wide.green { background: linear-gradient(135deg, #f0f7ed, #dfefe0); }
.service-card.wide.purple { background: linear-gradient(135deg, #f0f4f8, #dfebf5); }
.service-card.wide .wide-text h3 { font-weight: 800; font-size: 19px; color: var(--teal-dark); line-height: 1.4; }
.service-card.wide .wide-text h3 .accent { color: var(--purple); }
.service-card.wide .wide-text h3 .accent-green { color: var(--green); }
.service-card.wide .wide-quote {
  margin-top: 14px; font-family: 'Caveat', cursive; font-size: 22px; color: var(--purple); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.service-card.wide .wide-icon { width: 78px; height: 78px; flex-shrink: 0; }

.services-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .service-card.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid.cols-3 { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: span 1; flex-direction: column; text-align: center; }
}

/* VALUE BAND */
.value-band {
  margin: 10px 24px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  padding: 46px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.value-band-left { display: flex; align-items: center; gap: 26px; position: relative; z-index: 2; }
.value-band-icon { width: 74px; height: 74px; flex-shrink: 0; }
.value-band-text h2 { color: #fff; font-weight: 800; font-size: 24px; line-height: 1.4; }
.value-band-text .quote { margin-top: 10px; font-family: 'Caveat', cursive; font-size: 22px; color: #e2ebf3; font-weight: 600; }
.value-band-decor { width: 64px; height: 64px; flex-shrink: 0; position: relative; z-index: 2; opacity: .95; }

@media (max-width: 980px) {
  .value-band { flex-direction: column; text-align: center; padding: 36px 28px; margin: 10px 12px 30px; }
  .value-band-left { flex-direction: column; }
}

/* CARDS GRID */
.cards-section { padding: 60px 90px; }
.cards-section h2 {
  text-align: center;
  font-weight: 800;
  font-size: 30px;
  color: var(--teal-dark);
  margin-bottom: 10px;
}
.cards-section h2 .accent { color: var(--purple); }
.cards-section .section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.6;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid #e1e8ed;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 6px 20px rgba(62, 109, 156, 0.05);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(62, 109, 156, 0.1); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon.green { background: #e8f3e5; }
.card-icon.purple { background: var(--bg-purple-soft); }
.card h3 { font-weight: 700; font-size: 18px; color: var(--teal-dark); margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* CTA STRIP */
.cta-strip {
  margin: 10px 24px 40px;
  border-radius: 28px;
  padding: 56px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip.green { background: linear-gradient(135deg, var(--green-light), var(--green)); }
.cta-strip.purple { background: linear-gradient(135deg, var(--purple-light), var(--purple)); }
.cta-strip h2 { color: var(--white); font-weight: 800; font-size: 28px; margin-bottom: 12px; position: relative; z-index: 2; }
.cta-strip p { color: rgba(255, 255, 255, 0.9); font-size: 15.5px; max-width: 520px; margin: 0 auto 26px; line-height: 1.6; position: relative; z-index: 2; }
.cta-strip .btn { background: var(--white); color: var(--teal-dark); position: relative; z-index: 2; }
.cta-strip .btn svg path { stroke: var(--teal-dark); }

/* FEATURES STRIP */
.features { display: flex; justify-content: space-between; align-items: flex-start; padding: 46px 90px; gap: 10px; }
.feature { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; position: relative; padding: 0 12px; }
.feature:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 6px; bottom: 6px; width: 1px; background: #e1e8ed; }
.feature-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.feature p { font-weight: 600; font-size: 15px; color: var(--teal-dark); line-height: 1.3; }

/* MISSION SECTION */
.mission {
  margin: 10px 24px 40px;
  background: var(--bg-soft);
  border-radius: 28px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 56px 70px; gap: 40px; position: relative; overflow: hidden;
}
.mission-text { max-width: 560px; position: relative; z-index: 2; }
.mission-text h2 { font-weight: 800; font-size: 30px; line-height: 1.3; color: var(--teal-dark); }

.mission-text h2 .green-text {
  color: #6A994E; /* Verde Mente */
  display: block;
}
.mission-text p { margin-top: 20px; font-size: 16px; color: var(--text-muted); line-height: 1.65; max-width: 460px; }

.mission-quote {
  margin-top: 22px;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  font-weight: 600;
  color: #3E6D9C; /* Azul Derechos */
  display: flex;
  align-items: center;
  gap: 10px;
}
.mission-art {
  width: 380px; max-width: 46%; flex-shrink: 0; position: relative; z-index: 2;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 24px 50px -14px rgba(62, 109, 156, 0.18), 0 10px 22px -10px rgba(62, 109, 156, 0.1);
}

/* FOOTER CORREGIDO CON ESTRUCTURA EN GRID */
footer { 
  background: #3E6D9C; /* Azul Derechos */
  color: var(--white); 
  border-radius: 26px 26px 0 0; 
  margin: 0 24px; 
  padding: 34px 60px 22px; 
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.footer-logo .logo-icon { width: 46px; height: 46px; }
.footer-logo .logo-text .l1 { color: var(--white); font-size: 17px; }
.footer-logo .logo-text .l2 { color: #d0e2f2; font-size: 10px; letter-spacing: 2px; }

.footer-nav {
  justify-self: center;
}

.footer-nav ul {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a { font-weight: 500; font-size: 14px; color: #e1ebf5; transition: color .2s; }
.footer-nav a:hover { color: var(--green); }
.footer-nav a.active { color: var(--green); position: relative; }
.footer-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--green); border-radius: 2px; }

.footer-social {
  display: flex;
  gap: 12px;
  justify-self: end;
}

.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.footer-social a:hover { background: #6A994E; /* Verde Mente */ }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.18); text-align: center; font-size: 12.5px; color: #d0e2f2; }

/* Estilo para el enlace de la empresa */
.footer-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  transition: color .2s;
}
.footer-link:hover {
  color: #6A994E; /* Verde Mente al pasar el cursor */
}

@media (max-width: 980px) {
  header { padding: 16px 20px; margin: 0 12px; }
  nav { display: none; }
  .hero { flex-direction: column; padding: 40px 24px; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 22px; }
  .hero-art { width: 300px; max-width: 80%; }
  .page-hero { padding: 40px 24px 50px; }
  .page-hero h1 { font-size: 30px; }
  .cards-section { padding: 40px 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 36px 28px; margin: 10px 12px 30px; }
  .features { flex-wrap: wrap; padding: 30px 20px; }
  .feature { flex: 1 1 30%; }
  .mission { flex-direction: column; padding: 36px 28px; margin: 10px 12px 30px; text-align: center; }
  .mission-art { width: 220px; max-width: 60%; }
  .mission-text p { margin-left: auto; margin-right: auto; }
  footer { margin: 0 12px; padding: 26px 24px 18px; }
  .footer-top {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-logo, .footer-social {
    justify-self: center;
  }
  .footer-nav ul { justify-content: center; }
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

/* TOP BAR CON TELÉFONOS - FONDO BLANCO COMO EL HEADER */
.top-bar {
  background: var(--white); /* Mismo fondo blanco del header */
  color: var(--teal-dark);
  padding: 8px 48px;
  margin: 12px 24px 0;
  border-radius: 16px 16px 0 0; /* Bordes superiores redondeados */
  box-shadow: 0 2px 10px rgba(62, 109, 156, 0.05); /* Sombra suave */
  border-bottom: 1px solid #f0f4f8; /* Línea divisoria muy sutil con el header */
  font-size: 13px;
  position: relative;
  z-index: 11;
}

/* Ajuste del Header para acoplarse con la Top Bar */
header {
  margin-top: 0; /* Elimina espacio si lo hubiera */
  border-radius: 0 0 22px 22px; /* Solo redondeado en la parte inferior */
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f6f9fc; /* Fondo gris/azulado muy suave para resaltar los teléfonos */
  cursor: default;
}

.top-bar strong {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.top-bar strong.mente {
  color: var(--green); /* Verde Mente (#6A994E) */
}

.top-bar strong.derechos {
  color: var(--teal); /* Azul Derechos (#3E6D9C) */
}

.top-bar .phone-num {
  color: var(--text-dark);
  font-weight: 600;
}

.top-bar .separator {
  color: #e1e8ed;
  font-size: 12px;
}

@media (max-width: 980px) {
  .top-bar {
    margin: 8px 12px 0;
    padding: 6px 16px;
  }
  .top-bar-container {
    justify-content: center;
    gap: 10px;
    font-size: 12px;
  }
}