body{
font-family: Arial, sans-serif;
background:#f4f4f4;
text-align:center;
padding:40px;
position:relative;
overflow-x:hidden;
}

/* FONDO DECORATIVO */

body::before{
content:"";
position:absolute;
top:-120px;
left:-180px;
width:350px;
height:350px;
background:#6366f1;
opacity:0.2;
border-radius:50%;
z-index:-1;
}

body::after{
content:"";
position:absolute;
bottom:540px;
right:0px;
width:380px;
height:380px;
background:#22c55e;
opacity:0.2;
border-radius:50%;
z-index:-1;
}

/* CONTENEDOR */

.container{
background:white;
padding:35px;
border-radius:12px;
max-width:600px;
margin:auto;
box-shadow:0 15px 40px rgba(0,0,0,0.08);
text-align:center;
}

/* INPUTS */

/* INPUTS */
input, select, textarea{
  width:100%;
  max-width:100%;
  height:45px; /* 🔥 ESTO ES LO QUE TE FALTA */
  padding:12px;
  margin:10px 0;
  border:1px solid #ddd;
  border-radius:6px;
  font-size:14px;
  transition:border 0.2s;
  display:block;
  box-sizing:border-box;
}

input[type="radio"]{
width:auto;
}

textarea{
resize:none;
}

input:focus, textarea:focus{
outline:none;
border:1px solid #007bff;
}

/* BOTONES */

button{
padding:12px 20px;
margin:15px auto;
background:#007bff;
color:white;
border:none;
border-radius:6px;
cursor:pointer;
transition:all 0.2s;
font-weight:600;
display:block;
}

button:hover{
background:#0056b3;
transform:translateY(-1px);
}

/* LINKS EVENTO */

.link-box{
display:flex;
justify-content:center;
align-items:center;
gap:8px;
background:#f0f2f5;
padding:12px;
margin-top:10px;
border-radius:6px;
word-break:break-all;
font-size:14px;
font-weight:600;
color:#333;
}

/* copiar */

.copiar{
cursor:pointer;
font-size:18px;
padding:4px 7px;
border-radius:5px;
transition:background 0.2s;
}

.copiar:hover{
background:#e0e0e0;
}

/* mensaje copiado */

#mensajeCopiado{
margin-top:10px;
color:#28a745;
font-weight:600;
opacity:0;
transition:opacity 0.3s;
}

/* PREGUNTAS */

.pregunta-box{
margin-top:20px;
}

.pregunta-invitado{
margin-top:30px;
text-align:center;
}

.pregunta-invitado h3{
margin-bottom:12px;
color:#333;
}

/* OPCIONES RESPUESTA */

.opcion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #ddd;

  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.opcion:hover {
  border-color: #3b82f6;
  background: #f9fbff;
}

/* INPUT (checkbox o radio) */
.opcion input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* TEXTO */
.opcion p {
  margin: 0;
  flex: 1;
  text-align: left;
  font-size: 14px;
}

/* SELECCIONADO */
.opcion input:checked + p {
  font-weight: 600;
  color: #2563eb;
}

/* TITULOS */

h2{
margin-bottom:20px;
}

h3{
margin-top:20px;
color:#444;
}

/* PANEL ORGANIZADOR */

.pregunta-panel{
margin-top:30px;
text-align:center;
}

.columnas{
display:flex;
gap:20px;
margin-top:10px;
justify-content:center;
}

.columna{
flex:1;
background:#f8f9fa;
border-radius:8px;
padding:10px;
border:1px solid #e6e6e6;
}

.columna h4{
text-align:center;
margin-bottom:10px;
}

.persona{
background:white;
border-radius:6px;
padding:6px;
margin:5px 0;
text-align:center;
font-size:14px;
box-shadow:0 1px 2px rgba(0,0,0,0.05);
}

.vacio{
text-align:center;
color:#999;
padding:10px;
}

/* MENSAJES */

.mensaje{
margin-top:15px;
font-weight:600;
padding:10px;
border-radius:6px;
transition:all 0.3s;
}

.mensaje.ok{
background:#e9f7ef;
color:#2e7d32;
}

.mensaje.error{
background:#fdecea;
color:#c62828;
}

/* DUDAS */

.dudas-container{
margin-top:25px;
text-align:left;
}

.duda-item{
background:#fff8e1;
border:1px solid #ffe082;
padding:10px;
border-radius:6px;
margin:8px 0;
font-size:14px;
}

/* FOOTER */

.footer{
margin-top:60px;
background:#1f2229;
color:white;
padding:40px 20px;
}

.footer-container{
max-width:1000px;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:30px;
}

.footer-col h4{
margin-bottom:15px;
font-size:14px;
color:#c9c9c9;
}

.footer-col a{
display:block;
color:#fff;
text-decoration:none;
font-size:14px;
margin:6px 0;
opacity:0.85;
}

.footer-col a:hover{
opacity:1;
}

.footer-bottom{
text-align:center;
margin-top:30px;
font-size:13px;
color:#aaa;
}

/* OTROS */

.actualizando{
color:#ff3b3b;
font-weight:bold;
margin-bottom:15px;
}

.loading{
text-align:center;
padding:30px;
color:#666;
font-size:16px;
}

.cookie-banner{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background:  #0f172a;
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 9999;
  padding: 20px;
  animation: slideUp 0.4s ease;
  color: white;
}

@keyframes slideUp{
  from{
    opacity: 0;
    transform: translate(-50%, 40px);
  }
  to{
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.cookie-content{
  text-align: center;
  color: white;
}

.cookie-content p{
  font-size: 14px;
  color: white;
  line-height: 1.5;
}

.cookie-buttons{
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.cookie-aceptar{
  background: #22c55e;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.cookie-aceptar:hover{
  background: #22c55e;
}

.cookie-rechazar{
  background: #ffffff;
  color: black;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.cookie-rechazar:hover{
  background: #ffffff;
}
.error-msg {
  color: red;
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

.input-error {
  border: 2px solid red;
}

.logo{
  position: absolute;
  top: -10px;
  left: -30px;
  width: 220px;
  height: auto;
  z-index: 1000;
  display: block;
  cursor: pointer;
}

.pregunta-header{
  position: relative;
}

.borrar-pregunta{
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 16px;
  transition: 0.2s;
}

.borrar-pregunta:hover{
  color: #ff3b3b;
  transform: translateY(-50%) scale(1.2);
}

.icono-compartir{
  width: 18px;
  height: 18px;
  vertical-align: middle;
  cursor: pointer;
  transition: 0.2s;
}

.icono-compartir:hover{
  transform: scale(1.2);
}

.footer{
  position: relative;
  overflow: hidden;
}

.esperando{
  text-align:center;
  font-size:18px;
  color:#888;
  margin-top:20px;
}

.footer-redes {
  display: flex;
  justify-content: flex-end; /* derecha */
  align-items: center;
  margin-right: 75px;
  margin-top: -15px;
}

.red-social {
  display: inline-flex;
}

.red-social img,
.red-social svg {
  width: 80px;   /* 🔥 tamaño equilibrado */
  height: 60px;
  opacity: 0.8;
  transition: all 0.2s ease;
}


/* hover */
.red-social:hover img,
.red-social:hover svg {
  opacity: 1;
  transform: scale(1.15);
}

.red-social img:first-child{
  margin-right: -30px;
}

.cta-link{
  color:#007bff;
  text-decoration:none;
  font-weight:600;
  position:relative;
  padding-bottom:3px;
}

/* evitar morado */
.cta-link:visited{
  color:#007bff;
}

/* línea animada */
.cta-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0%;
  height:2px;
  background:#007bff;
  transition:width 0.25s ease;
}

/* hover */
.cta-link:hover::after{
  width:100%;
}

.error-general{
  color: #e74c3c;
  margin-top: 10px;
  font-size: 14px;
  display: none;
}

.fecha-box {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fecha-box select {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
  background: white;
  color: #333;
}

.error-general {
  display: none;
  background: #ffe5e5;
  color: #d8000c;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease;
}

.mensaje {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mensaje.ok {
  color: #1e7e34;
}

.mensaje.error {
  color: #d8000c;
}

.input-error {
  border: 2px solid #d8000c !important;
  background: #fff5f5;
}

/* animación suave */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-general{
  color: #e74c3c;
  margin-top: 10px;
  font-size: 14px;
  display: none;
}


.fecha-box {
  display: flex;
  gap: 5px;
  align-items: center;
}

.fecha-box input {
  width: 60px;
  text-align: center;
}

/* CONTENEDOR IDIOMA */
.idioma-switch{
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
}

/* BOTONES */
.idioma-switch button{
  padding: 6px 10px;
  border: none;
  background: #1877f2;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.idioma-switch button{
  padding: 10px 16px;   /* 🔥 más grande */
  font-size: 14px;      /* 🔥 texto más grande */
  border-radius: 10px;
}

.oculto{
  opacity: 0;
  transition: 0.3s;
}

.container{
  opacity: 1;
}

#titulo{
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-top: 20px;
}

.texto{
  text-align: center;
  color: #666;
  margin-bottom: 25px;
  font-size: 15px;
}

.opciones-fecha{
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.opciones-fecha label{
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}

.mensaje-copiado{
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  transition: 0.3s;
  z-index: 9999;
  pointer-events: none;
}

.lista-fechas{
  margin-top: 10px;
}

.fecha-item{
  display: flex;
  justify-content: space-between; /* 🔥 esto lo manda a la derecha */
  align-items: center;
  padding: 10px 14px;
  margin-top: 8px;
  background: #f5f5f5;
  border-radius: 8px;
}

.fecha-texto{
  font-size: 14px;
}

.borrar-fecha{
  color: red;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}

.borrar-fecha:hover{
  transform: scale(1.2);
}

.radio-group{
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
}

.radio-group label{
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}

.barra{
  height:6px;
  background:#eee;
  border-radius:5px;
  margin-top:5px;
}

.progreso{
  height:100%;
  background:#3b82f6;
  border-radius:5px;
}

.multi-check{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:10px 0 15px;
  font-size:14px;
  color:#555;
}

/* SWITCH */
.switch{
  position:relative;
  width:46px;
  height:24px;
}

.switch input{
  opacity:0;
  width:0;
  height:0;
}

.slider{
  position:absolute;
  cursor:pointer;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:#ccc;
  border-radius:30px;
  transition:0.3s;
}

.slider:before{
  position:absolute;
  content:"";
  height:18px;
  width:18px;
  left:3px;
  top:3px;
  background:white;
  border-radius:50%;
  transition:0.3s;
}

/* ACTIVADO */
.switch input:checked + .slider{
  background:#2563eb;
}

.switch input:checked + .slider:before{
  transform:translateX(22px);
}


/* Espaciado tipo app */
@media (max-width: 480px) {
  .campo input {
    padding: 14px;
    font-size: 16px;
  }
  
  .idioma-switch{
    position: fixed; /* 🔥 se queda arriba siempre */
    top: 10px;
    right: 10px;
    flex-direction: row; /* 🔥 horizontal */
    z-index: 999; /* 🔥 por encima de todo */
  }
  
  .idioma-switch button{
  padding: 8px 12px;   /* 🔥 más grande */
  font-size: 12px;      /* 🔥 texto más grande */
  border-radius: 8px;
  }
  
  

}

@media (max-width: 768px){

  body{
    padding:15px;
  }

  .container{
    max-width:100%;
    padding:18px;
    border-radius:10px;
  }

  input, select, textarea{
    width:100%;
  }

  .opcion{
    width:100%;
  }

  .columnas{
    flex-direction:column;
  }

  /* 🔥 LOGO bien colocado (no invadiendo) */
  .logo{
    width:85px;
    left:10px;
    top:10px;
  }

  /* 🔵 círculo azul */
  body::before{
    width:160px;
    height:160px;
    top:-60px;
    left:-60px;
  }

  /* 🟢 círculo verde */
  body::after{
    width:180px;
    height:180px;
    bottom:1000px;
    right:-8px;
  }

  button{
    width:100%;
  }

  /* 🔥 FOOTER en columna */
  .footer-container{
    grid-template-columns:1fr;
    text-align:center;
  }

  /* 🔥 REDES CENTRADAS Y JUNTAS */
  .footer-redes{
    justify-content:center;
    margin: -20px 0 0 -30px;
    gap: 18px;
  }

  .red-social + .red-social{
    margin-left:-20px; /* 👈 pegadas */
  }

  
  h1 {
    font-size: 10px;
    line-height: 2;
  }
  
  .texto {
    font-size: 12px;
    line-height: 1.4; 
  }
  
  .idioma-switch button{
  padding: 8px 12px;   /* 🔥 más grande */
  font-size: 12px;      /* 🔥 texto más grande */
  border-radius: 8px;

  }
  
  #titulo{
    font-size: 16px;
    line-height: 1.3;
    padding: 18px 15px;
    text-align: center;
  }

  .texto{
    font-size: 10px;
    padding: 0 20px;
  }
  
  @media (max-width:768px){

  .cookie-banner{
    width: 95%;
    bottom: 10px;
    padding: 15px;
  }

  .cookie-content p{
    font-size: 13px;
  }

}
  
}

