/* ==========================================================
   Consulta Ciudadana - Hero + Modal Registro
   Archivo: css/consulta-ciudadana.css
   ========================================================== */

.cc-hero{
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: 6rem; /* por tu header fijo */
}

.cc-hero__bg{
  position:absolute;
  inset:0;
  background-image: url("../img/consultapmduoet/hero-consulta.jpg"); /* CAMBIA RUTA */
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: blur(2px);
  z-index: 0;
}

.cc-hero__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.2);
  z-index: 1;
}

.cc-hero__content{
  position: relative;
  z-index: 2;
  width: min(5000px, 92vw);
  text-align: center;
  padding: clamp(28px, 6vw, 64px) 16px;
  color: #fff;
}

.cc-hero__title{
  margin: 0 0 10px 0;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(28px, 5vw, 70px);
  text-shadow: 0 8px 18px rgba(0,0,0,.35);
  -webkit-text-stroke: 1px rgba(0,0,0,.35);
}



.cc-hero__subtitle{
  margin: 0 0 14px 0;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: clamp(18px, 3.2vw, 34px);
  text-shadow: 0 8px 18px rgba(0,0,0,.35);
  -webkit-text-stroke: 1px rgba(0,0,0,.35);
}

.cc-hero__date{
  margin: 0 0 100px 0;
  font-size: clamp(14px, 1.9vw, 18px);
  opacity: .9;
  text-shadow: 0 6px 14px rgba(0,0,0,.35);
}

.cc-hero__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;

  padding: 18px 40px;
  font-size: clamp(18px, 1.4vw, 22px);
  border-radius: 8px;
  color: #fff;

  background: linear-gradient(180deg, #1e3a8a, #1d4ed8);
  box-shadow:
    0 10px 22px rgba(0,0,0,.35),
    0 0 0 2px rgba(255,255,255,.12) inset,
    0 0 18px rgba(57,211,83,.35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.cc-hero__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 14px 28px rgba(0,0,0,.42),
    0 0 0 2px rgba(255,255,255,.16) inset,
    0 0 22px rgba(57,211,83,.45);
}

.cc-hero__btn:active{ transform: translateY(0) scale(.99); }

.cc-hero__fade{
  position:absolute;
  left:0; right:0; bottom:0;
  height: 140px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(7,19,48,0), rgba(7,19,48,.75));
  pointer-events: none;
}

/* ==================== MODAL ==================== */
.cc-modal{
  position: fixed;
  inset: 0;
  display: none; /* se activa con .is-open */
  z-index: 9999;
}

.cc-modal.is-open{ display: block; }

.cc-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}

.cc-modal__dialog{
  position: relative;
  width: min(720px, 92vw);
  margin: 5vh auto;
  border-radius: 16px;
  background: rgba(255,255,255,.3);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  color: #fff;
  overflow: hidden;

  /* NUEVO */
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.cc-modal__dialog::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(57,211,83,.18), rgba(255,255,255,.06));
  pointer-events:none;
}

.cc-modal__header{
  position: relative;
  padding: 22px 22px 10px 22px;
}

.cc-modal__title{
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.cc-modal__desc{
  margin: 8px 0 0 0;
  opacity: .9;
  font-size: .95rem;
}

.cc-modal__close{
  position:absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  color: #fff;
  cursor: pointer;
}

.cc-form{
  position: relative;
  padding: 10px 22px 22px 22px;

  /* NUEVO */
  overflow-y: auto;
}

.cc-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cc-field{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.cc-field span{
  font-weight: 700;
  font-size: .92rem;
  opacity: .95;
}

.cc-field input,
.cc-field select{
  width: 100%;
  border-radius: 12px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: #fff;
  outline: none;
  transition: border-color .15s ease, transform .05s ease;
}

.cc-field input::placeholder{ color: rgba(255,255,255,.55); }

.cc-field input:focus,
.cc-field select:focus{
  border-color: rgba(57,211,83,.55);
}

.cc-field--full{ grid-column: 1 / -1; }

.cc-error{
  min-height: 16px;
  font-size: .82rem;
  color: #ffb4b4;
  opacity: .95;
}

.cc-form__status{
  margin-top: 10px;
  min-height: 20px;
  font-size: .92rem;
  opacity: .95;
}

.cc-form__actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cc-btn{
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .02em;
}

.cc-btn--ghost{
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}

.cc-btn--primary{
  background: linear-gradient(180deg, #1e3a8a, #1d4ed8);
  color: #fff;
  box-shadow: 
    0 10px 20px rgba(0,0,0,.35), 
    0 0 18px rgba(29,78,216,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.cc-btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 
    0 14px 26px rgba(0,0,0,.45), 
    0 0 22px rgba(29,78,216,.45);
}

.cc-btn[disabled],
.cc-hero__btn[disabled]{
  opacity: .65;
  cursor: not-allowed;
  filter: grayscale(.2);
}

/* ==========================================================
   Layout base de secciones (full width + container)
   ========================================================== */
.cc-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 64px);
}

.cc-grid2{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: center;
  padding: clamp(34px, 4vw, 56px) 0;
}

.cc-grid2--compact{
  padding: clamp(28px, 3.5vw, 44px) 0;
}

.cc-left{
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.cc-right{
  display: block;
}

.cc-title-big{
  margin: 0;
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 900;
  color: #3c3c3c;
  line-height: 1.05;
  white-space: nowrap;   /* ⬅️ clave */
}

.cc-label{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .02em;
  color: #3c3c3c;
  padding-top: 10px;
}

.cc-text{
  margin: 0;
  color: #2a2a2a;
  font-size: 1rem;
  line-height: 1.75;
	font-size: clamp(20px, 3.6vw, 25px);
  text-align: justify;
  text-justify: inter-word;

  /* 🚫 SIN silabeo */
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;

  word-break: normal;
  overflow-wrap: normal;
  
  
}

/* Sección 2 */
.cc-que-es{
  width: 100%;
  background: #ffffff;
}

/* Sección 3 (banda lila full width) */
/* Objetivo como párrafo completo */
.cc-objetivo{
  width: 100%;
  background: #ead9f3;
  padding: clamp(28px, 3.5vw, 50px) 0;
  
  margin-bottom: 40px;
}

.cc-objetivo__text{
  margin: 0;

  text-align: justify;
  text-justify: inter-word;

  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;

  word-break: normal;
  overflow-wrap: normal;
}

/* OBJETIVO: inline al inicio */
.cc-inline-label{
  font-weight: 900;
  letter-spacing: .02em;
  color: #3c3c3c;
  margin-right: 8px;
  white-space: nowrap;
}

/* Sección 4 CTA */
.cc-cta{
  width: 100%;
  background: #ffffff;
  padding: 18px 0 56px;
}

.cc-center{
  display: flex;
  justify-content: center;
}


.cc-omit-link,
.cc-privacy-link{
  background: transparent;
  border: none;
  padding: 6px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  text-decoration: underline;
}

.cc-omit-link:hover,
.cc-privacy-link:hover{
  color: #111827;
}
.cc-form__extras{
  margin-top: 10px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cc-link{
  background: transparent;
  border: 0;
  padding: 0;
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .02em;
}

.cc-link:hover{
  color: #fff;
}
/* Responsive */
@media (max-width: 820px){
  .cc-grid2{
    grid-template-columns: 1fr;
    align-items: start; /* opcional en móvil */
  }
  .cc-label{ padding-top: 0; }
}

/* Responsive */
@media (max-width: 760px){
  .cc-info__row{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cc-info__title{
    font-size: 2rem;
  }

  .cc-info__label{
    font-size: 1rem;
  }
}

@media (max-width: 640px){
  .cc-grid{ grid-template-columns: 1fr; }
  .cc-modal__dialog{ margin: 10vh auto; }
}


/* ==============================
   FIX: Aviso de privacidad detrás
   ============================== */

/* Modal del registro (ccModal) */
#ccModal,
.cc-modal{
  z-index: 10000; /* base */
}

/* Backdrop del registro */
#ccModal .cc-modal__backdrop{
  z-index: 10000;
}

/* Dialog del registro */
#ccModal .cc-modal__dialog{
  z-index: 10001;
}

/* Modal del aviso (footer) — debe ir encima */
#myModal{
  position: fixed;  /* importante */
  inset: 0;
  z-index: 20000 !important;
}

/* Si tu aviso usa .modal-content o similar */
#myModal .modal-content,
#myModal .cc-modal__dialog{
  position: relative;
  z-index: 20001 !important;
}

/* Fondo del aviso (si existe como #myModal .modal o .backdrop) */
#myModal .modal,
#myModal .modal-backdrop,
#myModal .cc-modal__backdrop{
  z-index: 20000 !important;
}

.modal-content2 p,
.modal-content2 li,
.modal-content2 h3,
.modal-content2 h2{
	font-size:0.98rem !important;
}

.modal-content2 strong{
	font-size:0.8rem !important;
}



