* { box-sizing: border-box; font-family: system-ui, Arial; }
body{
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(
            to right,
            #0B2E6B 0,
            #1D4FA3 70px,
            #ffffff 70px,
            #ffffff calc(100% - 70px),
            #1D4FA3 calc(100% - 70px),
            #0B2E6B 100%
        );
}

.header { 
text-align: center; 
font-size: 20px;
line-height: 1.5;
}

.contenedor-logo{
    text-align: center;
    margin-bottom: 20px;
}

.contenedor-logo img{
    width: 700px;
    max-width: 100%;
    height: auto;
}

.card {
  background: rgb(248, 209, 141); border-radius: 12px; padding: 16px;
  margin: 12px 0; box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
h1 { margin: 0 0 6px; }
h2 { margin: 0 0 12px; font-size: 18px; }
label { display: block; margin: 10px 0; }
input, select, textarea {
  width: 100%; padding: 10px; margin-top: 6px;
  border: 1px solid #ffffff; border-radius: 10px;
}
.actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
button {
  border: none; border-radius: 10px; padding: 10px 14px;
  background: #0b3d91; color: rgb(255, 255, 255); cursor: pointer;
}
button#btnOffline { background: #444; }
.status { margin-top: 10px; min-height: 20px; }
.footer { margin-top: 18px; opacity: .7; }

/* Formulario por secciones */
.paso {
  display: none;
}

.paso.activo {
  display: block;
}

.navegacion-formulario {
  justify-content: space-between;
}

.progreso {
  text-align: center;
  font-weight: bold;
  color: #0b3d91;
}

#btnEnviar {
  background: #0b6b2f;
}


/* ESTRUCTURA PRINCIPAL */
.pagina {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
  padding: 25px 20px;
  width: 100%;
  margin: 0;
}

/* Formulario */
.container {
    width: 720px;
    flex: 0 0 720px;
}

/* Imagen lateral */
.slider{
    width: 550px;
    flex: 0 0 550px;
    height: 850px;


    position:sticky;
    top:20px;

    overflow:hidden;

    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.18);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  animation: zoomSuave 7s linear infinite alternate;
}

@keyframes zoomSuave {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* Formulario más compacto */
.header {
  text-align: center;
  font-size: 17px;
  line-height: 1.4;
}

.header h1 {
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.card label {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 15px;
  margin: 12px 0;
  font-size: 16px;
}

.card input,
.card select,
.card textarea {
  width: 100%;
  max-width: none;
  height: 42px;
  padding: 8px 12px;
  margin-top: 0;
  border-radius: 12px;
  font-size: 15px;
}

.card textarea {
  height: auto;
  min-height: 100px;
}



/* Pie de página */
.footer-info {
  margin-top: 30px;
  background: #f5f8fc;
  padding: 35px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 35px;
  border-top: 4px solid #0b3d91;
}

.footer-info h3 {
  color: #0b3d91;
  margin-bottom: 15px;
}

.footer-info a {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 8px;
  color: #0b3d91;
  font-weight: bold;
}

.footer-info iframe {
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 1100px) {
  .pagina {
    grid-template-columns: 1fr;
  }

  .slider {
    display: none;
  }

  .footer-info {
    grid-template-columns: 1fr;
    padding: 25px;
  }
}

/* COLORES REDES SOCIALES */
.redes {
    text-align: center;
}

.redes a {
    text-decoration: none;
    margin: 0 10px;
}

.redes i {
    font-size: 40px;
    transition: 0.3s;
}

.redes i:hover {
    transform: scale(1.2);
}

/* COLORES OFICIALES */
.fa-facebook {
    color: #1877F2;
}

.fa-instagram {
    color: #E4405F;
}

.fa-x-twitter {
    color: #000000;
}

.fa-youtube {
    color: #FF0000;
}
.fa-globe {
    color: #0b3d91;
}

.pregunta-ancha {
    display: block;
    width: 100%;
}

.pregunta-ancha label {
    display: block;
    width: 100%;
    max-width: 700px;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 16px;
}

.pregunta-ancha select {
    width: 350px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast {
  position: fixed;
  top: 25px;
  right: 25px;
  background: #0b6b2f;
  color: white;
  padding: 16px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
  font-size: 16px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all .4s ease;
  z-index: 9999;
}

.toast.mostrar {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #b3261e;
}

/* Tarjeta de instrucciones */

.instrucciones{

    background:#eef6ff;
    border-left:8px solid #0b3d91;
    padding:25px;
    border-radius:15px;

}

.instrucciones h2{

    color:#0b3d91;
    margin-top:0;

}

.instrucciones p{

    font-size:16px;
    line-height:1.7;

}

.instrucciones ul{

    margin-top:15px;
    padding-left:25px;

}

.instrucciones li{

    margin-bottom:12px;
    line-height:1.6;

}

.importante{

    margin-top:20px;
    padding:15px;

    background:#fff3cd;

    border-left:6px solid #ffc107;

    border-radius:10px;

    font-size:15px;

}

.pregunta-likert{

    margin-bottom:25px;

}

.texto-pregunta{

    font-size:15px;

    line-height:1.6;

    margin-bottom:10px;

}

.pregunta-likert select{

    width:100%;

    max-width:450px;

}

.pregunta-likert textarea{

    width:100%;
    min-height:180px;
    resize:vertical;

    padding:15px;

    font-size:16px;

    border-radius:12px;

    border:1px solid #d7d7d7;

    background:white;

}

.campo-error {
  border: 2px solid #d93025 !important;
  background: #fff5f5;
}
/*
.bloque-info p{
    text-align: justify;
    line-height: 1.8;
    font-size: 17px;
}
*/



/* Información general */
.instrucciones {
  background: #eef6ff;
  border-left: 8px solid #0b3d91;
  padding: 25px;
  border-radius: 15px;
}

.instrucciones h2 {
  color: #0b3d91;
  margin-top: 0;
}

.bloque-info {
  margin-bottom: 22px;
}

.bloque-info h3 {
  color: #0b3d91;
  margin-bottom: 8px;
}

.bloque-info p,
.bloque-info li {
  text-align: justify;
  line-height: 1.8;
  font-size: 16px;
}

.importante {
  margin-top: 20px;
  padding: 15px;
  background: #fff3cd;
  border-left: 6px solid #ffc107;
  border-radius: 10px;
  font-size: 15px;
}

/* Escala Likert */
.escala-likert {
  background: #f0f7ff;
  border-left: 6px solid #0b3d91;
  padding: 18px 22px;
  border-radius: 14px;
  margin-bottom: 25px;
}

.escala-likert h3 {
  color: #0b3d91;
  margin-top: 0;
}

.escala-likert p,
.escala-likert li {
  font-size: 15px;
  line-height: 1.6;
}

.nota-likert {
  font-style: italic;
  color: #444;
}

/* Pantalla de agradecimiento */
.pantalla-gracias {
  display: none;
  margin-top: 30px;
}

.gracias-card {
  background: #eefaf1;
  border-left: 8px solid #0b6b2f;
  padding: 35px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.icono-gracias {
  width: 70px;
  height: 70px;
  background: #0b6b2f;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 38px;
  margin: 0 auto 20px;
}

.gracias-card h2 {
  color: #0b6b2f;
  font-size: 28px;
}

.gracias-card p {
  font-size: 17px;
  line-height: 1.6;
}

/* RESPONSIVO */
@media (max-width:1100px){

    .pagina{
        flex-direction:column;
        align-items:center;
    }

    .slider{
        display:none;
    }

    .container{
        width:100%;
        max-width:900px;
    }

}

/*BOTON DE INICIAR ENCUESTA*/
.acciones-inicio {
  text-align: center;
  margin-top: 25px;
}

#btnIniciarEncuesta {
  background: #0b3d91;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
}




/* RESPONSIVE PARA CELULARES */
@media (max-width: 768px) {

  body {
    background: #ffffff;
    overflow-x: hidden;
  }

  .pagina {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 0;
  }

  .slider {
    display: none;
  }

  .container {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 10px;
  }

  .contenedor-logo img {
    width: 100%;
    max-width: 330px;
    height: auto;
  }

  .header h1 {
    font-size: 32px;
    line-height: 1.15;
    text-align: center;
  }

  .header p {
    font-size: 17px;
    line-height: 1.5;
    text-align: center;
  }

  .card {
    width: 100%;
    padding: 18px;
    margin: 16px 0;
    border-radius: 16px;
  }

  .instrucciones {
    padding: 18px;
  }

  .bloque-info p {
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
  }

  .bloque-info li {
    font-size: 16px;
    line-height: 1.6;
  }

  .card label {
    display: block;
    margin-bottom: 16px;
    font-size: 17px;
  }

  input,
  select,
  textarea {
    width: 100% !important;
    max-width: 100%;
    font-size: 16px;
    padding: 12px;
    margin-top: 8px;
  }

  .pregunta-likert select {
    width: 100%;
    max-width: 100%;
  }

  .texto-pregunta {
    font-size: 17px;
    line-height: 1.5;
  }

  .actions,
  .navegacion-formulario {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  button {
    width: 100%;
    font-size: 17px;
    padding: 14px;
  }

  .progreso {
    font-size: 18px;
    margin-top: 18px;
  }

  .footer {
    text-align: center;
    font-size: 14px;
    padding: 10px;
  }

  .footer-info {
    grid-template-columns: 1fr;
    padding: 25px;
  }
}


@media (max-width: 420px) {

  .header h1 {
    font-size: 28px;
  }

  .header p {
    font-size: 16px;
  }

  .card {
    padding: 15px;
  }

  .instrucciones h2,
  .card h2 {
    font-size: 22px;
  }

  .bloque-info p {
    text-align: left;
    word-spacing: normal;
  }
}
