/* =========================================================
   RESET Y CONTENEDORES GENERALES
   ========================================================= */

.abc-pregunta-visitantes-wrapper,
.abc-pregunta-usuarios-wrapper {
    background-color: #FAFAFA;
    min-height: 100vh;
    padding: 40px 0;
}

.abc-pregunta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    padding: 0 20px;
}

.abc-pregunta-main {
    flex: 1;
    max-width: 750px;
    min-width: 750px;
}

/* =========================================================
   PORTADA PARA PREGUNTAS SIN MEDIA
   ========================================================= */

.abc-portada-pregunta {
    width: 100%;
    max-width: 750px;
    height: 400px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

.abc-portada-pregunta-aurora {
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, #001219, #005f73, #0a9396, #94d2bd, #3BB8DB);
    background-size: 800% 800%;
    animation: auroraInfinito 10s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes auroraInfinito {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.abc-portada-contenido {
    text-align: center;
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.abc-portada-titulo {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    padding: 0 20px;
}

/* =========================================================
   MEDIA (IMAGEN O VIDEO)
   ========================================================= */

.abc-pregunta-media {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-bottom: 25px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

.abc-pregunta-imagen {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
    object-fit: cover;
}

.abc-pregunta-video {
    width: 100%;
    max-width: 800px;
    display: block;
}

.abc-pregunta-imagen {
    margin: 0 auto;
}

/* =========================================================
   TÍTULO DE LA PREGUNTA (cuando hay media)
   ========================================================= */

.abc-pregunta-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 25px 0;
    line-height: 1.3;
}

/* =========================================================
   BANNER PREMIUM (Aurora Dark)
   ========================================================= */

.abc-premium-banner.abc-aurora-dark {
    position: relative;
    padding: 60px 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #333;
    overflow: hidden;
    background: linear-gradient(270deg, #000000 20%, #111111 40%, #ECFEFF 50%, #111111 60%, #000000 80%);
    background-size: 200% 200%;
    animation: auroraBlackMove 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

@keyframes auroraBlackMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.abc-aurora-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    mix-blend-mode: overlay;
    pointer-events: none;
    background: repeating-linear-gradient(45deg, #000, #000 1px, transparent 1px, transparent 4px);
}

.abc-premium-content {
    position: relative;
    z-index: 5;
    max-width: 600px;
}

.abc-premium-icon .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: #ffffff;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.abc-premium-texto h3 {
    font-size: 26px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0 0 10px 0;
    font-weight: 900;
}

.abc-premium-texto p {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.abc-premium-texto strong {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #444;
}

.abc-premium-boton {
    margin-top: 25px;
}

.abc-btn-premium {
    display: inline-block;
    background: #ffffff;
    color: #005f73;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.abc-btn-premium:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #005f73;
}

.abc-btn-registro {
    display: inline-block;
    background: #0073aa;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.3s;
}

.abc-btn-registro:hover {
    background: #005a87;
    color: #ffffff;
}

/* =========================================================
   ESTADÍSTICAS
   ========================================================= */

.abc-pregunta-estadisticas {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.abc-pregunta-estadisticas h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
}

.abc-respuestas-total {
    color: #0073aa;
    font-weight: 500;
}

/* =========================================================
   RESPUESTAS BLOQUEADAS (para público)
   ========================================================= */

.abc-respuestas-bloqueadas {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 40px 20px;
    margin-top: 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.abc-respuestas-bloqueadas-mensaje .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #999;
    margin-bottom: 15px;
}

.abc-respuestas-bloqueadas-mensaje p {
    font-size: 16px;
    color: #666;
    margin: 0 0 10px 0;
}

/* =========================================================
   CAMPO DE RESPUESTA
   ========================================================= */

.abc-pregunta-responder {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
}

.abc-pregunta-responder h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1d2327;
}

.abc-pregunta-responder textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.abc-pregunta-responder textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.abc-btn-responder {
    background: #0073aa;
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.2s;
}

.abc-btn-responder:hover {
    background: #005a87;
}

.abc-respuesta-mensaje {
    display: block;
    margin-top: 10px;
    font-size: 13px;
}

/* =========================================================
   LISTA DE RESPUESTAS
   ========================================================= */

.abc-respuestas-lista {
    margin-top: 20px;
}

.abc-respuesta-item {
    display: flex;
    gap: 15px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}

.abc-respuesta-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.abc-respuesta-propia {
    background: #F0F9FF;
    border-color: #00bcd4;
}

.abc-respuesta-avatar {
    flex-shrink: 0;
}

.abc-respuesta-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.abc-respuesta-contenido {
    flex: 1;
}

.abc-respuesta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.abc-respuesta-autor {
    font-weight: 600;
    font-size: 16px;
}

.abc-respuesta-autor a {
    color: #1d2327;
    text-decoration: none;
    transition: color 0.2s;
}

.abc-respuesta-autor a:hover {
    color: #0073aa;
}

.abc-respuesta-fecha {
    font-size: 14px;
    color: #888;
}

.abc-respuesta-texto {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* =========================================================
   LOADER
   ========================================================= */

.abc-respuestas-loader {
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.abc-loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: abcLoaderSpin 0.8s linear infinite;
}

@keyframes abcLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   SIDEBAR DERECHA
   ========================================================= */

.abc-pregunta-sidebar {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.abc-sidebar-categoria,
.abc-sidebar-fecha,
.abc-sidebar-autor {
    background: #ffffff;
    border-radius: 0px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 184, 219, 0.3);
    box-shadow: 
        0 10px 20px rgba(0, 95, 115, 0.08),
        0 6px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.abc-sidebar-categoria-etiqueta,
.abc-sidebar-fecha-etiqueta,
.abc-sidebar-autor-etiqueta {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
}

.abc-sidebar-categoria-valor,
.abc-sidebar-fecha-valor {
    font-size: 15px;
    color: #1d2327;
    font-weight: 500;
}

.abc-sidebar-autor {
    display: flex;
    align-items: center;
    gap: 15px;
	text-align: center;
}

.abc-sidebar-autor-avatar img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
}

.abc-sidebar-autor-nombre {
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    text-decoration: none;
}

.abc-sidebar-autor-nombre:hover {
    color: #0073aa;
}

.abc-sidebar-stats {
    background: #ffffff;
    border-radius: 0px;
    padding: 18px;
    text-align: center;
	border: 1px solid rgba(59, 184, 219, 0.3);
    box-shadow: 
        0 10px 20px rgba(0, 95, 115, 0.08),
        0 6px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.abc-sidebar-stat-valor {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #0073aa;
}

.abc-sidebar-stat-etiqueta {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================================
   ESTILOS PARA ERRORES Y NOTIFICACIONES
   ========================================================= */

.abc-pregunta-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.abc-pregunta-exito {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media screen and (max-width: 992px) {
    .abc-pregunta-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .abc-pregunta-main {
        max-width: 100%;
    }
    
    .abc-pregunta-sidebar {
        width: 100%;
        position: static;
    }
    
    .abc-portada-titulo {
        font-size: 28px;
        padding: 0 20px;
    }
}

/* Móvil */
@media screen and (max-width: 768px) {
    .abc-pregunta-visitantes-wrapper,
    .abc-pregunta-usuarios-wrapper {
        padding: 20px 0;
    }
    
    .abc-pregunta-titulo {
        font-size: 24px;
    }
    
    .abc-portada-titulo {
        font-size: 22px;
    }
    
    .abc-portada-pregunta-wrapper {
        height: 300px;
    }
    
    .abc-respuesta-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .abc-respuesta-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .abc-premium-texto h3 {
        font-size: 20px;
        letter-spacing: 3px;
    }
    
    .abc-premium-texto p {
        font-size: 14px;
    }
    
    .abc-sidebar-autor {
        flex-direction: column;
        text-align: center;
    }
    
    .abc-sidebar-autor-avatar img {
        width: 60px;
        height: 60px;
    }
}

/* Móvil pequeño */
@media screen and (max-width: 480px) {
    .abc-pregunta-container {
        padding: 0 15px;
    }
    
    .abc-portada-titulo {
        font-size: 18px;
    }
    
    .abc-pregunta-titulo {
        font-size: 20px;
    }
    
    .abc-premium-texto h3 {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .abc-respuesta-item {
        padding: 15px;
    }
    
    .abc-respuesta-autor {
        font-size: 14px;
    }
    
    .abc-respuesta-texto {
        font-size: 14px;
    }
    
    .abc-btn-premium,
    .abc-btn-responder,
    .abc-btn-cargar-mas {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* =========================================================
   RESPONSIVE - AJUSTES ADICIONALES
   ========================================================= */

/* Tablet */
@media screen and (max-width: 992px) {
    .abc-pregunta-main {
        min-width: auto;
        max-width: 100%;
    }
    
    .abc-pregunta-media {
        max-width: 100%;
    }
    
    .abc-pregunta-imagen,
    .abc-pregunta-video {
        max-width: 100%;
    }
    
    .abc-portada-pregunta {
        max-width: 100%;
    }
}

/* Móvil */
@media screen and (max-width: 768px) {
    .abc-portada-pregunta {
        height: 300px;
    }
    
    .abc-portada-titulo {
        font-size: 22px;
    }
}