/*
Theme Name: Hentai En Spanish Theme
Theme URI: https://hentaienspanish.com
Description: Tema optimizado Hentai/JAV. Diseño Tube Clean / Dark Neon.
Version: 1.0 - HENTAI EDITION
Template: hello-elementor
*/

/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
:root {
    --primary-color: #ff3399; 
    --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, 51, 153, 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;
}

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 (VIDEOS)
   ========================================= */
#first-videos-grid, #main-grid, #tag-grid, #search-grid, #category-grid, .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: var(--border-radius);
    overflow: hidden; 
    position: relative; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column; border: 1px solid #222;
}

.grid-item:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--neon-shadow); 
}

.grid-item-thumb {
    position: relative; 
    aspect-ratio: 16 / 9; 
    background: #000;
}

.grid-item-thumb img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: 0.3s;
}

.grid-item:hover .grid-item-thumb img { opacity: 1; }

.badge-duration, .badge-quality {
    position: absolute; 
    bottom: 8px; 
    padding: 3px 6px; 
    font-size: 11px; 
    font-weight: bold; 
    border-radius: 4px; 
    color: #fff;
}

.badge-duration { right: 8px; background: rgba(0,0,0,0.8); }
.badge-quality { left: 8px; background: var(--primary-color); }

.grid-item-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}

.grid-item:hover .grid-item-overlay { opacity: 1; }

.grid-item-content { padding: 12px; }
.grid-item-title {
    font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 8px 0;
    line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grid-item-meta-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }

/* =========================================
   3. FIX ELEMENTOR OVERLAYS Y MENÚS
   ========================================= */
body.home .elementor-element-header {
    position: relative !important; 
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

body.home .elementor-menu-toggle,
body.home .elementor-nav-menu--dropdown {
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

body.home > div[style*="z-index: 2147483647"]:empty, 
body.home > div[style*="opacity: 0"]:empty {
    display: none !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}
