/* =========================================
   ABOUT US - HERO (Versión Segura y Limpia)
========================================= */
.cp-about-hero {
  background: var(--cp-color-bg); /* #faf8f4 */
  padding-top: 104px;
  padding-bottom: 92px;
  overflow: hidden;
}

.cp-about-hero__grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); /* Esto hace las dos columnas */
  gap: 76px;
  align-items: center;
}

.cp-about-hero__content {
  max-width: 600px;
}

.cp-about-hero__eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--cp-color-teal);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-about-hero__title {
  margin-bottom: 24px;
  color: var(--cp-color-ink);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.cp-text-teal {
  color: var(--cp-color-teal);
}

.cp-about-hero__text {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--cp-color-text);
  font-size: 1.05rem;
  line-height: 1.84;
}

.cp-about-hero__actions {
  margin-top: 36px;
}

/* La Imagen Limpia */
.cp-about-hero__media {
  position: relative;
}

.cp-about-hero__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--cp-radius-lg); /* 30px */
  background: #fff;
  box-shadow: var(--cp-shadow-lg);
  /* Sombra más elegante */
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08); 
}

.cp-about-hero__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.2; /* Mantiene la proporción elegante */
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

/* Micro-zoom elegante al pasar el mouse */
.cp-about-hero__media:hover .cp-about-hero__image {
  transform: scale(1.03);
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .cp-about-hero__grid {
    grid-template-columns: 1fr; /* Pasa a 1 columna en tablet/móvil */
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .cp-about-hero {
    padding-top: 76px;
    padding-bottom: 64px;
  }
  .cp-about-hero__title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  .cp-about-hero__image {
    aspect-ratio: 1 / 1.1; /* Más cuadrada en celular */
  }
}

/* ///// seccion 2   */

/* =========================================
   ABOUT US - MANIFIESTO (Diseño Caja Unificada)
========================================= */

.cp-about-manifesto {
  background: var(--cp-color-bg); /* Fondo crema del sitio */
  padding-top: 100px;
  padding-bottom: 100px;
  overflow: hidden;
}

/* =========================================
   ABOUT US - MANIFIESTO (Z-Pattern Seguro y Premium)
========================================= */

.cp-about-manifesto {
  /* Hacemos el corte visual de sección con un fondo blanco puro que contraste con el crema del Hero */
  background: #ffffff; 
  padding-top: 100px;
  padding-bottom: 100px;
  /* Volvemos a poner overflow hidden por seguridad, ya que no empujaremos nada hacia afuera */
  overflow: hidden; 
}

.cp-manifesto__grid {
  display: grid;
  gap: 80px;
  align-items: center;
}

/* --- LA CAJA PREMIUM --- */
.cp-manifesto__box {
  background: #fff;
  border: 1px solid rgba(38, 122, 125, 0.10);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.06); /* Sombra elegante, sin exagerar */
  overflow: hidden;
  display: grid;
  gap: 0;
}

/* --- RESPONSIVE ESCRITORIO (Aquí hacemos el Z-Pattern perfecto) --- */
@media (min-width: 992px) {
  
  .cp-manifesto__grid {
    /* La caja a la izquierda (1.1fr) y el texto a la derecha (0.9fr) */
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); 
  }

  .cp-manifesto__box {
    order: 1; /* Forzamos la caja a la izquierda */
  }

  .cp-manifesto__intro {
    order: 2; /* Forzamos el texto a la derecha */
    padding-left: 20px; /* Le damos respiro respecto a la caja */
  }
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 991px) {
  .cp-manifesto__grid {
    grid-template-columns: 1fr; /* Una sola columna */
    gap: 48px;
  }
  
  .cp-manifesto__intro {
    order: 1; /* En celular, el título siempre debe ir primero */
  }
  
  .cp-manifesto__box {
    order: 2;
  }
  
  .cp-about-manifesto {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

/* El resto de estilos internos de los items (naranjo, teal, líneas, texto) se mantienen intactos, funcionaban perfecto */

.cp-manifesto__intro {
  max-width: 520px;
}

.cp-manifesto__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--cp-color-gold); /* Usamos el dorado de tu paleta */
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-manifesto__title {
  margin-bottom: 18px;
  color: var(--cp-color-ink);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cp-manifesto__text {
  max-width: 54ch;
  margin-bottom: 0;
  color: var(--cp-color-text);
  font-size: 1.05rem;
  line-height: 1.76;
}

/* --- LA CAJA PREMIUM (Basada en tu Metodología) --- */
.cp-manifesto__box {
  background: #fff;
  border: 1px solid rgba(38, 122, 125, 0.10);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
  overflow: hidden; /* Clave para los bordes interiores */
  display: grid;
  gap: 0;
}

.cp-manifesto__item {
  display: grid;
  grid-template-columns: 100px 1fr; /* Columna icono fija, columna texto fluida */
  gap: 0;
  align-items: stretch;
  background: #fff;
  border-bottom: 1px solid rgba(38, 122, 125, 0.08);
  transition: background-color var(--cp-transition-base);
}

.cp-manifesto__item:last-child {
  border-bottom: 0; /* Quitamos el borde inferior al último */
}

.cp-manifesto__item:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Área de los Iconos */
.cp-manifesto__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(38, 122, 125, 0.08);
}

/* Modificadores de color para Icono y Fondo */
.cp-manifesto__item--orange .cp-manifesto__item-icon {
  color: var(--cp-color-orange);
  background: rgba(204, 83, 49, 0.04);
  border-right-color: rgba(204, 83, 49, 0.08);
}

.cp-manifesto__item--teal .cp-manifesto__item-icon {
  color: var(--cp-color-teal);
  background: rgba(38, 122, 125, 0.04);
  border-right-color: rgba(38, 122, 125, 0.08);
}

/* Área de Texto */
.cp-manifesto__item-body {
  position: relative;
  padding: 40px 40px;
}

/* La barrita superior premium (El toque maestro de tu Home) */
.cp-manifesto__item-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  width: 88px;
  height: 4px;
  border-bottom-left-radius: 999px;
  border-bottom-right-radius: 999px;
}

.cp-manifesto__item--orange .cp-manifesto__item-body::before {
  background: var(--cp-color-orange);
}

.cp-manifesto__item--teal .cp-manifesto__item-body::before {
  background: var(--cp-color-teal);
}

.cp-manifesto__item-body h3 {
  margin-bottom: 12px;
  color: var(--cp-color-ink);
  font-size: 1.35rem;
  line-height: 1.3;
}

.cp-manifesto__item-body p {
  margin: 0;
  color: var(--cp-color-muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .cp-manifesto__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .cp-manifesto__intro {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .cp-about-manifesto {
    padding-top: 72px;
    padding-bottom: 76px;
  }
  .cp-manifesto__item {
    grid-template-columns: 76px 1fr; /* Reduce columna del icono */
  }
  .cp-manifesto__item-body {
    padding: 30px 24px;
  }
  .cp-manifesto__item-body::before {
    left: 24px;
    width: 60px;
  }
}


/* seccion 3 ----------------------------- */

/* --- IDENTIDAD INSTITUCIONAL --- */
.cp-identidad-institucional {
    overflow: hidden;
}

.cp-bg-crema { background-color: #FAF8F4; }
.cp-bg-white { background-color: #FFFFFF; }

.cp-identidad-block {
    padding: 100px 0;
}

.cp-identidad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cp-identidad-grid--reverse .cp-identidad__content { order: 2; }
.cp-identidad-grid--reverse .cp-identidad__media { order: 1; }

.cp-eyebrow {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cp-color-teal);
    display: block;
    margin-bottom: 15px;
}

.cp-identidad__content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--cp-color-ink);
    margin-bottom: 25px;
    line-height: 1.1;
}

.cp-identidad__content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--cp-color-text);
}

.cp-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.cp-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.cp-image-wrapper:hover img { transform: scale(1.05); }

/* --- VALORES GRID --- */
.cp-valores-section {
    padding: 120px 0;
}

.cp-valores__header {
    text-align: center;
    margin-bottom: 80px;
}

.cp-valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cp-valor-item {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #F0F0F0;
    transition: all 0.3s ease;
}

.cp-valor-item:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.03);
    border-color: var(--cp-color-teal-light);
}

.cp-valor-icon {
    margin-bottom: 20px;
}

.cp-valor-item h4 {
    font-size: 1.25rem;
    color: var(--cp-color-ink);
    margin-bottom: 15px;
}

.cp-valor-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cp-color-muted);
}

/* Responsive */
@media (max-width: 991px) {
    .cp-identidad-grid { grid-template-columns: 1fr; gap: 40px; }
    .cp-identidad-grid--reverse .cp-identidad__content,
    .cp-identidad-grid--reverse .cp-identidad__media { order: unset; }
    .cp-valores-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .cp-valores-grid { grid-template-columns: 1fr; }
    .cp-identidad-block { padding: 60px 0; }
}

/* seccion 4 ------------------*/

/* --- SECCIÓN EQUIPO FINAL --- */
.cp-team-final {
  background-color: #fafafa;
  padding: 100px 0;
}

.cp-team-final__header {
  text-align: center;
  margin-bottom: 60px;
}

/* Foto Grupal */
.cp-team-final__hero {
  width: 100%;
  height: 600px;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.cp-team-final__hero img {
  width: 100%;
  height: 110%;
  object-fit: cover;
}

/* Grilla 2x3 */
.cp-team-final__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.cp-staff-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.cp-staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.cp-staff-card__img {
  width: 130px;
  height: 150px;
  border-radius: 50%; /* Fotos circulares como la referencia */
  margin: 0 auto 20px;
  overflow: hidden;
  border: 4px solid #fbfbfa;
}

.cp-staff-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-staff-card__info h4 {
  font-size: 1.25rem;
  color: var(--cp-color-ink);
  margin-bottom: 8px;
  font-weight: 700;
}

.cp-staff-card__tag {
  font-size: 0.85rem;
  color: var(--cp-color-teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer / Próximos */
.cp-team-final__footer {
  margin-top: 80px;
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 24px;
}

.cp-team-final__footer h4 {
  color: var(--cp-color-ink);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.cp-team-final__tags {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--cp-color-muted);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
  .cp-team-final__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cp-team-final__grid { grid-template-columns: 1fr; }
  .cp-team-final__hero { height: 300px; }
}

/* seccion 5 ---------------*/

/* --- CTA EDITORIAL --- */
.cp-cta-editorial {
    padding: 140px 0;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.cp-cta-editorial__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center;
}

.cp-cta-editorial__title {
    font-size: clamp(2.8rem, 5vw, 4rem);
    line-height: 1.05;
    color: var(--cp-color-ink);
    margin: 20px 0 30px;
    letter-spacing: -0.04em;
}

.cp-cta-editorial__content p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--cp-color-text);
    max-width: 50ch;
    margin-bottom: 40px;
}

.cp-cta-editorial__actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Botón Estilo Firma */
.cp-btn-main {
    background: var(--cp-color-teal);
    color: #fff;
    padding: 20px 40px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(38, 122, 125, 0.2);
}

.cp-btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(38, 122, 125, 0.3);
}

.cp-link-wa {
    color: var(--cp-color-ink);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--cp-color-orange);
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.cp-link-wa:hover {
    color: var(--cp-color-orange);
}

/* Imagen con Frame Editorial */
.cp-cta-editorial__image-frame {
    position: relative;
    padding-bottom: 120%; /* Proporción vertical elegante */
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--cp-shadow-lg);
}

.cp-cta-editorial__image-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 991px) {
    .cp-cta-editorial__grid { grid-template-columns: 1fr; gap: 60px; }
    .cp-cta-editorial { padding: 80px 0; }
    .cp-cta-editorial__image-frame { padding-bottom: 60%; }
}





/* Animación base: Deslizar hacia arriba */
.cp-reveal-soft {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--cp-reveal-delay, 0ms);
}

/* Animación variante: Escala */
.cp-reveal-soft--scale {
    transform: scale(0.97) translateY(20px);
}

/* Estado activo (cuando entra en pantalla) */
.is-visible.cp-reveal-soft {
    opacity: 1;
    transform: translateY(0) scale(1) translateX(0);
}