/* ══════════════════════════════════════════════════
   DETALLE DE NOTICIAS Y EVENTOS — Ultra Premium Futuristic
   ══════════════════════════════════════════════════ */

:root {
    --det-red: #c0392b;
    --det-red-glow: rgba(192, 57, 43, 0.4);
    --det-dark: #0f172a;
    --det-text: #1e293b;
    --det-slate: #475569;
    --det-bg: #f8fafc;
    --det-border: rgba(0, 0, 0, 0.08);
    --futuro-accent: #c0392b;
}

body {
    background-color: var(--det-bg);
}

.detalle-page-wrapper {
    position: relative;
    background: var(--det-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
.detalle-page-wrapper::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.05) 1px, transparent 0);
    background-size: 32px 32px;
    z-index: 0;
    pointer-events: none;
}

/* ── HEADER FUTURISTA (Portada) ── */
.detalle-hero-clean {
    position: relative;
    padding: 80px 0 40px;
    background: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid var(--det-border);
    z-index: 2;
}

/* Decorative Mesh Gradient for the Hero */
.detalle-hero-clean::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(192, 57, 43, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    animation: meshFlow 15s infinite alternate;
}

@keyframes meshFlow {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(10%, 5%) rotate(5deg);
    }
}

.detalle-hero-clean .container {
    position: relative;
    z-index: 10;
}

.detalle-badge-wrap {
    margin-bottom: 20px;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.detalle-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: var(--det-red);
    border: none;
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 25px rgba(192, 57, 43, 0.3);
}

.detalle-tag.evento {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.detalle-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 950;
    line-height: 1;
    color: var(--det-dark);
    max-width: 1000px;
    margin: 0 auto 20px;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    padding-bottom: 20px;
}

.detalle-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: var(--det-red);
    border-radius: 3px;
}

.detalle-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    animation: fadeInUp 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    margin-top: 25px;
}

.detalle-meta span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--det-slate);
    font-weight: 700;
    background: rgba(192, 57, 43, 0.05);
    padding: 8px 18px;
    border-radius: 12px;
    border: 1px solid rgba(192, 57, 43, 0.1);
}

.detalle-meta i {
    color: var(--det-red);
    font-size: 1.2rem;
}

/* ── CONTENIDO & MARCO FUTURISTA ── */
.detalle-container {
    max-width: 1200px;
    margin: -30px auto 100px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.detalle-main-card {
    background: #ffffff;
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--det-border);
}

/* EL MARCO FUTURISTA */
.detalle-img-framing {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.02);
}

/* Futuristic Borders (Corners) */
.detalle-img-framing::before,
.detalle-img-framing::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--futuro-accent);
    z-index: 5;
    pointer-events: none;
    transition: all 0.5s ease;
}

.detalle-img-framing::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: 30px 0 0 0;
}

.detalle-img-framing::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 0 0 30px 0;
}

.detalle-img-framing:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(192, 57, 43, 0.1);
}

.detalle-img-framing:hover::before {
    top: -5px;
    left: -5px;
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px var(--det-red-glow));
}

.detalle-img-framing:hover::after {
    bottom: -5px;
    right: -5px;
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px var(--det-red-glow));
}

.detalle-main-image {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 5;
    border: 6px solid #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

/* ── EFECTO BLUR BACKGROUND ── */
.detalle-img-bg-blur {
    position: absolute;
    inset: 10px;
    z-index: 1;
    overflow: hidden;
    filter: blur(15px) brightness(0.9);
    opacity: 0.4;
    pointer-events: none;
    border-radius: 25px;
}

.detalle-img-bg-blur img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    transform: translate(-5%, -5%);
}

/* ── SLIDER / GALERIA ── */
.detalle-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.9);
}

.detalle-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.detalle-slide {
    min-width: 100%;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.detalle-slide img {
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    object-fit: contain;
    position: relative;
    z-index: 2;
    border: 6px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--det-red);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--det-red);
    width: 24px;
    border-radius: 4px;
}

/* ── GRID DE CONTENIDO ── */
.detalle-content-grid {
    display: grid;
    grid-template-columns: 2.8fr 1.2fr;
    gap: 80px;
}

.detalle-summary-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--det-dark);
    margin-bottom: 25px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.detalle-summary-title::before {
    content: '';
    width: 40px;
    height: 4px;
    background: var(--det-red);
    border-radius: 2px;
}

.detalle-body {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--det-text);
}

.detalle-body p {
    margin-bottom: 30px;
}

/* ── SIDEBAR PREMIUM ── */
.detalle-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.share-box {
    background: #f8fafc;
    border: 1px solid var(--det-border);
    border-radius: 28px;
    padding: 35px;
}

.share-box h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--det-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.share-box h4 i {
    color: var(--det-red);
}

.share-buttons-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    color: var(--det-text);
    background: #ffffff;
    border: 1px solid var(--det-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-btn i {
    font-size: 1.4rem;
    color: var(--det-slate);
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--det-dark);
    color: #ffffff;
    transform: translateX(10px);
    border-color: var(--det-dark);
}

.share-btn:hover i {
    color: #ffffff;
    transform: rotate(10deg);
}

.share-btn.fb:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.share-btn.tw:hover {
    background: #000000;
    border-color: #000000;
}

.share-btn.wa:hover {
    background: #25D366;
    border-color: #25D366;
}

.share-btn.copy:hover {
    background: var(--det-red);
    border-color: var(--det-red);
}

.share-btn.success {
    background: #059669 !important;
    color: white !important;
    border-color: #059669 !important;
}

.share-btn.success i {
    color: white !important;
}

/* Event Specific Sidebar - New Light Premium Design */
.event-card-premium {
    background: #ffffff;
    border: 1px solid rgba(192, 57, 43, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    padding: 30px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 40px;
    /* Space from description */
}

.event-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--det-red);
}

.event-card-premium-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.event-card-premium-icon {
    width: 50px;
    height: 50px;
    background: rgba(192, 57, 43, 0.1);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--det-red);
    font-size: 1.4rem;
}

.event-card-premium h4 {
    margin: 0 !important;
    text-align: left !important;
    font-size: 1.1rem !important;
    letter-spacing: 0 !important;
}

.event-card-premium p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--det-slate);
    font-weight: 600;
}

.event-card-info {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--det-text);
    margin-bottom: 25px !important;
}

.btn-sidebar-primary-premium {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 16px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-sidebar-primary-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.3);
    background: #22c35e;
}

.btn-sidebar-primary {
    display: none;
    /* Hide old one */
}

.btn-back-sidebar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: var(--det-red);
    border: none;
    color: #ffffff;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(192, 57, 43, 0.2);
    animation: fadeInUp 0.8s 0.6s both;
    position: relative;
    overflow: hidden;
}

.btn-back-sidebar i {
    transition: transform 0.3s ease;
}

.btn-back-sidebar:hover {
    background: #e74c3c;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(192, 57, 43, 0.4);
}

.btn-back-sidebar:hover i {
    transform: translateX(-5px);
}

.btn-back-sidebar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(25deg);
    transition: 0.5s;
}

.btn-back-sidebar:hover::after {
    left: 100%;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .detalle-content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .detalle-main-card {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .detalle-hero-clean {
        padding: 70px 0 40px;
    }

    .detalle-title {
        font-size: 2.2rem;
    }

    .detalle-main-card {
        padding: 30px 20px;
        border-radius: 30px;
    }

    .detalle-img-framing {
        padding: 8px;
        border-radius: 20px;
    }

    .detalle-img-framing::before,
    .detalle-img-framing::after {
        width: 25px;
        height: 25px;
    }
}