/* ==============================================
   PODCAST HERO SECTION STYLES
   Estilos para la sección hero del podcast
   ============================================== */

.podcast-hero-section {
    margin-bottom: 30px !important;
    overflow-x: hidden;
    max-width: 100%;
}

.podcast-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: #1a3a5c;
    margin: 20px 0 15px 0;
    letter-spacing: 1px;
}

.podcast-section-icon {
    font-size: 22px;
}

/* ==============================================
   PODCAST AUDIO BUTTON STYLES
   Estilos para el botón de audio con animación
   ============================================== */

.podcast-audio-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
}

.podcast-audio-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 60px;
}

.podcast-wave-bar {
    width: 6px;
    height: 20px;
    background-color: #009B41;
    border-radius: 3px;
    animation: podcast-wave 1s ease-in-out infinite;
}

.podcast-wave-bar:nth-child(1) { animation-delay: 0s; height: 25px; }
.podcast-wave-bar:nth-child(2) { animation-delay: 0.1s; height: 40px; }
.podcast-wave-bar:nth-child(3) { animation-delay: 0.2s; height: 55px; }
.podcast-wave-bar:nth-child(4) { animation-delay: 0.3s; height: 45px; }
.podcast-wave-bar:nth-child(5) { animation-delay: 0.4s; height: 60px; }
.podcast-wave-bar:nth-child(6) { animation-delay: 0.5s; height: 40px; }
.podcast-wave-bar:nth-child(7) { animation-delay: 0.6s; height: 50px; }
.podcast-wave-bar:nth-child(8) { animation-delay: 0.7s; height: 30px; }

@keyframes podcast-wave {
    0%, 100% {
        transform: scaleY(0.5);
    }
    50% {
        transform: scaleY(1);
    }
}

.podcast-audio-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #009B41;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 155, 65, 0.3);
}

.podcast-audio-button:hover {
    background-color: #007d34;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 155, 65, 0.4);
}

.podcast-audio-icon {
    font-size: 20px;
}

/* ==============================================
   PODCAST MINI WAVE - Para listado
   Animación pequeña para indicador en lista
   ============================================== */

.podcast-audio-indicator {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    color: #009B41;
    padding: 4px 10px;
    background: rgba(0, 155, 65, 0.08);
    border-radius: 15px;
}

.podcast-mini-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 16px;
}

.podcast-mini-wave span {
    width: 3px;
    background-color: #009B41;
    border-radius: 2px;
    animation: podcast-mini-wave 1s ease-in-out infinite;
}

.podcast-mini-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.podcast-mini-wave span:nth-child(2) { height: 10px; animation-delay: 0.1s; }
.podcast-mini-wave span:nth-child(3) { height: 14px; animation-delay: 0.2s; }
.podcast-mini-wave span:nth-child(4) { height: 10px; animation-delay: 0.3s; }
.podcast-mini-wave span:nth-child(5) { height: 6px; animation-delay: 0.4s; }

@keyframes podcast-mini-wave {
    0%, 100% {
        transform: scaleY(0.6);
    }
    50% {
        transform: scaleY(1);
    }
}

.podcast-indicator-text {
    font-size: 12px;
    font-weight: 600;
    color: #009B41;
}

.podcast-hero-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.podcast-hero-wrapper:hover {
    transform: scale(1.01);
}

.podcast-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.podcast-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 1;
}

.podcast-hero-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px 20px;
    text-align: center;
    z-index: 2;
}

.podcast-hero-logo {
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.podcast-hero-logo .icon-home.ico-practica {
    font-size: 45px !important;
    color: white !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.podcast-hero-brand {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.podcast-hero-play {
    width: 130px !important;
    height: 130px !important;
    min-width: 130px;
    min-height: 130px;
    max-width: 130px;
    max-height: 130px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.podcast-hero-play:hover {
    transform: scale(1.1);
    background: white;
}

.podcast-hero-play-icon {
    width: 0;
    height: 0;
    border-left: 40px solid #009B41;
    border-top: 23px solid transparent;
    border-bottom: 23px solid transparent;
    margin-left: 10px;
}

.podcast-hero-info {
    max-width: 800px;
}

.podcast-hero-type {
    font-size: 15px;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.podcast-hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: white;
    margin: 0 0 15px 0;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.podcast-hero-duration {
    font-size: 17px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Responsive adjustments */

/* Fix overflow en rango 481-581px: el container de audio tiene 3 ítems flex (barras + botón + badge)
   que no caben en una sola fila a esos anchos */
@media (max-width: 768px) {
    .podcast-audio-container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .podcast-audio-button {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }

    .editorial-badge-inline {
        flex-basis: 100%;
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .podcast-hero-wrapper {
        height: 380px;
    }
    
    .podcast-hero-inner {
        padding: 30px 15px;
    }
    
    .podcast-hero-logo {
        margin-bottom: 25px;
    }
    
    .podcast-hero-logo .icon-home.ico-practica {
        font-size: 38px !important;
    }
    
    .podcast-hero-brand {
        font-size: 15px;
    }
    
    .podcast-hero-play {
        width: 110px;
        height: 110px;
        margin-bottom: 25px;
    }
    
    .podcast-hero-play-icon {
        border-left: 35px solid #009B41;
        border-top: 20px solid transparent;
        border-bottom: 20px solid transparent;
    }
    
    .podcast-hero-title {
        font-size: 26px;
    }
    
    .podcast-hero-duration {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .podcast-hero-wrapper {
        height: 320px;
    }
    
    .podcast-hero-play {
        width: 90px;
        height: 90px;
    }
    
    .podcast-hero-play-icon {
        border-left: 30px solid #009B41;
        border-top: 17px solid transparent;
        border-bottom: 17px solid transparent;
    }
    
    .podcast-hero-title {
        font-size: 22px;
    }
    
    .podcast-hero-duration {
        font-size: 14px;
    }
}

/* ==============================================
   PODCAST MODAL STYLES
   Estilos para el modal de podcast (audio/video)
   ============================================== */

/* Modal Container */
.podcast-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Body lock when podcast modal is open (iOS-safe: position fixed technique) */
body.podcast-modal-open {
    position: fixed !important;
    width: 100% !important;
    overflow-y: scroll !important;
}

.podcast-modal .modal__inner {
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100%;
    position: relative;
    /* Reset global modal__wrapp .modal__inner overrides from responsive.css */
    min-width: 0;
    margin-right: 0;
    padding-right: 20px;
    overflow-y: visible;
    height: auto;
}

.podcast-modal .modal {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.podcast-modal .modal_body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.podcast-modal .header {
    margin: 0;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    color: #fff !important;
    background: #009B41 !important;
}

.podcast-modal .header span {
    color: #fff !important;
}

.u-background-darkgreen {
    background: #009B41 !important;
}

.podcast-modal .popup-box {
    padding: 0;
}

.podcast-modal .pop-body {
    padding: 0;
    background: #1a1a2e;
}

/* Video Mode */
.podcast-container.video-mode {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

/* Audio Mode */
.podcast-container.audio-mode {
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.audio-visual {
    margin-bottom: 30px;
}

.podcast-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.podcast-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    padding: 0 20px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.podcast-duration {
    color: #009B41;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* Wave Animation */
.audio-wave-animation {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 60px;
    gap: 4px;
    margin-bottom: 20px;
}

.wave-bar {
    width: 6px;
    background: linear-gradient(to top, #009B41, #00d45a);
    border-radius: 3px;
    height: 20px;
    opacity: 0.5;
    transition: height 0.2s ease;
}

.audio-wave-animation.playing .wave-bar {
    opacity: 1;
    animation: wave 0.8s ease-in-out infinite;
}

.audio-wave-animation.playing .wave-bar:nth-child(1) { animation-delay: 0s; }
.audio-wave-animation.playing .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-wave-animation.playing .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-wave-animation.playing .wave-bar:nth-child(4) { animation-delay: 0.3s; }
.audio-wave-animation.playing .wave-bar:nth-child(5) { animation-delay: 0.4s; }
.audio-wave-animation.playing .wave-bar:nth-child(6) { animation-delay: 0.3s; }
.audio-wave-animation.playing .wave-bar:nth-child(7) { animation-delay: 0.2s; }
.audio-wave-animation.playing .wave-bar:nth-child(8) { animation-delay: 0.1s; }

/* Audio Player */
.audio-player-wrapper {
    padding: 20px 30px 30px;
    background: rgba(0,0,0,0.3);
}

.audio-player-wrapper audio {
    width: 100%;
    border-radius: 30px;
    outline: none;
}

/* Close Button */
.podcast-modal .close-modal {
    position: absolute;
    right: 24px;
    top: 24px;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    color: #333;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.podcast-modal .close-modal:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Podcast Button */
.btn-podcast:hover {
    background-color: #007a33 !important;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes wave {
    0%, 100% { height: 20px; }
    50% { height: 50px; }
}

/* ==============================================
   FEEDBACK SECTION STYLES
   ============================================== */

.podcast-feedback-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d1321 100%);
    padding: 20px 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.feedback-question {
    text-align: center;
    margin-bottom: 15px;
}

.feedback-question span {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.feedback-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.feedback-btn.selected {
    border-color: #009B41;
    background: rgba(0, 155, 65, 0.2);
}

.feedback-btn.feedback-like.selected {
    border-color: #009B41;
    background: rgba(0, 155, 65, 0.3);
}

.feedback-btn.feedback-dislike.selected {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.3);
}

.feedback-icon {
    font-size: 20px;
}

.feedback-label {
    font-weight: 500;
}

.feedback-count {
    font-size: 12px;
    opacity: 0.7;
    min-width: 16px;
}

.feedback-comment-section {
    margin-top: 20px;
    text-align: center;
}

.feedback-textarea {
    width: 100%;
    max-width: 400px;
    height: 80px;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    resize: none;
    font-family: inherit;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #009B41;
    background: rgba(255,255,255,0.15);
}

.feedback-textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.feedback-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.btn-send-feedback {
    padding: 8px 24px;
    background: #009B41;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-send-feedback:hover {
    background: #007a33;
}

.char-count {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.feedback-success {
    text-align: center;
    color: #00d45a;
    font-size: 14px;
    padding: 15px;
    background: rgba(0, 212, 90, 0.1);
    border-radius: 8px;
    margin-top: 15px;
}

.feedback-success span {
    font-size: 18px;
    margin-right: 8px;
}

/* ==============================================
   ANALISIS CONTENT STYLES
   ============================================== */

#analisis-guia-section {
    overflow-x: hidden;
    max-width: 100vw;
}

.analisis-content {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
    overflow-x: hidden;
    max-width: 100vw;
}

.analisis-content .analisis-h3 {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #009B41;
    font-weight: 600;
}

.analisis-content .analisis-h4 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #009B41;
    font-weight: 600;
}

.analisis-content .analisis-h5 {
    font-size: 1.1em;
    margin-top: 18px;
    margin-bottom: 8px;
    color: #009B41;
    font-weight: 600;
}

.analisis-content .analisis-h6 {
    font-size: 1em;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #009B41;
    font-weight: 600;
}

.analisis-content .analisis-paragraph {
    margin-bottom: 16px;
    text-align: justify;
}

.analisis-content .analisis-list {
    margin-left: 25px;
    margin-bottom: 16px;
    list-style-type: disc;
}

.analisis-content .analisis-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.analisis-content strong {
    font-weight: 600;
    color: #222;
}

.analisis-content em {
    font-style: italic;
}

/* Estilos para elementos HTML generados por Marked.js */
.analisis-content h1 {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #009B41;
    font-weight: 700;
    border-bottom: 2px solid #009B41;
    padding-bottom: 8px;
}

.analisis-content h2 {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #009B41;
    font-weight: 600;
}

.analisis-content h3 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #009B41;
    font-weight: 600;
}

.analisis-content h4 {
    font-size: 1.1em;
    margin-top: 18px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.analisis-content h5, .analisis-content h6 {
    font-size: 1em;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
}

.analisis-content p {
    margin-bottom: 16px;
    text-align: justify;
    line-height: 1.7;
}

.analisis-content ul, .analisis-content ol {
    margin-left: 25px;
    margin-bottom: 16px;
    padding-left: 15px;
}

.analisis-content ul {
    list-style-type: disc;
}

.analisis-content ol {
    list-style-type: decimal;
}

.analisis-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.analisis-content ul ul, .analisis-content ol ol, .analisis-content ul ol, .analisis-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Indicador de carga */
.analisis-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #009B41;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contenedor para tablas con scroll horizontal */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

/* Contenedor para tablas con scroll en mobile */
.analisis-content .table-responsive {
    width: 100%;
    max-width: calc(100vw - 40px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    display: block;
    box-sizing: border-box;
}

/* Estilos para tablas Markdown */
.analisis-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin: 20px 0;
}

.analisis-content table thead {
    background: #009B41;
}

.analisis-content table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    background: #009B41;
    border: 1px solid #007a33;
}

.analisis-content table td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
}

.analisis-content table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.analisis-content table tbody tr:hover {
    background: #e8f5e9;
}

/* Separador horizontal */
.analisis-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #009B41, transparent);
    margin: 25px 0;
}

/* Blockquotes */
.analisis-content blockquote {
    border-left: 4px solid #009B41;
    margin: 20px 0;
    padding: 10px 20px;
    background: #e8f5e9;
    font-style: italic;
    color: #555;
}

/* Code blocks */
.analisis-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.analisis-content pre {
    background: #263238;
    color: #aed581;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.analisis-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.btn-read-more {
    font-size: 15px;
    transition: color 0.2s;
}

.btn-read-more:hover {
    color: #009B41 !important;
    text-decoration: underline !important;
}

#analisis-guia-section {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #009B41;
}

#analisis-guia-section h3 {
    color: #009B41;
    margin-bottom: 15px;
}

/* Estilos para impresión */
@media print {
    #analisis-preview { display: none !important; }
    #analisis-full { display: block !important; }
    #analisis-read-more { display: none !important; }
    #analisis-guia-section {
        background: white;
        border: 1px solid #ccc;
    }
}

/* ==============================================
   RESPONSIVE MODAL - Mobile fixes
   ============================================== */

@media (max-width: 768px) {
    .podcast-modal {
        align-items: flex-start;
    }

    .podcast-modal .modal__inner {
        padding: 10px;
        max-width: 100%;
        min-height: auto;
        min-width: 0;
        margin-right: 0;
        padding-right: 10px;
        overflow-y: visible;
        height: auto;
    }
    
    .podcast-modal .modal {
        max-height: 92vh;
        border-radius: 8px;
    }
    
    .podcast-modal .modal .modal_body {
        overflow-y: auto;
        max-height: calc(92vh - 50px);
        -webkit-overflow-scrolling: touch;
    }
    
    .podcast-modal .close-modal {
        width: 36px;
        height: 36px;
        font-size: 26px;
        right: 14px;
        top: 14px;
        background: rgba(255,255,255,0.95);
    }
    
    .podcast-container.audio-mode {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .podcast-icon {
        font-size: 48px;
        margin-bottom: 12px;
    }
    
    .audio-wave-animation {
        height: 40px;
        margin-bottom: 12px;
    }
    
    .podcast-title {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .podcast-feedback-section {
        padding: 15px 10px;
    }

    .podcast-modal .editorial-badge span {
        font-size: 12px;
    }
    
    .podcast-modal-tabs .podcast-tab {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .podcast-modal .modal__inner {
        padding: 10px;
        min-width: 0;
        margin-right: 0;
        padding-right: 10px;
    }
    
    .podcast-modal .modal {
        max-height: 94vh;
        border-radius: 6px;
    }
    
    .podcast-modal .modal .modal_body {
        max-height: calc(94vh - 42px);
    }
    
    .podcast-container.audio-mode {
        padding: 15px 10px;
        min-height: auto;
    }
    
    .podcast-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .audio-wave-animation {
        height: 30px;
        margin-bottom: 10px;
    }
    
    .podcast-title {
        font-size: 15px;
        padding: 0 5px;
        line-height: 1.3;
    }
    
    .audio-player-wrapper {
        padding: 10px 12px 12px;
    }
    
    .podcast-feedback-section {
        padding: 12px 8px;
    }
    
    .feedback-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .feedback-question span {
        font-size: 14px;
    }
    
    .podcast-modal .editorial-badge span {
        font-size: 11px;
    }
    
    .podcast-modal-tabs .podcast-tab {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ==============================================
   DUAL AUDIO/VIDEO LAYOUT
   Estilos para mostrar Audio y Video lado a lado
   ============================================== */

.podcast-dual-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #dee2e6;
}

.podcast-section-header-sm {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: #1a3a5c;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.podcast-audio-container.compact {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
}

.podcast-audio-container.compact .podcast-audio-wave {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
}

.podcast-audio-container.compact .podcast-wave-bar {
    width: 4px;
}

.podcast-audio-container.compact .podcast-audio-button {
    padding: 10px 20px;
    font-size: 14px;
}

.podcast-duration-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 12px;
    color: #495057;
}

.podcast-hero-wrapper.compact {
    height: 180px;
    border-radius: 10px;
}

.podcast-hero-wrapper.compact .podcast-hero-info {
    display: none;
}

.podcast-video-duration-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ==============================================
   MODAL TABS
   Estilos para tabs de Audio/Video en el modal
   ============================================== */

.podcast-modal-tabs {
    display: flex;
    background: #1a3a5c;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.podcast-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.podcast-tab:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.podcast-tab.active {
    background: #009B41;
    color: white;
}

.podcast-tab span {
    font-size: 18px;
}

.podcast-content-section {
    transition: opacity 0.3s ease;
}

.podcast-content-section.hidden-section {
    display: none !important;
}

/* Responsive para layout dual */
@media (max-width: 768px) {
    .podcast-dual-section .row {
        flex-direction: column;
    }
    
    .podcast-dual-section .col-md-5,
    .podcast-dual-section .col-md-7 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .podcast-audio-container.compact .podcast-audio-wave {
        display: none;
    }
    
    .podcast-hero-wrapper.compact {
        height: 200px;
    }
}

/* ==============================================
   ESTILOS PARA RESUMEN ANTIGUO (cmnt-list-right)
   Aplicar mismos estilos del análisis al resumen
   ============================================== */

.cmnt-list-bx .cmnt-list-right {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #009B41;
    margin-top: 30px;
}

.cmnt-list-bx .cmnt-list-right h3.cat-head {
    color: #009B41;
    margin-bottom: 15px;
}

/* === Título de la guía en detalle — 30pt === */
.guias-single h1.cat-head {
    font-size: 30px;
    line-height: 1.3;
}
@media (max-width: 768px) {
    .guias-single h1.cat-head {
        font-size: 24px;
    }
}

.cmnt-list-bx .cmnt-list-right p {
    line-height: 1.7;
    color: #333;
}

/* ==============================================
   RESPONSIVE - Análisis y Resumen en Mobile
   ============================================== */

@media (max-width: 768px) {
    #analisis-guia-section {
        padding: 15px;
        margin: 15px 0;
        border-radius: 6px;
    }
    
    #analisis-guia-section h3 {
        font-size: 18px;
    }
    
    .analisis-content {
        font-size: 15px;
        /* Fix Android text deformation on expand */
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .analisis-content p,
    .analisis-content li,
    .analisis-content h1,
    .analisis-content h2,
    .analisis-content h3,
    .analisis-content h4,
    .analisis-content h5,
    .analisis-content h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .analisis-preview,
    .analisis-full {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .analisis-content .analisis-h3 {
        font-size: 17px;
    }
    
    .analisis-content .analisis-h4 {
        font-size: 16px;
    }
    
    /* Wrapper para tablas con scroll horizontal en mobile */
    .analisis-content .table-responsive {
        width: 100%;
        max-width: calc(100vw - 40px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 15px 0;
        display: block;
        box-sizing: border-box;
    }

    .analisis-content table {
        margin: 0;
    }
    
    .analisis-content table th,
    .analisis-content table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .cmnt-list-bx .cmnt-list-right {
        padding: 15px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    #analisis-guia-section {
        padding: 12px;
        border-left-width: 3px;
    }
    
    #analisis-guia-section h3 {
        font-size: 16px;
    }
    
    .analisis-content {
        font-size: 14px;
    }
    
    /* Wrapper para tablas con scroll en pantallas pequeñas */
    .analisis-content .table-responsive {
        max-width: calc(100vw - 40px);
        margin: 12px 0;
    }

    .analisis-content table {
        font-size: 12px;
    }
    
    .analisis-content table th,
    .analisis-content table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .cmnt-list-bx .cmnt-list-right {
        padding: 12px;
        border-left-width: 3px;
    }
}
