/*
 * Single Post Premium - wappnodepro
 *
 * Estilos premium dark/gold para la página de artículo individual.
 * Hero con imagen de fondo, barra social flotante, contenido tipográfico
 * premium, caja de autor, navegación, artículos relacionados.
 *
 * @package wappnodepro
 * @version 3.0.0
 */

/* =============================================================================
   1.0 - BODY OVERRIDE
   ============================================================================= */
body.single-post {
    background: #08080d !important;
    color: #e0e0e0 !important;
}


/* =============================================================================
   2.0 - HERO DEL ARTÍCULO
   ============================================================================= */
.cwp-sp-hero {
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 3.5rem;
    text-align: center;
    background: #050508;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cwp-sp-hero__orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.cwp-sp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.cwp-sp-orb--1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #c8a96e, transparent 70%);
    top: -150px;
    left: -100px;
    opacity: .2;
}

.cwp-sp-orb--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #c8a96e, transparent 70%);
    bottom: -120px;
    right: -80px;
    opacity: .18;
}

/* Background image */
.cwp-sp-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cwp-sp-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .15;
}

.cwp-sp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,8,.4) 0%, rgba(5,5,8,.92) 80%, #08080d 100%);
    z-index: 1;
}

/* Inner */
.cwp-sp-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 750px;
    width: 100%;
}

/* Breadcrumb */
.cwp-sp-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-bottom: 1rem;
    font-size: .78rem;
    flex-wrap: wrap;
}

.cwp-sp-hero__breadcrumb a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color .2s;
}

.cwp-sp-hero__breadcrumb a:hover {
    color: #c8a96e;
}

.cwp-sp-hero__breadcrumb span {
    color: rgba(255,255,255,.2);
}

/* Badge */
.cwp-sp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(200,169,110,.12);
    border: 1px solid rgba(200,169,110,.25);
    color: #c8a96e;
    font-size: .72rem;
    font-weight: 600;
    padding: .3rem .85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    text-decoration: none;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: all .2s;
}

.cwp-sp-hero__badge:hover {
    background: rgba(200,169,110,.2);
    color: #d4b87a;
}

/* Title */
.cwp-sp-hero__title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffffff;
    letter-spacing: .03em;
    margin: 0 0 1.25rem;
    line-height: 1.05;
    text-shadow: 0 2px 30px rgba(0,0,0,.5);
}

/* Meta */
.cwp-sp-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: rgba(255,255,255,.45);
}

.cwp-sp-hero__meta svg {
    flex-shrink: 0;
}

.cwp-sp-hero__author {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.cwp-sp-hero__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(200,169,110,.3);
}

.cwp-sp-hero__author-name {
    display: block;
    color: #f0f0f0;
    font-weight: 600;
    font-size: .82rem;
}

.cwp-sp-hero__author-label {
    display: block;
    font-size: .65rem;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.cwp-sp-hero__divider {
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    flex-shrink: 0;
}

.cwp-sp-hero__date,
.cwp-sp-hero__reading,
.cwp-sp-hero__comments {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.cwp-sp-hero__date svg,
.cwp-sp-hero__reading svg,
.cwp-sp-hero__comments svg {
    color: rgba(200,169,110,.5);
}


/* =============================================================================
   3.0 - IMAGEN DESTACADA FULL-WIDTH
   ============================================================================= */
.cwp-sp-featured {
    padding: 0 2rem;
    max-width: 900px;
    margin: -2rem auto 2.5rem;
}

.cwp-sp-featured__inner {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
}

.cwp-sp-featured__inner img {
    width: 100%;
    height: auto;
    display: block;
}


/* =============================================================================
   4.0 - BARRA SOCIAL FLOTANTE
   ============================================================================= */
.cwp-sp-share-bar {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    z-index: 100;
}

.cwp-sp-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14,14,22,.8);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    color: rgba(255,255,255,.35);
    text-decoration: none;
    transition: all .25s;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.cwp-sp-share-btn:hover {
    background: rgba(200,169,110,.12);
    border-color: rgba(200,169,110,.25);
    color: #c8a96e;
    transform: scale(1.1);
}

.cwp-sp-share-copy.copied {
    background: rgba(46,204,113,.12);
    border-color: rgba(46,204,113,.25);
    color: #2ecc71;
}

@media (max-width: 1200px) {
    .cwp-sp-share-bar {
        display: none;
    }
}


/* =============================================================================
   5.0 - CONTENIDO DEL ARTÍCULO
   ============================================================================= */
.cwp-sp-article {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.cwp-sp-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255,255,255,.7);
}

/* Headings */
.cwp-sp-content h2 {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.8rem;
    color: #ffffff;
    letter-spacing: .03em;
    margin: 3rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(200,169,110,.12);
}

.cwp-sp-content h3 {
    font-size: 1.35rem;
    color: #f0f0f0;
    margin: 2.5rem 0 .75rem;
    font-weight: 700;
}

.cwp-sp-content h4 {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 2rem 0 .5rem;
    font-weight: 600;
}

/* Paragraphs */
.cwp-sp-content p {
    margin-bottom: 1.25rem;
}

/* Links */
.cwp-sp-content a {
    color: #c8a96e;
    text-decoration: underline;
    text-decoration-color: rgba(200,169,110,.3);
    text-underline-offset: 3px;
    transition: all .2s;
}

.cwp-sp-content a:hover {
    color: #d4b87a;
    text-decoration-color: #c8a96e;
}

/* Lists */
.cwp-sp-content ul,
.cwp-sp-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.cwp-sp-content li {
    margin-bottom: .4rem;
    padding-left: .25rem;
}

.cwp-sp-content ul li::marker {
    color: #c8a96e;
}

.cwp-sp-content ol li::marker {
    color: #c8a96e;
    font-weight: 600;
}

/* Blockquote */
.cwp-sp-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: rgba(200,169,110,.06);
    border-left: 3px solid #c8a96e;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: rgba(255,255,255,.6);
}

.cwp-sp-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.cwp-sp-content code {
    background: rgba(255,255,255,.06);
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .9em;
    color: #c8a96e;
    font-family: 'Fira Code', monospace;
}

.cwp-sp-content pre {
    background: rgba(10,10,15,.9);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.cwp-sp-content pre code {
    background: none;
    padding: 0;
    color: rgba(255,255,255,.65);
    font-size: .85rem;
}

/* Images */
.cwp-sp-content img {
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid rgba(255,255,255,.04);
}

/* Tables */
.cwp-sp-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.cwp-sp-content table th {
    background: rgba(200,169,110,.08);
    color: #c8a96e;
    padding: .7rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: .85rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.cwp-sp-content table td {
    padding: .7rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: .9rem;
}

.cwp-sp-content table tr:hover td {
    background: rgba(255,255,255,.02);
}

/* WP Caption / Gallery */
.cwp-sp-content .wp-caption {
    max-width: 100%;
}

.cwp-sp-content .wp-caption-text {
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.35);
    margin-top: .5rem;
}

/* WordPress Embeds */
.cwp-sp-content iframe {
    border-radius: 12px;
    margin: 1.5rem 0;
    max-width: 100%;
}

/* WordPress galleries */
.cwp-sp-content .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin: 1.5rem 0;
}

.cwp-sp-content .gallery-item img {
    border-radius: 8px;
    margin: 0;
}


/* =============================================================================
   6.0 - ETIQUETAS
   ============================================================================= */
.cwp-sp-tags {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .82rem;
}

.cwp-sp-tags svg {
    color: rgba(200,169,110,.5);
    flex-shrink: 0;
}

.cwp-sp-tags a {
    display: inline-flex;
    align-items: center;
    padding: .3rem .75rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 6px;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .78rem;
    transition: all .2s;
}

.cwp-sp-tags a:hover {
    background: rgba(200,169,110,.08);
    border-color: rgba(200,169,110,.2);
    color: #c8a96e;
}

.cwp-sp-tag-sep {
    display: none;
}


/* =============================================================================
   7.0 - CAJA DEL AUTOR
   ============================================================================= */
.cwp-sp-author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.75rem;
    background: rgba(14,14,22,.8);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    margin-top: 2.5rem;
}

.cwp-sp-author-box__avatar {
    flex-shrink: 0;
}

.cwp-sp-author-box__img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50%;
    border: 2px solid rgba(200,169,110,.25);
}

.cwp-sp-author-box__info {
    flex: 1;
}

.cwp-sp-author-box__label {
    display: block;
    font-size: .68rem;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .2rem;
}

.cwp-sp-author-box__name {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
}

.cwp-sp-author-box__name a {
    color: #ffffff;
    text-decoration: none;
    transition: color .2s;
}

.cwp-sp-author-box__name a:hover {
    color: #c8a96e;
}

.cwp-sp-author-box__bio {
    color: rgba(255,255,255,.45);
    font-size: .85rem;
    line-height: 1.6;
    margin: 0 0 .75rem;
}

.cwp-sp-author-box__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #c8a96e;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap .2s;
}

.cwp-sp-author-box__link:hover {
    gap: .6rem;
}


/* =============================================================================
   8.0 - NAVEGACIÓN ENTRE ARTÍCULOS
   ============================================================================= */
.cwp-sp-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

.cwp-sp-nav__item {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1.25rem;
    background: rgba(14,14,22,.8);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    text-decoration: none;
    transition: all .3s;
}

.cwp-sp-nav__item:hover {
    border-color: rgba(200,169,110,.2);
    background: rgba(200,169,110,.04);
}

.cwp-sp-nav__item--next {
    text-align: right;
}

.cwp-sp-nav__label {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cwp-sp-nav__item--next .cwp-sp-nav__label {
    justify-content: flex-end;
}

.cwp-sp-nav__title {
    color: #f0f0f0;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.4;
}

.cwp-sp-nav__item:hover .cwp-sp-nav__title {
    color: #c8a96e;
}


/* =============================================================================
   9.0 - ARTÍCULOS RELACIONADOS
   ============================================================================= */
.cwp-sp-related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

.cwp-sp-related__header {
    margin-bottom: 1.5rem;
}

.cwp-sp-related__title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.4rem;
    color: #ffffff;
    letter-spacing: .04em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.cwp-sp-related__title svg {
    color: #c8a96e;
}

.cwp-sp-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .cwp-sp-related__grid {
        grid-template-columns: 1fr;
    }
}

/* Related card */
.cwp-sp-related-card {
    background: rgba(14,14,22,.8);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s;
}

.cwp-sp-related-card:hover {
    border-color: rgba(200,169,110,.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.cwp-sp-related-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.cwp-sp-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.cwp-sp-related-card:hover .cwp-sp-related-card__image img {
    transform: scale(1.05);
}

.cwp-sp-related-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.08);
}

.cwp-sp-related-card__reading {
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    background: rgba(10,10,15,.85);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,.6);
    font-size: .65rem;
    font-weight: 600;
    padding: .2rem .5rem;
    border-radius: 5px;
}

.cwp-sp-related-card__body {
    padding: 1rem;
}

.cwp-sp-related-card__date {
    display: block;
    font-size: .68rem;
    color: rgba(255,255,255,.3);
    margin-bottom: .3rem;
}

.cwp-sp-related-card__title {
    margin: 0;
    font-size: .9rem;
    line-height: 1.35;
}

.cwp-sp-related-card__title a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color .2s;
}

.cwp-sp-related-card__title a:hover {
    color: #c8a96e;
}


/* =============================================================================
   10.0 - COMENTARIOS (WOOCOMMERCE OVERRIDE)
   ============================================================================= */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

.comments-title,
.comment-reply-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.3rem;
    color: #ffffff;
    letter-spacing: .04em;
    margin-bottom: 1.5rem;
}

.comment-list .comment {
    padding: 1.25rem;
    background: rgba(14,14,22,.6);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 12px;
    margin-bottom: .75rem;
}

.comment-list .comment-author img {
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
}

.comment-list .comment-author b,
.comment-list .comment-author .fn {
    color: #f0f0f0;
    font-weight: 600;
}

.comment-list .comment-metadata a {
    color: rgba(255,255,255,.35);
    font-size: .75rem;
}

.comment-list .comment-content {
    color: rgba(255,255,255,.55);
    font-size: .9rem;
    line-height: 1.7;
    margin-top: .5rem;
}

.comment-list .reply a {
    color: #c8a96e;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}

.comment-respond {
    margin-top: 2rem;
}

.comment-respond label {
    color: rgba(255,255,255,.5);
    font-size: .82rem;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: .7rem 1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: #f0f0f0;
    font-size: .9rem;
    transition: border-color .2s;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: rgba(200,169,110,.4);
    outline: none;
}

.comment-respond .form-submit input {
    background: linear-gradient(135deg, #c8a96e, #a88c4a) !important;
    color: #0a0a0f !important;
    border: none !important;
    font-weight: 700;
    padding: .7rem 1.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all .25s;
}

.comment-respond .form-submit input:hover {
    background: linear-gradient(135deg, #d4b87a, #b89c5a) !important;
    transform: translateY(-1px);
}


/* =============================================================================
   11.0 - RESPONSIVE
   ============================================================================= */
@media (max-width: 768px) {
    .cwp-sp-hero {
        padding: 7rem 1.5rem 2.5rem;
        min-height: auto;
    }

    .cwp-sp-hero__title {
        font-size: 2rem;
    }

    .cwp-sp-featured {
        padding: 0 1rem;
        margin-top: -1rem;
    }

    .cwp-sp-article {
        padding: 0 1rem 3rem;
    }

    .cwp-sp-nav {
        grid-template-columns: 1fr;
    }

    .cwp-sp-nav__item--next {
        text-align: left;
    }

    .cwp-sp-nav__item--next .cwp-sp-nav__label {
        justify-content: flex-start;
    }

    .cwp-sp-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cwp-sp-author-box__link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cwp-sp-hero__meta {
        font-size: .7rem;
        gap: .5rem;
    }

    .cwp-sp-hero__divider {
        display: none;
    }

    .cwp-sp-hero__author,
    .cwp-sp-hero__date,
    .cwp-sp-hero__reading {
        flex-wrap: wrap;
        justify-content: center;
    }
}
