/* ========================================
   POST.CSS - Blog EnyGas
   Estilos optimizados para post.php
   ======================================== */

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Variables CSS - Modo Claro */
:root {
    --secondary-color: #00C851;
    --featured-color: #FF9800;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --background: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --border-color: #E0E0E0;
    --card-bg: #FFFFFF;
    --sidebar-bg: #FFFFFF;
    --header-gradient-start: var(--primary-color);
    --header-gradient-end: var(--primary-dark);
    --search-bg: rgba(255, 255, 255, 0.95);
    --input-bg: #FFFFFF;
    --input-border: #E0E0E0;
    --link-color: var(--primary-color);
    --link-hover: var(--primary-dark);
}

/* Variables Modo Oscuro */
[data-theme="dark"] {
    /* === Variables “dark” universales para compatibilidad === */
    --dark-outer: #1f2937;
    --dark-inner: #1f2937;
    --dark-border: #334155;
    --dark-hover: #273242;
    --dark-text: #E0E0E0;

    --text-dark: #E0E0E0;
    --text-light: #B0B0B0;
    --background: #121212;
    --white: #1E1E1E;
    --card-bg: #1f2937;
    --sidebar-bg: #1f2937;
    --border-color: #404040;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --header-gradient-start: #1a1a1a;
    --header-gradient-end: #2d2d2d;
    --search-bg: rgba(30, 30, 30, 0.95);
    --input-bg: #2d2d2d;
    --input-border: #404040;
    --link-color: #66b3ff;
    --link-hover: #4dabf7;
    --featured-color: #FFA726;
}

/* Body */
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 18px;
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */

.floating-logo {
    position: absolute;
    top: -40px;
    left: 20px;
    z-index: 100;
    pointer-events: none;
}

.floating-logo img {
    height: 220px;
    width: auto;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
    max-width: 400px;
}

.header {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    color: white;
    padding: 18px 0;
    position: relative;
    overflow: visible;
}

.header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.header-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    padding-top: 10px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    box-shadow: var(--shadow);
    background: var(--search-bg);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* ========================================
   THEME TOGGLE
   ======================================== */

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
    background: var(--white);
    padding: 20px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    font-size: 0.9rem;
    border-left: 4px solid var(--primary-color);
}

.breadcrumb a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

.breadcrumb-separator {
    margin: 0 10px;
    color: var(--text-light);
}

/* ========================================
   POST CONTAINER
   ======================================== */

.post-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.post-container.featured {
    border: 2px solid var(--featured-color);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.2);
}

.post-header {
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.post-header.featured {
    background: linear-gradient(135deg, var(--featured-color) 0%, #F57C00 100%);
}

.post-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-decoration: none;
    color: white;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.priority-badge-header {
    margin-left: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Los badges individuales conservan su color */
.priority-badge-header span {
    background: inherit;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    opacity: 0.9;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-excerpt {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ========================================
   POST CONTENT
   ======================================== */

.post-content {
    padding: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    background: var(--card-bg);
    color: var(--text-dark);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 30px 0 15px 0;
    color: var(--text-dark);
    font-weight: 700;
}

.post-content h1 {
    font-size: 2.2rem;
}

.post-content h2 {
    font-size: 1.8rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.3rem;
}

.post-content h5 {
    font-size: 1.1rem;
}

.post-content h6 {
    font-size: 1rem;
}

.post-content p {
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-dark);
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.post-content a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: var(--link-hover);
}

.post-content strong,
.post-content b {
    font-weight: 700;
    color: var(--text-dark);
}

[data-theme="dark"] .post-content strong,
[data-theme="dark"] .post-content b {
    color: #FFFFFF;
}

.post-content em,
.post-content i {
    font-style: italic;
}

.post-content blockquote {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    font-style: italic;
    color: var(--text-light);
}

[data-theme="dark"] .post-content blockquote {
    background: #2d2d2d;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

[data-theme="dark"] .post-content table {
    background: #2d2d2d;
}

.post-content th,
.post-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.post-content th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.post-content tr:hover {
    background: #f8f9fa;
}

[data-theme="dark"] .post-content tr:hover {
    background: #3d3d3d;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 30px 0;
}

/* ... (resto del archivo: widgets, responsive, dark mode, FAQ unificado, etc. — COMPLETO TAL CUAL ME LO ENVIASTE) ... */


/* ========================================
   POST SUMMARY
   ======================================== */

.post-summary {
    background: #f6f9ff;
    border: 1px solid #dbe7ff;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 16px 0;
}

[data-theme="dark"] .post-summary {
    background: #2d2d2d;
    border-color: #404040;
}

.post-summary h2,
.post-summary h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.jump {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

.jump:hover {
    text-decoration: underline;
}



/* ========================================
   TAGS
   ======================================== */

.post-tags-footer {
    background: none;
    padding: 10px 0;
    margin-top: 30px;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.post-tags-footer h4 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.post-tag {
    background: none;
    color: var(--text-light);
    border: none;
    padding: 0;
    font-size: 0.85rem;
    border-radius: 0;
    opacity: 0.7;
    margin-right: 8px;
}

.post-tag:after {
    content: "•";
    margin-left: 8px;
    color: var(--text-light);
}

.post-tag:last-child:after {
    display: none;
}

/* ========================================
   SHARE SECTION
   ======================================== */

.share-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--radius);
    margin: 30px 0;
    text-align: center;
}

[data-theme="dark"] .share-section {
    background: var(--card-bg);
}

.share-section h3 {
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--sidebar-bg);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--primary-dark)) 1;
    padding-bottom: 10px;
}

[data-theme="dark"] .sidebar-widget h3 {
    color: var(--link-color);
}

/* Contact Widget */
.contact-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.contact-widget h3 {
    color: white;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.contact-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.contact-btn {
    display: block;
    background: white;
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-btn.secondary {
    background: var(--secondary-color);
    color: white;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.recent-post.featured {
    border-left: 3px solid var(--featured-color);
    background: rgba(255, 152, 0, 0.05);
}

.recent-post:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

[data-theme="dark"] .recent-post:hover {
    background: #2d2d2d;
}

.recent-post.featured:hover {
    background: rgba(255, 152, 0, 0.1);
}

.recent-post-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.recent-post-content h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.mini-featured-badge {
    width: 8px;
    height: 8px;
    background: var(--featured-color);
    border-radius: 50%;
    margin-left: 5px;
    animation: pulse 2s infinite;
}

/* ========================================
   RELATED POSTS
   ======================================== */

.related-posts {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.related-posts h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-post {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.related-post.featured {
    border: 2px solid var(--featured-color);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-post.featured:hover {
    box-shadow: 0 12px 30px rgba(255, 152, 0, 0.3);
}

.related-post-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    background-size: cover;
    background-position: center;
    position: relative;
}

.related-priority-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--featured-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.related-post-content {
    padding: 15px;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.related-post-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ========================================
   WHATSAPP FLOAT WIDGET
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.5s ease;
    animation: pulse 2s infinite;
    opacity: 0;
    transform: translateY(20px);
}

.whatsapp-float.show {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(0);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.whatsapp-tooltip:after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ========================================
   YOUTUBE VIDEOS
   ======================================== */

.youtube-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #000;
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   BACK TO BLOG BUTTON
   ======================================== */

.back-to-blog-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-blog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: var(--primary-dark);
}



/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 8px !important;
        /* ANTES: 0 5px - AHORA más ancho */
    }

    .breadcrumb {
        padding: 12px 10px !important;
        /* ANTES: 12px 15px */
        font-size: 0.85rem;
    }

    .breadcrumb-separator {
        margin: 0 5px;
    }

    .floating-logo {
        top: -5px;
        left: 15px;
    }

    .floating-logo img {
        height: 90px;
        max-width: 180px;
    }

    .header {
        padding: 15px 0;
    }

    .header-content {
        justify-content: center;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .post-title {
        font-size: 2rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .priority-badge-header {
        margin-left: 0;
        margin-top: 10px;
    }

    .post-header,
    .post-content {
        padding: 15px 10px;
        /* ANTES: 25px - AHORA mucho menos padding */
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.6;
    }

    .post-content h1 {
        font-size: 1.8rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.3rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .share-btn {
        padding: 10px 12px !important;
        font-size: 0.75rem !important;
        flex: 0 1 auto !important;
        white-space: nowrap !important;
        text-align: center;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}



/* ========================================
   MEJORAS DE ACCESIBILIDAD
   ======================================== */

/* Foco visible para teclado */
a:focus,
button:focus,
input:focus,
summary:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reducir movimiento para usuarios con preferencias */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .whatsapp-float {
        animation: none;
    }

    .priority-badge-header {
        animation: none;
    }
}

/* Alto contraste para mejor legibilidad */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        --border-color: #999;
    }

    .post-content a {
        text-decoration: underline;
        text-decoration-thickness: 2px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {

    .theme-toggle,
    .whatsapp-float,
    .header-actions,
    .share-section,
    .sidebar,
    .floating-logo {
        display: none !important;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .post-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .post-content {
        font-size: 12pt;
        line-height: 1.5;
    }

    .post-content a {
        color: #000;
        text-decoration: underline;
    }

    .post-content a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* ========================================
   ANIMACIONES ADICIONALES
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-container {
    animation: fadeIn 0.5s ease-out;
}

/* Smooth scroll para toda la página 
    scroll-behavior: smooth;
}*/


/* CTA Section - RESTAURADO */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #00a844 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    margin: 30px 0;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    background: white;
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}



/* FORZAR modo oscuro en TODOS los elementos con estilos inline */
[data-theme="dark"] .post-content *[style] {
    background: #2d2d2d !important;
    background-color: #2d2d2d !important;
    color: #E0E0E0 !important;
    border-color: #404040 !important;
}

/* Gradientes verdes/azules → texto negro legible */
[data-theme="dark"] .post-content div[style*="gradient"] {
    color: #000000 !important;
}

[data-theme="dark"] .post-content div[style*="gradient"] * {
    color: #000000 !important;
}

/* Tablas forzadas a modo oscuro */
[data-theme="dark"] .post-content table,
[data-theme="dark"] .post-content tr,
[data-theme="dark"] .post-content td,
[data-theme="dark"] .post-content th {
    background: #2d2d2d !important;
    color: #E0E0E0 !important;
}



/* Títulos blancos en modo oscuro (post) */
[data-theme="dark"] .post-title,
[data-theme="dark"] .post-title *,
[data-theme="dark"] .post-header h1,
[data-theme="dark"] h1.entry-title,
[data-theme="dark"] article h1 {
    color: #fff !important;
}

/* Si el título es un enlace */
[data-theme="dark"] .post-title a,
[data-theme="dark"] .post-header h1 a,
[data-theme="dark"] h1.entry-title a {
    color: #fff !important;
}

[data-theme="dark"] .post-title a:hover,
[data-theme="dark"] .post-header h1 a:hover,
[data-theme="dark"] h1.entry-title a:hover {
    opacity: .9;
}

/* Forzar títulos del contenido en modo oscuro */
[data-theme="dark"] .post-content h2,
[data-theme="dark"] .post-content h2 * {
    color: #fff !important;
}

/* (Opcional) aplica también a otros niveles si los usas en mitad del post */
[data-theme="dark"] .post-content h1,
[data-theme="dark"] .post-content h3,
[data-theme="dark"] .post-content h4,
[data-theme="dark"] .post-content h5,
[data-theme="dark"] .post-content h6 {
    color: #fff !important;
}

/* Kill-switch de colores embebidos dentro del post en modo oscuro */
[data-theme="dark"] #enygas-post .post-content,
[data-theme="dark"] #enygas-post .post-content *:not(a):not(.external-link) {
    color: #E0E0E0 !important;
}

/* Títulos dentro del post bien blancos en modo oscuro */
[data-theme="dark"] #enygas-post .post-content h1,
[data-theme="dark"] #enygas-post .post-content h2,
[data-theme="dark"] #enygas-post .post-content h3,
[data-theme="dark"] #enygas-post .post-content h4,
[data-theme="dark"] #enygas-post .post-content h5,
[data-theme="dark"] #enygas-post .post-content h6,
[data-theme="dark"] #enygas-post .post-content h1 *,
[data-theme="dark"] #enygas-post .post-content h2 *,
[data-theme="dark"] #enygas-post .post-content h3 *,
[data-theme="dark"] #enygas-post .post-content h4 *,
[data-theme="dark"] #enygas-post .post-content h5 *,
[data-theme="dark"] #enygas-post .post-content h6 * {
    color: #fff !important;
}

/* === Portada de post — tamaño controlado === */
.post-cover {
    margin: 0 auto 18px;
    text-align: center;
}

.post-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    /* límite vertical */
    object-fit: cover;
    /* recorte elegante */
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .post-cover img {
        max-height: 360px;
        /* un poco más baja en móvil */
    }
}

/* === Portada de posts: categoría más pequeña y abajo-izquierda === */
.post-card,
.blog-card,
.article-card {
    position: relative;
}

.post-card img,
.blog-card img,
.article-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.post-card .post-category,
.blog-card .post-category,
.article-card .post-category {
    position: absolute;
    bottom: 8px;
    left: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 9999px;
    z-index: 5;
}

/* En modo claro se verá sobre fondo blanco translúcido */
:root .post-card .post-category {
    background: rgba(255, 255, 255, 0.8);
    color: #152542;
}

/* En modo oscuro, más contraste */
[data-theme="dark"] .post-card .post-category {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

/* === Portada: categoría pequeña y abajo-izquierda en la miniatura === */
.article-card .article-image {
    position: relative;
    overflow: hidden;
}

.article-card .article-image .badge-on-thumb {
    position: absolute;
    bottom: 8px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 9999px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: rgba(255, 255, 255, .82);
    color: #152542;
}

[data-theme="dark"] .article-card .article-image .badge-on-thumb {
    background: rgba(0, 0, 0, .6);
    color: #fff;
}

/* Forzar el pill de categoría en la miniatura de portada */
.badge-on-thumb {
    position: absolute !important;
    bottom: 8px !important;
    left: 10px !important;
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
    border-radius: 9999px !important;
    z-index: 9 !important;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: rgba(255, 255, 255, .82);
    color: #152542;
}

[data-theme="dark"] .badge-on-thumb {
    background: rgba(0, 0, 0, .6);
    color: #fff;
}

/* ENYGAS — Widget "Recientes" mini 300x300 (cuadro 1:1) */
.recent-post-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === ENYGAS — POST 3.0TD (safe) — SIN .faq-* === */
.enygas-scope.post-content.post-30td {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #152542;
    max-width: 1100px;
    /* amplitud cómoda en escritorio */
    margin: 0 auto;
    padding: 20px 20px;
}

.enygas-scope.post-content.post-30td p {
    margin-bottom: 18px;
    line-height: 1.8;
    text-align: justify;
    padding: 0 8px;
}

.enygas-scope.post-content.post-30td h2 {
    color: #152542;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 30px 0 25px 0;
    text-align: center;
}

.enygas-scope.post-content.post-30td h4 {
    color: #152542;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

/* Cajas genéricas (NO FAQ) */
.enygas-scope.post-content.post-30td .quick-answer {
    background: #e8f4fd;
    border-left: 3px solid #2196f3;
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.enygas-scope.post-content.post-30td .quick-answer strong {
    color: #152542;
}

.enygas-scope.post-content.post-30td .detailed-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.enygas-scope.post-content.post-30td .detailed-content ul {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.enygas-scope.post-content.post-30td .detailed-content li {
    background: #fff;
    border: 1px solid #e0e4e7;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
    line-height: 1.7;
    position: relative;
}

.enygas-scope.post-content.post-30td .detailed-content li:before {
    content: "•";
    color: #2196f3;
    font-weight: bold;
    margin-right: 8px;
}

.enygas-scope.post-content.post-30td .detailed-content strong {
    color: #152542;
    font-weight: 600;
}

.enygas-scope.post-content.post-30td .external-link {
    color: #2196f3;
    text-decoration: underline;
    font-weight: 500;
}

.enygas-scope.post-content.post-30td .external-link:hover {
    color: #1976d2;
}

.enygas-scope.post-content.post-30td .highlight-box {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 12px 14px;
    margin: 15px 5px;
    border-radius: 4px;
}

.enygas-scope.post-content.post-30td .warning-box {
    background: #f8d7da;
    border-left: 3px solid #dc3545;
    padding: 12px 14px;
    margin: 15px 5px;
    border-radius: 4px;
}

.enygas-scope.post-content.post-30td .success-box {
    background: #d4edda;
    border-left: 3px solid #28a745;
    padding: 12px 14px;
    margin: 15px 5px;
    border-radius: 4px;
}

.enygas-scope.post-content.post-30td .cost-calculator {
    background: #f8f9fa;
    border: 2px solid #6c757d;
    padding: 15px;
    margin: 15px 5px;
    border-radius: 4px;
}

/* Responsivo */
@media (max-width: 768px) {
    .enygas-scope.post-content.post-30td {
        max-width: 100%;
        padding: 10px 0 !important;
        margin: 0 !important;
    }

    .enygas-scope.post-content.post-30td p {
        padding: 0 10px !important;
    }
}

@media (min-width: 769px) {
    .enygas-scope.post-content.post-30td {
        max-width: 900px;
    }
}

@media (min-width: 1024px) {
    .enygas-scope.post-content.post-30td {
        max-width: 1100px;
    }
}

/* Modo oscuro (solo contenedor y cajas NO FAQ) */
[data-theme="dark"] .enygas-scope.post-content.post-30td {
    background: #1f2937;
    color: #e5e7eb;
}

[data-theme="dark"] .enygas-scope.post-content.post-30td .quick-answer {
    background: #0f172a;
    border-left: 3px solid #38bdf8;
    color: #e5e7eb;
}

[data-theme="dark"] .enygas-scope.post-content.post-30td .success-box {
    background: #0f2a1a;
    border-left: 3px solid #34d399;
    color: #e5e7eb;
}

[data-theme="dark"] .enygas-scope.post-content.post-30td .highlight-box {
    background: #2a1f0a;
    border-left: 3px solid #facc15;
    color: #e5e7eb;
}

[data-theme="dark"] .enygas-scope.post-content.post-30td .warning-box {
    background: #3a1114;
    border-left: 3px solid #f87171;
    color: #ffecec;
}

[data-theme="dark"] .enygas-scope.post-content.post-30td .detailed-content li {
    background: #2d2d2d;
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .enygas-scope.post-content.post-30td .cost-calculator {
    background: #111827;
    border: 2px solid #4b5563;
    color: #e5e7eb;
}

/* === ENYGAS — POST-FAQ (safe) — SIN .faq-* === */
.enygas-scope.post-content.post-faq {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #152542;
    max-width: 1100px;
    /* ancho cómodo como en Batería Virtual */
    margin: 0 auto;
    padding: 20px 20px;
}

/* Texto y títulos */
.enygas-scope.post-content.post-faq p {
    margin-bottom: 18px;
    line-height: 1.8;
    text-align: justify;
    padding: 0 8px;
}

.enygas-scope.post-content.post-faq h2 {
    color: #152542;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 30px 0 25px 0;
    text-align: center;
}

/* Cajas informativas (NO FAQ) */
.enygas-scope.post-content.post-faq .quick-answer {
    background: #e8f4fd;
    border-left: 3px solid #2196f3;
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.enygas-scope.post-content.post-faq .highlight-box {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 12px 14px;
    margin: 15px 5px;
    border-radius: 4px;
}

.enygas-scope.post-content.post-faq .success-box {
    background: #d4edda;
    border-left: 3px solid #28a745;
    padding: 12px 14px;
    margin: 15px 5px;
    border-radius: 4px;
}

.enygas-scope.post-content.post-faq .warning-box {
    background: #f8d7da;
    border-left: 3px solid #dc3545;
    padding: 12px 14px;
    margin: 15px 5px;
    border-radius: 4px;
}

/* UL / LI (listas dentro del contenido) */
.enygas-scope.post-content.post-faq .detailed-content ul {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.enygas-scope.post-content.post-faq .detailed-content li {
    background: #fff;
    border: 1px solid #e0e4e7;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
    line-height: 1.7;
    position: relative;
}

.enygas-scope.post-content.post-faq .detailed-content li:before {
    content: "•";
    color: #2196f3;
    font-weight: bold;
    margin-right: 8px;
}

/* Responsivo */
@media (max-width: 768px) {
    .enygas-scope.post-content.post-faq {
        max-width: 100%;
        padding: 10px 0 !important;
        margin: 0 !important;
    }

    .enygas-scope.post-content.post-faq p {
        padding: 0 10px !important;
    }
}

@media (min-width: 769px) {
    .enygas-scope.post-content.post-faq {
        max-width: 1040px;
        padding: 20px 24px;
    }
}

@media (min-width: 1024px) {
    .enygas-scope.post-content.post-faq {
        max-width: 1280px;
    }
}





/* === ENYGAS — Acordeón nativo universal (details/summary) === */
/* Caja exterior */
.post-content details {
    background: #f5f6f8;
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 8px;
    margin: 0 0 14px 0;
    overflow: hidden;
}

/* Cabecera */
.post-content summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark, #2C3E50);
    background: #f5f6f8;
    padding: 14px 18px;
    position: relative;
    transition: background .25s ease;
}

.post-content summary::-webkit-details-marker {
    display: none;
}

.post-content summary::marker {
    content: "";
}

/* Icono + a la derecha */
.post-content summary::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--link-color, #2196f3);
    transition: transform .25s ease;
}

.post-content details[open]>summary::after {
    transform: translateY(-50%) rotate(45deg);
}

/* Cuerpo */
.post-content details>*:not(summary) {
    padding: 15px 18px;
    border-top: 1px solid var(--border-color, #E0E0E0);
    background: #fff;
    color: var(--text-dark, #2C3E50);
    line-height: 1.7;
}

/* Hover */
.post-content summary:hover {
    background: #eef1f5;
}

/* === MODO OSCURO === */
[data-theme="dark"] .post-content details {
    background: #0b2240;
    border-color: #374151;
}

[data-theme="dark"] .post-content summary {
    background: #1f2937;
    color: #e5e7eb;
}

[data-theme="dark"] .post-content summary:hover {
    background: #273242;
}

[data-theme="dark"] .post-content details>*:not(summary) {
    background: #111827;
    color: #e5e7eb;
    border-top-color: #374151;
}

[data-theme="dark"] .post-content summary::after {
    color: #38bdf8;
}

[data-theme="dark"] .post-content strong {
    color: #fff;
}









/* === ENYGAS — Dark patch para detalles + cajas (igual que SAS) === */

/* 1) Panel del acordeón (marco y cabecera) */
[data-theme="dark"] .post-content details {
    background: #1f2937;
    /* marco/caja exterior */
    border-color: #374151;
}

[data-theme="dark"] .post-content summary {
    background: #1f2937;
    /* barra de la pregunta */
    color: #e5e7eb;
}

[data-theme="dark"] .post-content summary:hover {
    background: #273242;
}

/* 2) Cuerpo interior del acordeón (fondo más oscuro) */
[data-theme="dark"] .post-content details>*:not(summary) {
    background: #111827;
    /* interior (la “caja grande” abierta) */
    color: #e5e7eb;
    border-top-color: #374151;
}

/* 3) Icono + en azul, como SAS */
[data-theme="dark"] .post-content summary::after {
    color: #38bdf8;
}

/* 4) Listas “píldoras” dentro (evitar blancas) */
[data-theme="dark"] .post-content .detailed-content li {
    background: #223047;
    /* o #2d2d2d si prefieres más neutro */
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .post-content .detailed-content li:before {
    color: #38bdf8;
}

/* 5) Cajas rápidas (quick/highlight/warning/success) en oscuro */
[data-theme="dark"] .post-content .quick-answer {
    background: #0f172a;
    border-left: 3px solid #38bdf8;
    color: #e5e7eb;
}

[data-theme="dark"] .post-content .highlight-box {
    background: #2a1f0a;
    border-left: 3px solid #facc15;
    color: #e5e7eb;
}

[data-theme="dark"] .post-content .warning-box {
    background: #3a1116;
    border-left: 3px solid #f87171;
    color: #ffecec;
}

[data-theme="dark"] .post-content .success-box {
    background: #0f2a1a;
    border-left: 3px solid #34d399;
    color: #e5e7eb;
}

/* 6) Negritas dentro del contenido en oscuro con buen contraste */
[data-theme="dark"] .post-content strong {
    color: #fff;
}




/* === ENYGAS — DARK FIX (alta especificidad para igualar al SAS) === */

/* 1) Marco y barra del acordeón */
[data-theme="dark"] .enygas-scope.post-content.post-faq details,
[data-theme="dark"] .enygas-scope.post-content.post-30td details {
    background: #1f2937 !important;
    /* marco */
    border-color: #374151 !important;
}

[data-theme="dark"] .enygas-scope.post-content.post-faq summary,
[data-theme="dark"] .enygas-scope.post-content.post-30td summary {
    background: #1f2937 !important;
    /* barra pregunta */
    color: #e5e7eb !important;
}

[data-theme="dark"] .enygas-scope.post-content.post-faq summary:hover,
[data-theme="dark"] .enygas-scope.post-content.post-30td summary:hover {
    background: #273242 !important;
}

[data-theme="dark"] .enygas-scope.post-content.post-faq summary::after,
[data-theme="dark"] .enygas-scope.post-content.post-30td summary::after {
    color: #38bdf8 !important;
    /* “+” azul como SAS */
}

/* 2) Cuerpo interior del acordeón */
[data-theme="dark"] .enygas-scope.post-content.post-faq details>*:not(summary),
[data-theme="dark"] .enygas-scope.post-content.post-30td details>*:not(summary) {
    background: #111827 !important;
    /* interior */
    color: #e5e7eb !important;
    border-top-color: #374151 !important;
}

/* 3) Listas “píldoras” (evitar blanco) */
[data-theme="dark"] .enygas-scope.post-content.post-faq .detailed-content li,
[data-theme="dark"] .enygas-scope.post-content.post-30td .detailed-content li {
    background: #223047 !important;
    /* o #2d2d2d si prefieres neutro */
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

[data-theme="dark"] .enygas-scope.post-content.post-faq .detailed-content li:before,
[data-theme="dark"] .enygas-scope.post-content.post-30td .detailed-content li:before {
    color: #38bdf8 !important;
}

/* 4) Cajas rápidas */
[data-theme="dark"] .enygas-scope.post-content.post-faq .quick-answer,
[data-theme="dark"] .enygas-scope.post-content.post-30td .quick-answer {
    background: #1f2937 !important;
    border-left: 3px solid #38bdf8 !important;
    color: #e5e7eb !important;
}

[data-theme="dark"] .enygas-scope.post-content.post-faq .highlight-box,
[data-theme="dark"] .enygas-scope.post-content.post-30td .highlight-box {
    background: #2a1f0a !important;
    border-left: 3px solid #facc15 !important;
    color: #e5e7eb !important;
}

[data-theme="dark"] .enygas-scope.post-content.post-faq .warning-box,
[data-theme="dark"] .enygas-scope.post-content.post-30td .warning-box {
    background: #3a1116 !important;
    border-left: 3px solid #f87171 !important;
    color: #ffecec !important;
}

[data-theme="dark"] .enygas-scope.post-content.post-faq .success-box,
[data-theme="dark"] .enygas-scope.post-content.post-30td .success-box {
    background: #0f2a1a !important;
    border-left: 3px solid #34d399 !important;
    color: #e5e7eb !important;
}

[data-theme="dark"] .enygas-scope.post-content.post-faq .cost-calculator,
[data-theme="dark"] .enygas-scope.post-content.post-30td .cost-calculator {
    background: #111827 !important;
    border: 2px solid #4b5563 !important;
    color: #e5e7eb !important;
}

/* 5) Negritas con buen contraste */
[data-theme="dark"] .enygas-scope.post-content.post-faq strong,
[data-theme="dark"] .enygas-scope.post-content.post-30td strong {
    color: #fff !important;
}

/* ENYGAS — Anti-vaivén puro CSS para <details> */
.post-content details {
    overflow-anchor: none;
    /* evita recolocado del navegador al expandir */
}

.post-content details>*:not(summary) {
    overflow-anchor: none;
    /* refuerzo por si el salto viene del cuerpo */
}

.post-content summary {
    scroll-margin-top: 0;
    /* sin empuje extra al enfocar summary */
}

/* aseguramos que no haya scroll suave residual */
html,
body {
    scroll-behavior: auto;
}

/* ========================================
   FIN DEL ARCHIVO
   ======================================== */