.section.cc-home-wrap.titulo-anticipo {
  background: none;
  padding: 20px 10px;
  margin-bottom: 0;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-overview-header .intro-content {
  text-align: center;
  width: 100%;
  max-width: 930px;
  margin: 0 auto;
  background: linear-gradient(135deg, #5957b8 0%, #4745a0 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 20px 30px;
  box-shadow: 0 8px 25px rgba(89, 87, 184, 0.25);
}

.project-overview-header .heading-jumbo h1 {
  color: #ffffff;
  font-size: 35px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;

  letter-spacing: 0.5px;       /* 👈 Ajuste más natural */
}

.project-overview-header.cc-project-3-header {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}



/* ========================================
   afianzate
   ======================================== */

.input-group-check {
  margin-bottom: 22px;
}

.check-titulo {
  font-size: 13px;
  color: #5957b8;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #32343a;
  margin-bottom: 10px;
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #5957b8;
  cursor: pointer;
  flex-shrink: 0;
}





.descripcion-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.descripcion-texto {
  width: 100%;
}

.descripcion-boton-wrap {
  flex-shrink: 0;
}

@media screen and (max-width: 768px) {
  .descripcion-body {
    align-items: center;
  }
}



/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */

.section.descripcion-anticipo {
  display: flex;
  justify-content: center;
  padding: 10px 20px;
  position: relative;
}

.descripcion-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ========================================
   DESCRIPCIÓN
   ======================================== */

.descripcion-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.descripcion-contenido {
  max-width: 850px;
  width: 100%;
  text-align: left;
  background: white;
  padding: 60px 70px;
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(89, 87, 184, 0.12),
    0 10px 30px rgba(0, 0, 0, 0.08);
  border-top: 6px solid #5957b8;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.descripcion-titulo {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #5957b8;
  margin-bottom: 30px;
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.descripcion-titulo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #5957b8, transparent);
}

.descripcion-texto {
  font-size: 19px;
  line-height: 2;
  color: #32343a;
  margin: 0;
  position: relative;
  z-index: 1;
}

.descripcion-texto strong {
  color: #5957b8;
  font-weight: 700;
}

/* ========================================
   PALABRAS CLAVE - ESTILOS BASE
   ======================================== */

.palabras-clave-wrapper {
  width: 100%;
  padding: 40px 20px; /* ✅ AGREGADO: padding lateral */
  box-sizing: border-box; /* ✅ AGREGADO */
}

.palabras-clave-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(60px, 15vw, 200px); /* ✅ CAMBIADO: gap fluido en lugar de 280px fijo */
  width: 100%;
  max-width: 1200px; /* ✅ CAMBIADO: aumentado de 1000px */
  margin: 0 auto;
  padding: 0 20px; /* ✅ AGREGADO: padding interno */
  box-sizing: border-box; /* ✅ AGREGADO */
}

.palabra-item {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  position: relative;
  
  font-weight: 700;
  font-size: clamp(20px, 3.5vw, 35px); /* ✅ CAMBIADO: tamaño fluido en lugar de 35px fijo */
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  
  background: linear-gradient(
    to bottom,
    rgba(150, 150, 150, 0.35),
    rgba(150, 150, 150, 0.35)
  );
  
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  transition: all 0.3s ease;
}

.palabra-item:nth-child(1),
.palabra-item:nth-child(2),
.palabra-item:nth-child(3) {
  transform: none;
}

/* ========================================
   ANIMACIONES SUTILES
   ======================================== */

.palabra-item {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.palabra-item:nth-child(1) { animation-delay: 0.3s; }
.palabra-item:nth-child(2) { animation-delay: 0.4s; }
.palabra-item:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   BOTÓN AFIANZAR
   ======================================== */

.descripcion-boton-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}


.btn-afianzar {
  display: inline-block;
  padding: 14px 36px;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Relleno deslizante desde abajo */
.btn-afianzar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: #000000;
  z-index: -1;
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-afianzar:hover {
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
}

.btn-afianzar:hover::before {
  height: 100%;
}

.btn-afianzar:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}





.btn-afianzar2 {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;

  background: #5957b8; /* morado principal */
  color: #ffffff;      /* único blanco permitido */

  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(89, 87, 184, 0.35);

  transition: 
    background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover más oscuro */
.btn-afianzar2:hover {
  background: #4745a0; /* tono más profundo */
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(71, 69, 160, 0.45);
}

/* Active */
.btn-afianzar2:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(71, 69, 160, 0.25);
}



/* ========================================
   RESPONSIVE COMPLETO - CONSOLIDADO
   ======================================== */

/* Tablets grandes (≤ 1024px) */
@media screen and (max-width: 1024px) {
  .project-overview-header .heading-jumbo h1 {
    font-size: 28px;
  }
  
  .descripcion-contenido {
    padding: 50px 50px;
  }
  
  .descripcion-texto {
    font-size: 18px;
    line-height: 1.9;
  }
  
  .palabras-clave-grid {
    gap: clamp(50px, 10vw, 100px); /* ✅ Gap más compacto */
  }
  
  .palabra-item {
    font-size: clamp(18px, 2.8vw, 26px); /* ✅ Tamaño reducido */
  }
}

/* Tablets (≤ 991px) */
@media screen and (max-width: 991px) {
  .section.cc-home-wrap.titulo-anticipo {
    padding: 12px 35px;
    margin-top: 12px;
  }
  
  .project-overview-header .intro-content {
    max-width: 95%;
    padding: 14px 20px;
  }
  
  .project-overview-header .heading-jumbo h1 {
    font-size: 20px;
  }
  
  .section.descripcion-anticipo {
    padding: 20px 20px;
  }
  
  .descripcion-container {
    gap: 30px;
  }
  
  .descripcion-contenido {
    padding: 35px 28px;
    border-radius: 16px;
  }
  
  .descripcion-titulo {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .descripcion-titulo::after {
    width: 50px;
    height: 2px;
  }
  
  .descripcion-texto {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .palabras-clave-wrapper {
    padding: 80px 0;
  }
  
  .palabras-clave-grid {
    flex-direction: column;
    gap: 60px;
  }
  
  .palabra-item {
    font-size: 20px;
    letter-spacing: 1.2px;
  }
  
  .btn-afianzar {
    padding: 11px 28px;
    font-size: 12px;
    letter-spacing: 1.5px;
  }
}

/* Tablets pequeñas (≤ 768px) */
@media screen and (max-width: 768px) {
  .section.cc-home-wrap.titulo-anticipo {
    padding: 12px 35px;
    margin-top: 12px;
  }
  
  .project-overview-header .intro-content {
    max-width: 95%;
    padding: 14px 20px;
  }
  
  .project-overview-header .heading-jumbo h1 {
    font-size: 20px;
  }
  
  .section.descripcion-anticipo {
    padding: 20px 20px;
  }
  
  .descripcion-container {
    gap: 30px;
  }
  
  .descripcion-contenido {
    padding: 35px 28px;
    border-radius: 16px;
  }
  
  .descripcion-titulo {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .descripcion-titulo::after {
    width: 50px;
    height: 2px;
  }
  
  .descripcion-texto {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .palabras-clave-wrapper {
    padding: 80px 0;
  }
  
  .palabras-clave-grid {
    flex-direction: column;
    gap: 80px;
  }
  
  .palabra-item {
    font-size: 20px;
    letter-spacing: 1.2px;
  }
  
  .btn-afianzar {
    padding: 11px 28px;
    font-size: 12px;
    letter-spacing: 1.5px;
  }
}

/* Móviles (≤ 600px) */
@media screen and (max-width: 600px) {
  .section.cc-home-wrap.titulo-anticipo {
    padding: 12px 35px;
    margin-top: 12px;
  }
  
  .project-overview-header .intro-content {
    max-width: 95%;
    padding: 14px 20px;
  }
  
  .project-overview-header .heading-jumbo h1 {
    font-size: 20px;
  }
  
  .section.descripcion-anticipo {
    padding: 20px 20px;
  }
  
  .descripcion-container {
    gap: 30px;
  }
  
  .descripcion-contenido {
    padding: 35px 28px;
    border-radius: 16px;
  }
  
  .descripcion-titulo {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .descripcion-titulo::after {
    width: 50px;
    height: 2px;
  }
  
  .descripcion-texto {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .palabras-clave-wrapper {
    padding: 60px 0;
  }
  
  .palabras-clave-grid {
    flex-direction: column;
    gap: 80px;
  }
  
  .palabra-item {
    font-size: 20px;
    letter-spacing: 1.2px;
  }
  
  .btn-afianzar {
    padding: 11px 28px;
    font-size: 12px;
    letter-spacing: 1.5px;
  }
}

/* Móviles pequeños (≤ 480px) */
@media screen and (max-width: 480px) {
  .section.cc-home-wrap.titulo-anticipo {
    padding: 10px 35px;
    margin-top: 10px;
  }
  
  .project-overview-header .intro-content {
    padding: 12px 13px;
    border-radius: 12px;
  }
  
  .project-overview-header .heading-jumbo h1 {
    font-size: 18px;
  }
  
  .section.descripcion-anticipo {
    padding: 18px 25px;
  }
  
  .descripcion-container {
    gap: 25px;
  }
  
  .descripcion-contenido {
    padding: 30px 22px;
  }
  
  .descripcion-titulo {
    font-size: 12px;
    margin-bottom: 18px;
  }
  
  .descripcion-texto {
    font-size: 14px;
  }
  
  .palabras-clave-grid {
    gap: 80px;
  }
  
  .palabra-item {
    font-size: 18px;
    letter-spacing: 1px;
  }
  
  .btn-afianzar {
    padding: 10px 24px;
    font-size: 11px;
  }
}

/* Móviles muy pequeños (≤ 360px) */
@media screen and (max-width: 360px) {
  .project-overview-header .intro-content {
    padding: 10px 5px;
  }
  
  .project-overview-header .heading-jumbo h1 {
    font-size: 16px;
  }
  
  .descripcion-contenido {
    padding: 25px 18px;
  }
  
  .descripcion-titulo {
    font-size: 11px;
    margin-bottom: 15px;
  }
  
  .descripcion-texto {
    font-size: 13px;
  }
  
  .palabras-clave-grid {
    gap: 60px;
  }
  
  .palabra-item {
    font-size: 16px;
  }
  
  .btn-afianzar {
    padding: 9px 20px;
    font-size: 10px;
  }
}









/* ========================================
   MODAL OVERLAY
======================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.5);

  display: none;              /* IMPORTANTE */
  justify-content: center;    /* centrado horizontal */
  align-items: center;        /* centrado vertical */

  z-index: 9999;
}




@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   MODAL CARD
======================================== */

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  padding: 40px 35px;
  box-shadow:
    0 25px 60px rgba(89, 87, 184, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.12);
  border-top: 6px solid #5957b8;
  animation: slideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   HEADER
======================================== */

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.modal-header h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #5957b8;
  font-weight: 800;
  margin: 0;
}

#cerrarModal {
  font-size: 26px;
  cursor: pointer;
  color: #999;
  transition: all 0.3s ease;
}

#cerrarModal:hover {
  color: #5957b8;
  transform: rotate(90deg);
}

/* ========================================
   INPUTS
======================================== */

.input-group {
  position: relative;
  margin-bottom: 22px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid #ddd;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  background: #f9f9ff;
}

.input-group textarea {
  resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #5957b8;
  box-shadow: 0 0 0 4px rgba(89, 87, 184, 0.12);
  background: #fff;
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 13px;
  color: #888;
  pointer-events: none;
  transition: all 0.3s ease;
  background: transparent;
}

/* Floating label */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 12px;
  font-size: 11px;
  color: #5957b8;
  background: #fff;
  padding: 0 6px;
}

/* ========================================
   BOTÓN ENVIAR
======================================== */

.btn-enviar {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #5957b8 0%, #4745a0 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 12px 25px rgba(89, 87, 184, 0.35);
}

.btn-enviar:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 35px rgba(89, 87, 184, 0.45);
}

.btn-enviar:active {
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 600px) {
  .modal-card {
    padding: 30px 22px;
    border-radius: 18px;
  }

  .modal-header h2 {
    font-size: 15px;
  }
}





/* ========================================
   ALERTA DE ÉXITO
======================================== */

.alerta-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  animation: fadeInOverlay 0.3s ease forwards;
}

.alerta-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 50px 60px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(89, 87, 184, 0.3);
  border-top: 6px solid #5957b8;
  animation: scaleIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  max-width: 380px;
  width: 90%;
}

.alerta-icono {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #5957b8 0%, #4745a0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  font-size: 32px;
  color: white;
  box-shadow: 0 8px 20px rgba(89, 87, 184, 0.4);
}

.alerta-titulo {
  font-size: 20px;
  font-weight: 800;
  color: #1a1b1f;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.alerta-subtitulo {
  font-size: 14px;
  color: #888;
  margin-bottom: 32px;
  line-height: 1.6;
}

.alerta-btn {
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, #5957b8 0%, #4745a0 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(89, 87, 184, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.alerta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(89, 87, 184, 0.45);
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}