/*
Theme Name: Porno En Spanish Theme (Final Unified)
Theme URI: https://pornoenspanish.es
Description: Tema optimizado para rendimiento y móvil. Diseño profesional.
Version: 18.0 – Mejoras profesionales y mobile first
Template: hello-elementor
*/

/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
:root {
    --primary-color: #ff69b4; 
    --primary-hover: #ff1493;
    --bg-dark: #0d0d0d; 
    --bg-card: #161616;
    --text-light: #ffffff; 
    --text-dim: #b0b0b0;
    --border-radius: 8px;
    --neon-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

html, body {
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
    font-family: -apple-system, system-ui, sans-serif;
    margin: 0; padding: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%; /* evita zoom automático en móvil */
}

a { color: var(--primary-color); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
* { box-sizing: border-box; }

.container, .content-wrapper, .site-main {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px;
    background-color: transparent !important;
}

/* =========================================
   2. GRILLA Y TARJETAS
   ========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px; 
    margin: 30px 0 50px;
}

.grid-item {
    background-color: var(--bg-card);
    border-radius: 12px; /* ligero redondeo extra */
    overflow: hidden; 
    position: relative; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column;
    border: 1px solid #222;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.grid-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6); 
    border-color: var(--primary-color);
    z-index: 2;
}

.grid-item-thumbnail { 
    position: relative; 
    width: 100%; 
    padding-top: 56.25%;
    overflow: hidden; 
    background: #000;
}

.grid-item-image { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease; 
}
.grid-item:hover .grid-item-image { transform: scale(1.1); }

/* Badges */
.badge-quality {
    position: absolute; top: 8px; right: 8px;
    background: var(--primary-color); color: #000;
    font-size: 10px; font-weight: 900; padding: 3px 6px;
    border-radius: 4px; z-index: 5; box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.subtitle-badge {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.85); color: #fff;
    font-size: 10px; padding: 3px 6px; border-radius: 4px;
    border-left: 3px solid var(--primary-color); z-index: 5; font-weight: bold;
}

.grid-item-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4); opacity: 0; transition: 0.3s; z-index: 4;
}
.grid-item:hover .grid-item-overlay { opacity: 1; }

/* Info Video */
.grid-item-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; background: var(--bg-card); }

.grid-item-title {
    color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.3s;
}
.grid-item:hover .grid-item-title { color: var(--primary-color); }

.grid-item-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #aaa;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #2a2a2a;
}

/* =========================================
   3. ESTILOS SINGLE / PAGE (Unificados)
   ========================================= */
.single-container-main, .page-container-main,
.category-container-main, .tag-container-main, .search-container-main {
    max-width: 1100px;
    width: 95%;
    margin: 30px auto;
    padding: 1rem 0.75rem 3rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

article.single-content, .page-content,
.single-video-article, .page-video-article {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #222;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.entry-header .entry-title,
.entry-title-video {
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.entry-header .highlight { color: var(--primary-color); }

.entry-content,
.entry-content-video {
    font-size: 0.99rem;
    line-height: 1.6;
    color: #e5e7eb;
    width: 100%;
}

/* Videos Responsivos */
.entry-content iframe:not(.advanced-ads iframe):not(.ad-container-clean iframe), 
.entry-content video,
.entry-content-video iframe,
.entry-content-video video {
    max-width: 100% !important; 
    margin: 20px auto !important; 
    display: block !important;
    aspect-ratio: 16/9;
    height: auto !important;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    background: #000;
}

/* Doodstream */
iframe[src*="dood"] {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Navegación entre posts */
.post-navigation-premium {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    margin: 1.8rem 0 1.1rem;
}

.nav-btn-premium {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.6rem;
    background: radial-gradient(circle at top left, #111111, #000000);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid #27272a;
    transition: all 0.25s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.06em;
}
.nav-btn-premium:hover {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border-color: #ff69b4;
    transform: translateY(-1px);
    box-shadow: 0 10px 40px rgba(255,105,180,0.45);
}
.nav-btn-empty { flex: 1; }
.nav-icon { width: 18px; height: 18px; fill: currentColor; }

/* Reporte */
.report-video-container {
    text-align: center;
    margin: 1.5rem auto;
    max-width: 520px;
    padding: 1rem 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 14px;
    border-top: 1px solid #111111;
    border-bottom: 1px solid #111111;
}
.btn-report-trigger, .report-send-btn {
    background: transparent;
    border: 1px solid #ff4757;
    color: #ffb3bd;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-report-trigger:hover, .report-send-btn:hover {
    background: #ff4757;
    color: #000;
}
.report-form-box { display: none; margin-top: 0.8rem; }
.report-select {
    background: #111827;
    color: #f9fafb;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #27272a;
    font-size: 0.8rem;
}
.report-send-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* =========================================
   4. NAVEGACIÓN Y PAGINACIÓN
   ========================================= */
.pagination {
    display: flex !important;
    justify-content: center !important;
    margin: 50px 0;
    gap: 10px;
    padding: 0 !important;
    list-style: none !important;
}
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #222;
    color: #fff;
    border: 1px solid #333;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.pagination .current, .pagination a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

/* Cabeceras Neon */
.latest-videos-header h2, .category-title, .tag-title, .search-results-title,
.section-title, .seo-title {
    text-align: center;
    color: var(--primary-color);
    margin: 40px 0 10px;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: var(--neon-shadow);
}
.neon-underline {
    height: 3px;
    width: 80px;
    background: var(--primary-color);
    margin: 0 auto 30px; 
    box-shadow: 0 0 12px rgba(255, 20, 147, 0.6), 0 0 20px rgba(255, 105, 180, 0.3);
}

/* =========================================
   5. PUBLICIDAD (ADVANCED ADS)
   ========================================= */
.ad-container-clean, .native-ad-fix {
    text-align: center !important;
    margin: 18px auto !important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
    overflow: visible !important;
}
.ad-container-clean > div, .native-ad-fix > div {
    display: block !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
}
.ad-container-clean iframe, .native-ad-fix iframe, .advanced-ads iframe {
    display: block !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    min-height: unset !important;
    margin: 0 auto !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.ad-container-clean img, .native-ad-fix img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
}
.ad-label {
    background: #1a1a1a;
    display: inline-block !important;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 9px;
    color: #555;
    margin-bottom: 10px;
    border: 1px solid #222;
}
#adcash-slider-container { z-index: 9999 !important; margin-bottom: 10px; }
.ad-container-first { margin-top: 20px; }
.ad-container-middle { margin-bottom: 30px; clear: both; }
.ad-container-last { margin-top: 40px; margin-bottom: 20px; }
.ad-container-inline { grid-column: 1 / -1; margin: 40px 0; padding: 20px 0; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.ad-top-global, .ad-top-page, .ad-bottom-page, .ad-native-bottom { margin: 18px auto !important; }

/* =========================================
   6. FOOTER
   ========================================= */
.site-footer {
    background-color: #151515;
    color: #fff;
    padding: 50px 0 20px;
    border-top: 2px solid #ff69b4;
    font-size: 14px;
    position: relative;
    z-index: 10;
    margin-top: 50px;
}
.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
    text-align: center;
}
.footer-column h3 {
    color: #ff69b4;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 800;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav ul li { margin-bottom: 8px; }
.footer-nav ul li a { color: #bbb; text-decoration: none; transition: 0.3s; }
.footer-nav ul li a:hover { color: #ff69b4; }
.footer-social { display: flex; justify-content: center; gap: 20px; }
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    border: 1px solid #333;
    transition: background 0.3s;
}
.footer-social a:hover { background: #ff69b4; color: #000; }
.footer-bottom { border-top: 1px solid #222; padding-top: 20px; text-align: center; color: #666; }
.legal-disclaimer p { font-size: 10px; color: #777; max-width: 950px; margin: 0 auto; text-align: center; line-height: 1.5; }
.site-footer .legal-disclaimer { margin-top: 15px; }
.site-footer .warning-text { color: #ff69b4; }
.site-footer .footer-description p { font-size: 0.85rem; line-height: 1.5; color: #bbb; }
.site-footer .footer-bottom p { font-size: 0.8rem; color: #888; }

/* =========================================
   7. VARIOS Y FIXES
   ========================================= */
#backToTop { display: none !important; }

.grid-item-thumbnail, 
.grid-item-image,
article.grid-item {
    background-color: #111111 !important; 
    border-color: #222 !important;        
}
a.grid-item-link {
    background-color: transparent !important;
    color: inherit !important;
}
.grid-item-overlay svg {
    filter: drop-shadow(0 0 8px rgba(255, 20, 147, 0.8));
}
.exo-native-widget-outer-container {
    margin-top: 10px !important;
}

/* Fix menú móvil */
header.site-header,
.elementor-location-header,
.elementor-section-wrap > section.elementor-element.elementor-element-header,
.elementor-menu-toggle {
    position: relative !important;
    z-index: 999999 !important;
}
.elementor-nav-menu--dropdown {
    z-index: 999999 !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}
body.elementor-page { overflow-x: hidden; overflow-y: auto !important; }
body.home header.site-header,
body.home .elementor-location-header,
body.home .elementor-section-wrap > section.elementor-element-header {
    z-index: 999999 !important;
    pointer-events: auto !important;
}
body.home .elementor-menu-toggle,
body.home .elementor-nav-menu--dropdown {
    z-index: 999999 !important;
    pointer-events: auto !important;
}
.elementor-location-header, .elementor-menu-anchor {
    z-index: 999999 !important;
    position: relative !important;
}

/* Caja no resultados */
.no-results-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    margin: 20px 0;
}
.back-home-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(45deg, #ff1493, #ff69b4);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.back-home-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

/* =========================================
   7.1 BLOQUES DE INTERLINKING (Explora categorías)
   ========================================= */
.explore-categories {
    text-align: center;
    margin: 25px 0 15px;
}

.explore-categories p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.explore-pill {
    display: inline-block;
    margin: 4px 6px;
    padding: 7px 16px;
    background: rgba(255, 105, 180, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.explore-pill:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

/* =========================================
   8. FRONT-PAGE ELEMENTOS MEJORADOS
   ========================================= */
.main-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* fallback solid color por si gradient no funciona */
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    /* leemos el texto desde el DOM incluso si es invisible */
}
.front-page-intro {
    max-width: 850px;
    margin: 10px auto 30px;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}
.section-title { font-size: 2rem; }
.front-page-seo {
    max-width: 900px;
    margin: 50px auto;
    text-align: center;
    padding: 0 15px;
}
.seo-title { font-size: 1.8rem; margin-bottom: 20px; }
.seo-text { color: #aaa; font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; }

.footer-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0 20px;
}
.cat-pill {
    background: rgba(255, 105, 180, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cat-pill:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

/* Span "Sub" en títulos */
.category-title .cat-sub,
.tag-title .cat-sub {
    color: #fff;
    font-size: 0.7em;
}

/* =========================================
   9. RESPONSIVE – OPTIMIZACIÓN MÓVIL EXTREMA
   ========================================= */
@media (max-width: 768px) {
    body, p, li, .entry-content, .grid-item-meta-info {
        font-size: 16px !important; /* ligeramente mayor para legibilidad */
        line-height: 1.5 !important;
    }
    .main-page-title {
        font-size: 1.8rem !important;
        letter-spacing: 0.5px;
    }
    .tag-title, .category-title, .search-results-title,
    .latest-videos-header h2, .section-title {
        font-size: 1.7rem !important;
        padding: 0 10px !important;
        word-break: break-word;
    }
    .grid-container {
        gap: 14px !important;
        margin: 20px 0 !important;
        grid-template-columns: 1fr !important;
    }
    .grid-item-title {
        font-size: 15px !important;
        padding: 12px 10px 16px 10px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow: visible !important;
        display: block !important;
    }
    .pagination a, .pagination span,
    .btn-report-trigger, .report-send-btn,
    .nav-btn-premium, .search-button,
    .elementor-menu-toggle {
        min-height: 46px !important;
        min-width: 46px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
    }
    .content-wrapper, .tag-container-main, .category-container-main,
    .search-container-main, .single-container-main, .page-container-main {
        max-width: 100% !important;
        padding: 0 12px !important;
        overflow-x: hidden;
    }
    .ad-container-clean, .native-ad-fix {
        margin: 15px auto !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ad-container-clean iframe, .native-ad-fix iframe {
        max-width: 100% !important;
        margin: 0 auto;
        display: block;
    }
    .pagination {
        gap: 8px !important;
        flex-wrap: wrap;
        margin: 30px 0 !important;
    }
    .pagination .page-numbers {
        min-width: 46px !important;
        min-height: 46px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
    }
    .nav-btn-premium { font-size: 14px !important; padding: 12px 14px !important; text-align: center; }
    .report-video-container { padding: 12px !important; margin: 20px auto !important; }
    .report-select, .report-send-btn { width: 100% !important; padding: 12px !important; }
    .report-send-btn { margin-left: 0 !important; }
    .video-breadcrumbs { font-size: 13px !important; margin: 15px 0 !important; flex-wrap: wrap; text-align: center; }
    .entry-title-video { font-size: 1.4rem !important; text-align: center; }
    .category-description, .tag-seo-description, .search-seo-description {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .footer-social a { width: 48px !important; height: 48px !important; }
    .legal-disclaimer p { font-size: 11px !important; }
    input[type="text"], input[type="search"], select, textarea { font-size: 16px !important; }
    .grid-item-thumbnail { aspect-ratio: 16 / 9; display: flex; overflow: hidden; }
    .page-video-article iframe, .page-video-article video {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 240px !important;
        margin: 0.5rem auto 1rem !important;
        border-radius: 10px !important;
        background: #000 !important;
    }
    .site-header { padding-bottom: 10px; }
    .ad-container { margin: 15px auto 25px !important; min-height: 110px; }
    .tag-title, .cat-title { font-size: 1.5rem !important; }
    .section-title { font-size: 1.5rem; }
    .seo-title { font-size: 1.3rem; }
    .front-page-intro { font-size: 0.95rem; }
    .cat-pill, .explore-pill { padding: 7px 16px; font-size: 0.8rem; margin: 4px; }
}

@media (min-width: 600px) and (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .grid-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    .nav-btn-premium:active, .pagination a:active,
    .btn-report-trigger:active { opacity: 0.7; transform: scale(0.96); }
}