body {
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  padding-top: 120px;
  margin: 0;
  background: linear-gradient(to bottom, #656565, #808080, #ffffff);
}

/* Cabecera fija */
header {
position: fixed;
top: 0;
left: 0;
right: 0; /* Asegura que el header se extienda hasta el borde derecho */
width: 100%;
background-color: rgba(240, 240, 240, 0.95);
padding: 10px 20px;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
border-bottom: 1px solid #ccc;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
z-index: 1000;
}

header img {
height: 50px;
margin-right: 20px;
}
header h1 {
font-size: 1.4em;
color: #333;
}


nav ul {
list-style: none;
display: flex;
margin: 0;
padding: 0;
}
nav li {
margin-right: 20px;
}
nav li:last-child {
margin-right: 0;
}
nav a {
text-decoration: none;
color: #000;
}
/* Estilo para el item activo */
nav a.active {
color: rgb(0, 149, 255);
font-weight: bold;
}

@media (max-width: 768px) {
/* Ajustes para textos y elementos gráficos */


/* Ajustes para el header en móviles */
header {
  flex-direction: column;
  align-items: flex-start;
}

header img {
  margin-bottom: 10px;
}

header h1 {
  font-size: 1.2em;
}


.contenedor {
margin-top: 120px; /* Ajustado a la nueva altura del header */
}
}

.imagen-entrada {
  height: auto;
  min-height: 600px; 
  padding-bottom: 20px; /* Opcional: para dar un poco de espacio extra */
}
.entrada {
    position: relative;
    transform: none;
    left: auto;
    width: 90%;
    padding: 10px;
    height: auto; /* Permite que se expanda según su contenido */
}



.imagen-contenedor {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%; /* 16:9 = 9/16 = 0.5625 -> 56.25% */
overflow: hidden;
}

.imagen-contenedor video {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: auto;
transform: translate(-50%, -50%);
object-fit: cover;
}

.manifestacion {
width: 100%;
/* opcional: restringe el ancho si tu <main> tiene max-width */
max-width: 800px;  
margin: 20px auto;  /* centra dentro del main */
overflow: hidden;    /* cortar cualquier desborde */
}

.manifestacion img {
display: block;
width: 100%;        /* ocupa todo el ancho del contenedor */
height: auto;       /* altura proporcional */
object-fit: cover;  /* recorta (si quieres fijar luego altura) */
}



main {
max-width: 90%;
margin: 100px auto 20px; /* top, horizontal, bottom */
padding: 50px;
background-color: rgb(250, 250, 250);
box-shadow: 0 5px 12px rgba(0,0,0,0.2);
border-radius: 8px;
}

/* Logo adicional */
.intro-logo {
display: block;
max-width: 120px; /* Tamaño máximo deseado */
width: 100%;      /* Se ajusta al ancho del contenedor hasta 150px */
height: auto;     /* Conserva la proporción */
margin: 0 auto;   /* Centra la imagen horizontalmente */
padding-top: 40px;
}





section {
margin-bottom: 40px;
animation: fadeIn 1s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

p {
margin-bottom: 15px;
text-align: justify;
}
ul {
margin-left: 5px;
margin-bottom: 15px;
}

blockquote {
margin: 15px 0 15px 0;
padding: 10px;
border-left: 15px solid #0394fc;
background-color: #f4f4f4;
font-style: italic;
}

.blockVota {
width: 80%;
margin-top: 10px;
padding: 20px;
border-left: 25px solid #0394fc;
background-color: #f4f4f4;
font-style: italic;
color: #555;
}

.blockDifunde {
width: 80%;
margin-top: 10px;
padding: 20px;
border-left: 25px solid #fc0303;
background-color: #f4f4f4;
font-style: italic;
color: #555;
}

.blockSemilla {
width: 80%;
margin-top: 10px;
padding: 20px;
border-left: 25px solid hwb(278 1% 1%);
background-color: #f4f4f4;
font-style: italic;
color: #555;
}

.blockRedes {
width: 80%;
margin-top: 10px;
padding: 20px;
border-left: 25px solid hsl(131, 100%, 35%);
background-color: #f4f4f4;
font-style: italic;
color: #555;
}

.final-message {
text-align: center;
font-weight: bold;
color: #ff0202;
font-size: 1.2em;
margin-top: 30px;
}

.highlight {
font-weight: bold;
}


/* Media query para dispositivos pequeños */
@media (max-width: 600px) {

.imagen-entrada {
  height: auto;
  min-height: 600px; 
  padding-bottom: 20px; /* Opcional: para dar un poco de espacio extra */
}
.entrada {
  position: relative;
  transform: none;
  left: auto;
  width: 90%;
  padding: 10px;
  height: auto; /* Permite que se expanda según su contenido */
}

.titulo-entrada {
padding: 10px;                         
font-size: clamp(1rem, 4vw, 1.5rem);    
line-height: 1.4;                       
}

.subtitulo1-fullscreen {
font-size: clamp(1rem, 4vw, 1.5rem);
padding: 10px;
}
} 


/* Estilos para el sistema de votación */
.container {
width: 100%;
max-width: 800px;
margin: 50px auto;
padding: 30px;
text-align: center;
border: 1px solid #ddd;
border-radius: 8px;
background: #fff;
box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}
.vote-button {
padding: 10px 20px;
font-size: 18px;
cursor: pointer;
margin: 5px;
border: none;
border-radius: 4px;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.vote-button:disabled {
background-color: #ccc;
cursor: not-allowed;
}
.vote-button:hover:not(:disabled) {
transform: scale(1.05);
}
.vote-button:first-of-type {
background-color: #4caf50;
color: #fff;
}
.vote-button:last-of-type {
background-color: #f44336;
color: #fff;
}
/* Estilos para el contenedor de mensajes (mensajeSubida) */
#mensajeSubida {
text-align: center;
margin: 10px 0;
font-size: 16px;
color: #333;
}

/* Estilos para el contenedor del código QR */
#codigoQR {
text-align: center;
margin-top: 20px;
}

#codigoQR img {
max-width: 200px;
width: 100%;
height: auto;
}

/* Opcional: Contenedor para la depuración en pantalla */
#debugConsole {
background: #eee;
padding: 10px;
margin: 10px;
font-size: 14px;
height: 200px;
width: 100%;
overflow: auto;
}

/* Contenedor general de compartir */
.share-panel  .seed-panel{
flex: 1 1 48%; 
text-align: center;
min-width: 280px;
padding: 20px;
align-items: center; 
border: 1px solid #fb0404;
border-radius: 8px;
background: #fff;
box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.compartir {
display: flex;
flex-wrap: wrap; /* por si en pantallas pequeñas quieres que se apilen */
justify-content: center;      /* ✅ centra horizontalmente */
align-items: center;      /* o center si quieres alinear verticalmente */
gap: 10%; /* espacio entre los paneles */
width: 100%;
max-width: 800px;
margin: 50px auto;
padding: 30px;
text-align: center;
border: 1px solid #ddd;
border-radius: 8px;
background: #fff;
box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}



/* Opcional: en pantallas pequeñas que se apilen */
@media (max-width: 768px) {
.seed-panel, .share-panel {
  flex: 1 1 100%;
}
}

.share-panel h2 {
margin-bottom: 15px;
}
.share-panel ul {
list-style: none;
padding: 0;
margin: 0;
}
.share-panel li {
margin-bottom: 15px;
position: relative;
}
/* Botones de compartir */
.share-btn {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 15px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
width: 170px; /* Ancho fijo para todos */
}

.data-option {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 15px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
width: 170px; /* Ancho fijo para todos */
}

.seed-btn {
background-color: #27ae60;
color: white;
border: none;
padding: 10px 15px;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
width: 170px; 
}

.seed-btn:hover {
background-color: #219150;
}


/* Panel común para el texto con transición */

/* Panel oculto por defecto */
#common-text-panel {
width: 100%;
margin: 10px auto 35px;
background: #f9f9f9;
border: 1px solid #ddd;
padding: 15px;
border-radius: 5px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);

max-height: 0;
opacity: 0;
overflow-y: auto;
transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

/* Cuando esté “abierto” */
#common-text-panel.open {
max-height: 80vh;    /* hasta el 80% de la altura de la ventana */
opacity: 1;
}

/* Asegúrate de que el textarea tenga overflow:auto pero que el panel expanda su altura */
#common-text-panel textarea {
width: 100%;
min-height: 100px;
padding: 20px;
font-size: 14px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
box-sizing: border-box;
}

/* Cuando el panel tenga la clase open (fallback) */
#common-text-panel.open {
max-height: 80vh !important;
opacity: 1 !important;
}

/* Aseguramos que su contenido no se oculte */
#common-text-panel.open textarea,
#common-text-panel.open .send-btn {
display: block !important;
}

.send-btn-container {
display: flex;
gap: 10px;
flex-wrap: wrap; /* Para que se acomoden en pantallas pequeñas */
}
/* Botón de reenviar */
.send-btn {
background-color: #28a745;
color: #fff;
border: none;
padding: 10px 15px;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
font-size: 16px;
transition: background-color 0.3s ease;
}
/* Animación parpadeo */
.blink {
animation: blink-animation 1s step-start infinite !important;
}

@keyframes blink-animation {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}


#enrichedText {
text-align: left;
border: 1px solid #ccc;
padding: 10px;
border-radius: 4px;
margin-bottom: 10px;
background: #fff;
}

/* Contenedor general de las semillas */
.grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
margin-top: 30px;
}

/* Tarjeta de cada semilla */
.semilla {
background-color: white;
border-radius: 12px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
width: 240px;
overflow: hidden;
transition: transform 0.2s;
}

.semilla:hover {
transform: scale(1.03);
}

/* Contenedor de imagen o logo */
/* Contenedor del thumbnail o logo */
.img-wrapper {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
overflow: hidden;
border-radius: 12px;
background-color: #fff;
display: flex;
align-items: center;
justify-content: center;
}

/* Imagen general (tanto video como logo) */
.img-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
}

/* Logo WAAS: no se recorta, se adapta con padding */
.img-wrapper.logo-wrapper img {
object-fit: contain;
padding: 10px;
}


/* Icono de play */
.play-icon-modern {
position: absolute;
top: 50%;
left: 50%;
width: 30px;
height: 30px;
transform: translate(-50%, -50%);
background: rgba(255, 255, 255, 0.7);
border: 1px solid rgba(104, 104, 104, 0.5);
clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
transition: transform 0.2s ease;
z-index: 10;
}

.img-wrapper:hover .play-icon-modern {
transform: translate(-50%, -50%) scale(1.2);
}

/* Textos */
.semilla h3,
.semilla p {
margin: 10px 20px 0 20px;
text-align: left;
}

h3 {
color: rgb(0, 106, 255);
}
h2 {
color: rgb(0, 106, 255);
}
h1 {
color: rgb(0, 106, 255);
}

.centrado {
text-align: center;
}

.propuesta { background-color: #e7e7e7; font-size: 1.3em; font-weight: bold; color: hsl(0, 100%, 50%); font-style: italic; text-align: center; padding: 30px; border-left: 5px solid #007BFF; margin: 20px 0; }

.call-to-action { font-weight: bold; }

/* Footer */
footer {
background-color: #555555;
color: #ffffff;
text-align: center;
padding: 15px 20px;
font-size: 0.9em;
border-top: 1px solid #ccc;
margin-top: 40px;
}

#comments-section {
border: 1px solid rgb(195, 194, 194);
padding: 20px;
background: #fff;
margin: 20px;
border-radius: 8px;
box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

#comment-form textarea {
width: 100%;
height: 100px;
}
.comment {
border-bottom: 1px solid #ddd;
padding: 10px 0;
}
.comment:last-child {
border-bottom: none;
}
.comment-button {
padding: 10px 20px;
font-size: 18px;
cursor: pointer;
margin-top: 10px;
margin-bottom: 20px;
border: none;
border-radius: 4px;
background-color: #2196F3;
color: #fff;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.comment-button:hover {
transform: scale(1.05);
}

#uploadVideoBtn  {
padding: 10px 20px;
font-size: 18px;
cursor: pointer;
margin-top: 10px;
margin-bottom: 20px;
border: none;
border-radius: 4px;
background-color: #03cb2f;
color: #fff;
transition: background-color 0.3s ease, transform 0.2s ease;
}
#uploadVideoBtn:hover {
transform: scale(1.05);
}



/* Centrar el texto y aplicar un efecto de parpadeo */
#user-info-vote {
text-align: center;
font-weight: bold;
animation: blinkingText 1.5s infinite;
}

@keyframes blinkingText {
0% { opacity: 1; }
50% { opacity: 0; }
100% { opacity: 1; }
}


.collapsible {
border: 1px solid #39c0ff;
border-radius: 8px;
margin-bottom: 10px;
box-shadow: 0 5px 12px rgba(0,0,0,0.2);
overflow: hidden;
}

.collapsible-index {

border: 1px solid #39c0ff;
border-radius: 8px;
margin-bottom: 10px;
box-shadow: 0 5px 12px rgba(0,0,0,0.2);
overflow: hidden;
}


.collapsible-index-header {
background-color: rgba(229, 235, 245, 1);
display: flex;
width: 100%;
align-items: center;
cursor: pointer;
padding: 8px 12px;
font-weight: bold;
}

.collapsible-index-content {
max-height: 0px;
overflow: hidden;
transition: max-height 0.5s ease-out, padding 0.5s ease;
padding: 0px 40px; 
}

.collapsible-index-content.open {
max-height: 9999px;
padding: 0px 20px;
padding-bottom: 40px; 
}

.arrow {
font-size: 1.2em;

}