/* ... (MANTÉN TODO LO ANTERIOR) ...
   ... debajo de la solución nuclear ...
*/

/* -------------------------------------------------------
   ESTILOS DE CONTENIDO (POSTS)
   -------------------------------------------------------
*/

/* Tablas dentro del contenido */
.entry-content table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    font-size: 0.95em;
    border-radius: 8px;
    overflow: hidden; /* Para redondear bordes */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.entry-content thead tr {
    background-color: var(--geek-dark);
    color: #ffffff;
    text-align: left;
}

.entry-content th,
.entry-content td {
    padding: 12px 15px;
    border-bottom: 1px solid #eeeeee;
}

.entry-content tbody tr:nth-of-type(even) {
    background-color: #f9fafb;
}

.entry-content tbody tr:last-of-type {
    border-bottom: 2px solid var(--geek-green);
}

.entry-content th {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.05em;
}

/* Listas dentro del contenido (Restaurar bullets) 
   Como hicimos la 'Solución Nuclear' en el nav, necesitamos 
   restaurar los bullets dentro de los artículos 
*/
.entry-content ul {
    list-style: disc !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1.5rem;
}

.entry-content ol {
    list-style: decimal !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.entry-content li::marker {
    color: var(--geek-green) !important;
    content: initial !important; /* Restaura el punto */
    display: inline-block !important; /* Restaura visualización */
}

/* -------------------------------------------------------
   ESTILOS CONTACT FORM 7 (CF7)
   -------------------------------------------------------
*/

/* Resetear márgenes automáticos de CF7 */
.wpcf7 p {
    margin-bottom: 0;
}

/* Spinner de carga (Loader) */
.wpcf7-spinner {
    position: absolute;
    margin-top: -30px; /* Ajuste para que no rompa el layout */
    right: 20px;
}

/* Mensaje de respuesta (La cajita que sale abajo) */
.wpcf7-response-output {
    border-radius: 0.5rem !important; /* rounded-lg */
    padding: 1rem !important;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 1.5rem !important;
    border-width: 2px !important; /* border-2 */
}

/* Éxito (Mensaje enviado) */
.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--geek-green) !important;
    background-color: #f0fdf4; /* Verde muy claro */
    color: var(--geek-dark);
}

/* Error (Campo inválido o fallo) */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: #ef4444 !important; /* Rojo Tailwind */
    background-color: #fef2f2;
    color: #b91c1c;
}

/* Error de validación en campo individual (el texto pequeño bajo el input) */
span.wpcf7-not-valid-tip {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: bold;
    margin-top: 0.25rem;
    display: block;
}
/* ... (Mantén todo el CSS anterior) ... */

/* -------------------------------------------------------
   FIX CHECKBOX LEGAL (CF7) - ALINEACIÓN BASELINE
   -------------------------------------------------------
*/

/* 1. Contenedor del checkbox */
.wpcf7-list-item {
    display: flex !important;
    align-items: baseline !important; /* Alineación clave con el texto */
    margin: 0 !important;
}

/* 2. El Input Checkbox real */
.wpcf7-acceptance input[type="checkbox"] {
    appearance: auto !important; 
    -webkit-appearance: checkbox !important;
    display: inline-block !important;
    
    /* Dimensiones */
    width: 16px !important; /* Un poco más pequeño ayuda a la alineación */
    height: 16px !important;
    
    /* ALINEACIÓN: Usamos transform para ajuste fino si baseline no es suficiente */
    transform: translateY(2px) !important; /* Mueve el checkbox 2px hacia abajo */
    margin-right: 8px !important;
    margin-top: -2px !important; /* Quitamos márgenes superiores que interfieren */
    
    border: 1px solid #d1d5db !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

/* 3. Ajuste del span etiqueta (Label) */
.wpcf7-list-item-label {
    margin: 0 !important;
    line-height: 1.4 !important; /* Altura de línea compacta */
    font-size: 0.85rem !important; /* Texto un poco más pequeño para el legal */
    color: #4b5563 !important;
    display: block !important; /* Asegura que tome el ancho disponible */
}

/* 4. Spinner */
.wpcf7-spinner {
    position: absolute;
    margin-top: -45px;
    right: 20px;
}
/* -------------------------------------------------------
   OCULTAR BADGE RECAPTCHA v3
   -------------------------------------------------------
   Google permite ocultarlo si se añade el texto legal
   en el formulario (ver actualización del formulario abajo).
*/
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
}