/* 
 * Estilos personalizados para Lumina Theme
 * Archivo: custom.css
 */

/* ============================================
   VARIABLES Y CONFIGURACIÓN BASE
   ============================================ */

:root {
    --primary-color: #137fec;
    --accent-color: #9C7C38;
    --base-font-size: 16px;
}

html {
    font-size: var(--base-font-size, 16px);
}

/* ============================================
   UTILIDADES
   ============================================ */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ============================================
   TIPOGRAFÍA Y CONTENIDO
   ============================================ */

.prose {
    color: #374151;
    max-width: 100%;
    line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #111827;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.prose h1 {
    font-size: 2.25rem;
    border-bottom: 2px solid;
    border-color: var(--accent-color, #9C7C38);
    padding-bottom: 0.3em;
}

.prose h2 {
    font-size: 1.875rem;
    padding-bottom: 0.5em;
    margin-top: 1.5em;
    border-bottom: 1px solid #e5e7eb;
}

.prose h3 {
    font-size: 1.5rem;
    color: var(--primary-color, #137fec);
}

.prose h4 {
    font-size: 1.25rem;
    color: #4B5563;
}

.prose h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #6B7280;
}

.prose h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prose p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.prose ul,
.prose ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.prose ul {
    list-style-type: disc;
}

.prose ul li::before {
    content: "";
    display: none;
}

.prose ul li {
    position: relative;
    padding-left: 0;
}

.prose ul li:before {
    content: "•";
    color: var(--accent-color, #9C7C38);
    font-weight: bold;
    position: absolute;
    left: -1em;
}

.prose ol {
    list-style-type: decimal;
    counter-reset: item;
}

.prose ol li {
    display: list-item;
}

.prose ol li:before {
    content: counters(item, ".") ".";
    counter-increment: item;
    color: var(--accent-color, #9C7C38);
    font-weight: bold;
    position: absolute;
    left: -1.5em;
}

.prose blockquote {
    border-left: 4px solid var(--accent-color, #9C7C38);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #F9FAFB;
    font-style: italic;
    color: #4B5563;
    border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
    font-style: normal;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.prose table thead {
    background-color: var(--primary-color, #137fec);
}

.prose table th {
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.prose table td {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.prose table tbody tr:nth-child(even) {
    background-color: #F9FAFB;
}

.prose table tbody tr:hover {
    background-color: #F3F4F6;
}

.prose table tbody tr:last-child td {
    border-bottom: none;
}

.prose pre {
    background-color: #1F2937;
    color: #E5E7EB;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Monaco', 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.prose code {
    background-color: #F3F4F6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: #DC2626;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.prose figure {
    margin: 2rem 0;
    text-align: center;
}

.prose figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
    font-style: italic;
}

.prose a {
    color: var(--primary-color, #137fec);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.prose a:hover {
    color: var(--accent-color, #9C7C38);
    border-bottom-color: currentColor;
}

.prose hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

.prose strong {
    font-weight: 700;
    color: #111827;
}

.prose em {
    font-style: italic;
}

.prose kbd {
    background-color: #F3F4F6;
    border: 1px solid #D1D5DB;
    border-radius: 0.25rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding: 0.125rem 0.375rem;
    font-family: inherit;
    font-size: 0.875em;
}

/* ============================================
   WIDGETS
   ============================================ */

.widget {
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.widget-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    background-color: var(--accent-color, #9C7C38);
    border-radius: 3px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #F3F4F6;
    transition: all 0.2s ease;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li:hover {
    background-color: #F9FAFB;
    padding-left: 0.5rem;
}

.widget ul li a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget ul li a:hover {
    color: var(--primary-color, #137fec);
}

.widget ul li .count {
    font-size: 0.75rem;
    background-color: #E5E7EB;
    color: #6B7280;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

/* Tag Cloud */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tagcloud a {
    display: inline-block;
    background-color: #F3F4F6;
    color: #374151;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem !important;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tagcloud a:hover {
    background-color: var(--primary-color, #137fec);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(19, 127, 236, 0.2);
    border-color: var(--primary-color, #137fec);
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}

.widget_search .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.widget_search .search-field:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.widget_search .search-submit {
    background-color: #10B981;
    color: white;
    border: 2px solid #10B981;
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.widget_search .search-submit:hover {
    background-color: #059669;
    border-color: #059669;
}

.widget_search .search-submit:active {
    transform: scale(0.95);
}

/* ============================================
   BARRA DE BÚSQUEDA
   ============================================ */

.search-input {
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-icon {
    transition: all 0.3s ease;
}

.search-container:focus-within .search-icon {
    color: #10B981 !important;
    animation: pulse 1.5s infinite;
}

.search-field::placeholder {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.search-field:focus::placeholder {
    color: #6B7280;
}

/* ============================================
   PREGUNTAS FRECUENTES / ACORDEONES (DETAILS/SUMMARY)
   ============================================ */

details {
    background: white;
    border-radius: 16px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border: 2px solid transparent;
    position: relative;
}

details:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-3px);
}

details[open] {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
    border-color: #2563eb;
}

/* Botón de título (summary) - AZUL CON PULSO */
details > summary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white !important;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
    border: none;
    outline: none;
}

/* Efecto hover con pulso */
details > summary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    animation: pulse-blue 1.5s infinite;
    padding-left: 2.5rem;
}

details > summary:hover::before {
    content: '👉';
    position: absolute;
    left: 1rem;
    opacity: 1;
    transform: translateX(0);
}

/* Cuando está abierto */
details[open] > summary {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

/* Quitar el marcador por defecto */
details > summary::-webkit-details-marker {
    display: none;
}

/* Ícono personalizado (chevron) */
details > summary::after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    font-size: 2rem;
    font-weight: 400;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

details > summary:hover::after {
    transform: scale(1.2);
}

details[open] > summary::after {
    content: 'expand_less';
    transform: rotate(180deg) scale(1.2);
    color: #93c5fd;
}

/* Contenido desplegado - Diseño profesional */
details > div,
details > p {
    padding: 2rem;
    color: #374151;
    line-height: 1.8;
    background: white;
    animation: slideDownFade 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
}

/* Estilo profesional para preguntas (Q) */
details strong {
    display: inline-block;
    color: #1e40af;
    font-weight: 800;
    font-size: 1.1em;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-radius: 6px;
    border-left: 4px solid #2563eb;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* Estilo para respuestas (A) */
details p {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

details p:hover {
    background: #f1f5f9;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Estilo específico para "Q:" y "A:" */
details p strong:first-child {
    color: #1e40af;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    margin-right: 0.75rem;
    display: inline-block;
    min-width: 45px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
}

details p strong:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

/* Estilo para la respuesta después de Q: */
details p br + strong {
    color: #059669;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: #059669;
    margin-top: 0.75rem;
    display: inline-block;
}

/* ============================================
   FORMULARIOS
   ============================================ */

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 1rem;
    background-color: white;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color, #137fec);
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.1);
}

.comment-form .form-submit {
    margin-top: 1.5rem;
}

.comment-form .submit {
    background-color: var(--primary-color, #137fec);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.comment-form .submit:hover {
    background-color: #0d6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comment-form .comment-notes {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
}

/* ============================================
   BOTONES SOCIALES
   ============================================ */

.social-share {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.social-share h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-decoration: none !important;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.social-share a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-share svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Estilos específicos para cada red social */
.social-share .facebook {
    background-color: #1877F2;
    color: white;
}

.social-share .facebook:hover {
    background-color: #166FE5;
}

.social-share .twitter {
    background-color: #000000;
    color: white;
}

.social-share .twitter:hover {
    background-color: #1a1a1a;
}

.social-share .whatsapp {
    background-color: #25D366;
    color: white;
}

.social-share .whatsapp:hover {
    background-color: #1DA851;
}

.social-share .telegram {
    background-color: #0088cc;
    color: white;
}

.social-share .telegram:hover {
    background-color: #0077b3;
}

.social-share .linkedin {
    background-color: #0077B5;
    color: white;
}

.social-share .linkedin:hover {
    background-color: #006699;
}

.social-share .email {
    background-color: #6B7280;
    color: white;
}

.social-share .email:hover {
    background-color: #4B5563;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7),
                    0 4px 20px rgba(37, 99, 235, 0.3);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 99, 235, 0),
                    0 4px 20px rgba(37, 99, 235, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0),
                    0 4px 20px rgba(37, 99, 235, 0.3);
    }
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-15px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    60% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .prose h1 {
        font-size: 1.875rem;
    }
    
    .prose h2 {
        font-size: 1.5rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose table {
        font-size: 0.875rem;
    }
    
    .prose table th,
    .prose table td {
        padding: 0.75rem;
    }
    
    .social-share-buttons {
        flex-direction: column;
    }
    
    .social-share a {
        width: 100%;
        justify-content: center;
    }
    
    .widget {
        padding: 1rem;
    }
    
    /* FAQ Responsive */
    details > summary {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }
    
    details > div,
    details > p {
        padding: 1.5rem;
    }
    
    details p {
        padding: 1rem;
    }
    
    details p strong:first-child {
        display: block;
        margin-bottom: 0.75rem;
        width: fit-content;
    }
    
    .widget_search .search-form {
        flex-direction: column;
    }
    
    .widget_search .search-field {
        border-right: 2px solid #E5E7EB;
        border-radius: 0.5rem 0.5rem 0 0;
    }
    
    .widget_search .search-submit {
        border-left: 2px solid #10B981;
        border-radius: 0 0 0.5rem 0.5rem;
        width: 100%;
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .prose {
        padding: 0 1rem;
    }
    
    .prose h1 {
        font-size: 1.5rem;
    }
    
    .widget_search .search-submit {
        width: 100%;
    }
}

/* ============================================
   MENÚ MÓVIL
   ============================================ */

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
    max-height: 500px;
}

.menu-item-has-children > a {
    position: relative;
    padding-right: 2rem;
}

.menu-item-has-children > a:after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.menu-item-has-children.active > a:after {
    transform: translateY(-50%) rotate(180deg);
}

.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.menu-item-has-children.active .sub-menu {
    max-height: 300px;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color, #137fec);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d6fd8;
}
/* ============================================
   FORZAR ESTILOS PARA ACORDEONES DETAILS/SUMMARY
   ============================================ */

/* Estilos forzados para TODOS los details en posts */
.entry-content details,
.single-post details,
.page details,
article details,
main details,
.content details {
    background: white !important;
    border-radius: 16px !important;
    margin: 2rem 0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important;
    border: 2px solid transparent !important;
    position: relative !important;
    display: block !important;
}

.entry-content details:hover,
.single-post details:hover,
.page details:hover,
article details:hover,
main details:hover,
.content details:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    transform: translateY(-3px) !important;
}

.entry-content details[open],
.single-post details[open],
.page details[open],
article details[open],
main details[open],
.content details[open] {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2) !important;
    border-color: #2563eb !important;
}

/* Botón de título (summary) - FORZADO */
.entry-content details > summary,
.single-post details > summary,
.page details > summary,
article details > summary,
main details > summary,
.content details > summary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: white !important;
    padding: 1.5rem 2rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    list-style: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    letter-spacing: -0.01em !important;
    border: none !important;
    outline: none !important;
}

/* Efecto hover con pulso - FORZADO */
.entry-content details > summary:hover,
.single-post details > summary:hover,
.page details > summary:hover,
article details > summary:hover,
main details > summary:hover,
.content details > summary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    animation: pulse-blue 1.5s infinite !important;
    padding-left: 2.5rem !important;
}

.entry-content details > summary:hover::before,
.single-post details > summary:hover::before,
.page details > summary:hover::before,
article details > summary:hover::before,
main details > summary:hover::before,
.content details > summary:hover::before {
    content: '👉' !important;
    position: absolute !important;
    left: 1rem !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Cuando está abierto - FORZADO */
.entry-content details[open] > summary,
.single-post details[open] > summary,
.page details[open] > summary,
article details[open] > summary,
main details[open] > summary,
.content details[open] > summary {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3) !important;
}

/* Quitar el marcador por defecto - FORZADO */
.entry-content details > summary::-webkit-details-marker,
.single-post details > summary::-webkit-details-marker,
.page details > summary::-webkit-details-marker,
article details > summary::-webkit-details-marker,
main details > summary::-webkit-details-marker,
.content details > summary::-webkit-details-marker {
    display: none !important;
}

/* Ícono personalizado (chevron) - FORZADO */
.entry-content details > summary::after,
.single-post details > summary::after,
.page details > summary::after,
article details > summary::after,
main details > summary::after,
.content details > summary::after {
    content: 'expand_more' !important;
    font-family: 'Material Symbols Outlined' !important;
    font-size: 2rem !important;
    font-weight: 400 !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.entry-content details > summary:hover::after,
.single-post details > summary:hover::after,
.page details > summary:hover::after,
article details > summary:hover::after,
main details > summary:hover::after,
.content details > summary:hover::after {
    transform: scale(1.2) !important;
}

.entry-content details[open] > summary::after,
.single-post details[open] > summary::after,
.page details[open] > summary::after,
article details[open] > summary::after,
main details[open] > summary::after,
.content details[open] > summary::after {
    content: 'expand_less' !important;
    transform: rotate(180deg) scale(1.2) !important;
    color: #93c5fd !important;
}

/* Contenido desplegado - FORZADO */
.entry-content details > div,
.single-post details > div,
.page details > div,
article details > div,
main details > div,
.content details > div,
.entry-content details > p,
.single-post details > p,
.page details > p,
article details > p,
main details > p,
.content details > p {
    padding: 2rem !important;
    color: #374151 !important;
    line-height: 1.8 !important;
    background: white !important;
    animation: slideDownFade 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important;
    position: relative !important;
}

/* Estilo para las preguntas (Q:) y respuestas (A:) - FORZADO */
.entry-content details p strong:first-child,
.single-post details p strong:first-child,
.page details p strong:first-child,
article details p strong:first-child,
main details p strong:first-child,
.content details p strong:first-child {
    color: #1e40af !important;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    padding: 0.4rem 1rem !important;
    border-radius: 8px !important;
    margin-right: 0.75rem !important;
    display: inline-block !important;
    min-width: 45px !important;
    text-align: center !important;
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
}

.entry-content details p strong:first-child::before,
.single-post details p strong:first-child::before,
.page details p strong:first-child::before,
article details p strong:first-child::before,
main details p strong:first-child::before,
.content details p strong:first-child::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transform: translateX(-100%) !important;
    animation: shine 3s infinite !important;
}

.entry-content details p br + strong,
.single-post details p br + strong,
.page details p br + strong,
article details p br + strong,
main details p br + strong,
.content details p br + strong {
    color: #059669 !important;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border-left-color: #059669 !important;
    margin-top: 0.75rem !important;
    display: inline-block !important;
}

/* Animaciones específicas */
@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7),
                    0 4px 20px rgba(37, 99, 235, 0.3) !important;
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 99, 235, 0),
                    0 4px 20px rgba(37, 99, 235, 0.3) !important;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0),
                    0 4px 20px rgba(37, 99, 235, 0.3) !important;
    }
}

@keyframes slideDownFade {
    from {
        opacity: 0 !important;
        transform: translateY(-15px) !important;
        max-height: 0 !important;
    }
    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
        max-height: 1000px !important;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) !important;
    }
    60% {
        transform: translateX(100%) !important;
    }
    100% {
        transform: translateX(100%) !important;
    }
}