body {
    margin: 0;
    background: #000;
    font-family: Arial, sans-serif;
}

/* CABECERA */


/* CONTENEDOR CENTRAL DEL HEADER */
.header-wrapper {
    max-width: 1200px;   /* mismo ancho que el contenido */
    margin: 0 auto;      /* centra el header */
    position: relative;  /* permite que el header fixed se ajuste */
}

/* HEADER FIJO */
header {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%); /* centra el header */
    width: 100%;
    max-width: 1200px;           /* evita que se salga */
    height: 70px;
    background: rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 10;    
    border-bottom: 2px solid #ac5707;
}
/* Logo */
header img {
    height: 60px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 1px;
    transition: 0.3s;
}

nav a:hover {
    color: #7e7474;
}

/* BOTÓN HAMBURGUESA */
.hamburguesa {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburguesa div {
    width: 28px;
    height: 3px;
    background: #fff;
}

/* MENÚ MÓVIL */
.menu-movil {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    z-index: 9;
}

.menu-movil a {
    color: #fff;
    text-decoration: none;
    padding: 12px 0;
    font-size: 20px;
    display: block;
}

/* CAJA DEL VÍDEO */
.caja-video {
    margin-top: 60px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: #000;
    padding: 20px;
    box-sizing: border-box;
}

.caja-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #000;
}

/* TÍTULO */
.titulo {
    text-align: center;
    color: #fff;
    margin-top: 15px;
    font-size: clamp(28px, 6vw, 40px);
    letter-spacing: 3px;
    text-shadow: 0 0 10px #000;
}

.subtitulo {
    text-align: center;
    color: #ac5707;
    font-size: clamp(16px, 3vw, 38px);
    margin-bottom: 20px;
}


/* BOTONES */
.botones {
    text-align: center;
    margin-bottom: 40px;
}

.botones a:not(.boton-firma) {
    display: inline-block;
    margin: 10px;
    padding: 14px 28px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-decoration: none;
    font-size: clamp(16px, 3vw, 22px);
    border-radius: 6px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.botones a:not(.boton-firma):hover {
    background: rgba(255, 255, 255, 1);
 
}

/* BOTÓN FIRMA ESPECIAL */
.boton-firma {
    display: inline-block;
    margin: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #be6b0b, #e47b04);
    color: #fff;
    text-decoration: none;
    font-size: clamp(18px, 3vw, 24px);
    border-radius: 10px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease;
}
.intro p {
    display: inline-block;
    margin: 10px;
    padding: 16px 32px;
    text-align: justify;
    text-justify: inter-word;
    color: #fff;
    text-decoration: none;
    font-size: clamp(18px, 3vw, 24px);
    font-size: 22px
}
.boton-firma:hover {
    background: linear-gradient(135deg, #e03d0c, #c23903);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    transform: translateY(-3px);
}

/* FOOTER */
footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 40px;
    border-top: 2px solid #ac5707;
}

/* FORMULARIO DE FIRMAS */
#formFirmas {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Inputs y textarea */
#formFirmas input,
#formFirmas textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    border-radius: 6px;
    border: 2px solid #ac5707;
    background: #111;
    color: #fff;
    font-size: 18px;
    box-sizing: border-box;
}

/* Etiquetas */
.label-form {
    color: #fff;
    font-size: 20px;
    display: block;
    margin-top: 10px;
}

/* Desplegable Sí/No */
#formFirmas select {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    border-radius: 6px;
    border: 2px solid #ac5707;
    background: #111;
    color: #fff;
    font-size: 18px;
    box-sizing: border-box;
}

/* Avisos de validación */
.form-aviso {
    color: #e03d0c;
    font-size: 18px;
    margin-top: 10px;
    text-align: center;
}

.campo-error {
    border: 2px solid #e03d0c !important;
    background-color: #2a0b0b !important;
    transition: all 0.3s ease;
}


.form-aviso {
    background: #3b0a0a;
    border-left: 6px solid #e03d0c;
    padding: 12px 15px;
    margin-top: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    text-align: left;
    display: none; /* Oculto por defecto */
}
.bloque-legal .checkbox-rgpd {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;

    gap: 12px;
    padding: 15px;
    margin-top: 20px;

    background: #ffffff;
    border: 2px solid #d0d0d0;
    border-radius: 8px;

    cursor: pointer;
    text-align: left;
}

.bloque-legal .checkbox-rgpd input[type="checkbox"] {
    position: static !important;
    display: block !important;

    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;

    margin: 2px 0 0 0 !important;
    padding: 0 !important;

    flex: 0 0 20px;
    cursor: pointer;
    accent-color: #c96d00;
}

.bloque-legal .checkbox-rgpd span {
    position: static !important;
    display: block !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: 1;
    color: #222;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
}

.bloque-legal .checkbox-rgpd:hover {
    border-color: #c96d00;
    background: #fffaf4;
}

.bloque-legal .checkbox-rgpd:has(input:checked) {
    border-color: #2e9c6b;
    background: #f2fbf7;
}
/* BLOQUE LEGAL RGPD */
.formulario-firmas .bloque-legal {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;

    margin-top: 25px !important;
    padding: 22px !important;

    background: #f7f7f7 !important;
    color: #111 !important;

    border: 1px solid #d0d0d0;
    border-radius: 10px;
}

/* Texto legal */
.formulario-firmas .bloque-legal > p {
    display: block !important;
    position: static !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 0 20px 0 !important;
    padding: 0 !important;

    color: #111 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: left !important;

    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
}

/* Negrita y cursiva del texto legal */
.formulario-firmas .bloque-legal > p strong,
.formulario-firmas .bloque-legal > p em {
    color: #111 !important;
}

/* Casilla RGPD */
.formulario-firmas .bloque-legal .checkbox-rgpd {
    display: flex !important;
    position: static !important;

    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 12px;

    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 15px !important;

    background: #fff !important;
    color: #111 !important;

    border: 2px solid #d0d0d0;
    border-radius: 8px;

    cursor: pointer;
}

/* Checkbox */
.formulario-firmas .bloque-legal .checkbox-rgpd input[type="checkbox"] {
    display: block !important;
    position: static !important;

    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;

    margin: 2px 0 0 0 !important;
    padding: 0 !important;

    flex: 0 0 20px;
    accent-color: #d37700;
}

/* Texto junto al checkbox */
.formulario-firmas .bloque-legal .checkbox-rgpd span {
    display: block !important;
    position: static !important;

    width: auto !important;
    max-width: none !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: 1;

    color: #111 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;

    opacity: 1 !important;
    visibility: visible !important;
}

/* Estado marcado */
.formulario-firmas .bloque-legal .checkbox-rgpd:has(input:checked) {
    border-color: #29966a;
    background: #f1faf6 !important;
}

.contadores-firmas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 25px auto 35px;
}

.contador-firma {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 130px;
    padding: 20px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;

    text-align: center;
}

.contador-numero {
    display: block;
    margin-bottom: 8px;

    font-size: 42px;
    font-weight: 700;
    line-height: 1;

    color: #f18a00;
}

.contador-texto {
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
}
/* RESUMEN DE ADHESIONES EN PORTADA */
.resumen-adhesiones {
    width: min(760px, calc(100% - 30px));
    margin: 25px auto 28px;
    padding: 22px;

    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;

    color: #fff;
    text-align: center;
}

.resumen-literal {
    margin: 0 0 18px;
    color: #fff;
    font-size: 18px;
    line-height: 1.4;
}

.resumen-contadores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.resumen-contador {
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9px;
}

.resumen-contador strong {
    display: block;
    margin-bottom: 7px;

    color: #e58a19;
    font-size: 38px;
    line-height: 1;
}

.resumen-contador span {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .resumen-adhesiones {
        padding: 17px;
    }

    .resumen-contadores {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .resumen-contador strong {
        font-size: 34px;
    }

    .resumen-literal {
        font-size: 16px;
    }
}
@media (max-width: 600px) {
    .contadores-firmas {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contador-firma {
        min-height: 105px;
    }

    .contador-numero {
        font-size: 36px;
    }
}
/* RESPONSIVE */
@media (max-width: 900px) {
    nav {
        display: none;
    }

    .hamburguesa {
        display: flex;
    }

    .caja-video {
        max-width: 100%;
        padding: 10px;
    }

    header img {
        height: 40px;
    }
    .intro p {
        font-size: 17px;
        line-height: 1.7;
    }
}

@media (max-width: 600px) {
    .intro p {
        font-size: 16px;
        line-height: 1.6;
    }
}

