/*
Theme Name: VFX Portfolio Twenty Twenty-Five
Theme URI: https://vfx-sup.com
Description: Tema hijo de Twenty Twenty-Five optimizado para portfolio de VFX supervisor. Diseño minimalista con galería de proyectos y estética cinematográfica.
Author: MEI
Author URI: https://vfx-sup.com
Template: twentytwentyfive
Version: 1.0.18
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vfx-portfolio-ttf
Tags: portfolio, dark, minimal, video, gallery
*/

/* ==========================================================================
   Variables de Configuración - PERSONALIZAR AQUÍ
   ========================================================================== */

:root {
    --color-bg-dark: #000000;
    --color-bg-darker: #000000;
    --color-text-light: #e0e0e0;
    --color-accent: #00d4ff;
    --color-accent-hover: #00b8e6;
    --spacing-unit: 1.5rem;
    --sidebar-width: 200px;

    /* === CONTROLES DE FLECHA === */
    --arrow-size-desktop: 8px;
    --arrow-weight-desktop: 2px;
    --arrow-padding-desktop: 10px;

    --arrow-size-mobile: 10px;
    --arrow-weight-mobile: 3px;
    --arrow-padding-mobile: 14px;
}

/* ==========================================================================
   Estilos Base
   ========================================================================== */

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.site-header,
.wp-block-template-part[data-area="header"] {
    display: none !important;
}

/* ==========================================================================
   SIDEBARS DESKTOP
   ========================================================================== */

.vfx-sidebar {
    position: fixed;
    top: 0;
    width: 200px;
    height: 100vh;
    background: #000000;
    padding: 2rem 1rem;
    overflow-y: auto;
    z-index: 999;
    font-size: 0.85rem;
    color: #e0e0e0;
}

.vfx-sidebar-left {
    left: 0;
    border-right: 1px solid rgba(0, 212, 255, 0.2);
}

.vfx-sidebar-right {
    right: 0;
    border-left: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
}

.vfx-sidebar::-webkit-scrollbar {
    width: 4px;
}

.vfx-sidebar::-webkit-scrollbar-track {
    background: #000000;
}

.vfx-sidebar::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 2px;
}

.vfx-sidebar .sidebar-widget {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.vfx-sidebar .sidebar-widget:last-child {
    border-bottom: none;
}

.vfx-sidebar .widget-title {
    font-size: 0.75rem;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 700;
}

.vfx-sidebar a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.vfx-sidebar a:hover {
    color: #00d4ff;
}

/* Menú de navegación en sidebar */
.vfx-sidebar .widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vfx-sidebar .widget_nav_menu li {
    margin-bottom: 0.5rem;
    position: relative;
}

.vfx-sidebar .widget_nav_menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.vfx-sidebar .widget_nav_menu a:hover {
    background: rgba(0, 212, 255, 0.1);
    padding-left: 1rem;
}

/* === DIVISORES DE MENÚ (Desktop Sidebar) === */

/* Clase CSS: menu-divider-line - Línea sólida */
.vfx-sidebar .widget_nav_menu .menu-divider-line {
    height: 1px;
    background: rgba(0, 212, 255, 0.3);
    margin: 1rem 0;
}

/* Clase CSS: menu-divider-dotted - Línea punteada */
.vfx-sidebar .widget_nav_menu .menu-divider-dotted {
    height: 0;
    border-bottom: 1px dotted rgba(0, 212, 255, 0.4);
    margin: 1rem 0;
}

/* Clase CSS: menu-divider-space - Espacio vacío */
.vfx-sidebar .widget_nav_menu .menu-divider-space {
    height: 1.5rem;
}

/* Clase CSS: menu-divider-inset - Línea con sombra (bajo relieve) */
.vfx-sidebar .widget_nav_menu .menu-divider-inset {
    height: 1px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 0 rgba(0, 212, 255, 0.1);
    margin: 1rem 0;
}

/* Clase CSS: menu-divider-gradient - Gradiente que se desvanece */
.vfx-sidebar .widget_nav_menu .menu-divider-gradient {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 212, 255, 0.4), transparent);
    margin: 1rem 0;
}

/* Ocultar link de divisores */
.vfx-sidebar .widget_nav_menu .menu-divider-line > a,
.vfx-sidebar .widget_nav_menu .menu-divider-dotted > a,
.vfx-sidebar .widget_nav_menu .menu-divider-space > a,
.vfx-sidebar .widget_nav_menu .menu-divider-inset > a,
.vfx-sidebar .widget_nav_menu .menu-divider-gradient > a {
    display: none;
}

/* Submenús en sidebar desktop */
.vfx-sidebar .widget_nav_menu .sub-menu {
    list-style: none;
    padding-left: 0;
    margin-top: 0.3rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.vfx-sidebar .widget_nav_menu .menu-item-has-children.open > .sub-menu {
    max-height: 500px;
}

.vfx-sidebar .widget_nav_menu .sub-menu li {
    margin-bottom: 0.3rem;
}

.vfx-sidebar .widget_nav_menu .sub-menu a {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem 0.4rem 1.5rem;
    background: rgba(0, 212, 255, 0.02);
    border-left: 2px solid rgba(0, 212, 255, 0.2);
}

.vfx-sidebar .widget_nav_menu .sub-menu a:hover {
    padding-left: 2rem;
    background: rgba(0, 212, 255, 0.08);
}

/* Flecha desktop */
.vfx-sidebar .widget_nav_menu .menu-item-has-children > a {
    padding-right: calc(var(--arrow-size-desktop) + var(--arrow-padding-desktop) * 2 + 10px);
}

.vfx-sidebar .widget_nav_menu .menu-item-has-children > .submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: calc(var(--arrow-size-desktop) + var(--arrow-padding-desktop) * 2);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: var(--arrow-padding-desktop);
    transition: background 0.3s ease;
    z-index: 10;
}

.vfx-sidebar .widget_nav_menu .menu-item-has-children > .submenu-toggle:hover {
    background: rgba(0, 212, 255, 0.15);
    border-radius: 4px;
}

.vfx-sidebar .widget_nav_menu .menu-item-has-children > .submenu-toggle::before {
    content: '';
    display: block;
    width: var(--arrow-size-desktop);
    height: var(--arrow-size-desktop);
    border-right: var(--arrow-weight-desktop) solid var(--color-accent);
    border-bottom: var(--arrow-weight-desktop) solid var(--color-accent);
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.vfx-sidebar .widget_nav_menu .menu-item-has-children.open > .submenu-toggle::before {
    transform: rotate(45deg);
}

.vfx-sidebar .widget_text p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 0.85rem;
}

.vfx-sidebar .widget_text strong {
    color: #00d4ff;
    font-size: 0.7rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   NAVEGACIÓN MÓVIL
   ========================================================================== */

.vfx-mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: var(--color-accent);
    color: #000000;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
    transition: transform 0.3s ease;
}

.vfx-mobile-toggle:active {
    transform: scale(0.95);
}

.vfx-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.vfx-mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.vfx-mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.vfx-mobile-menu-close:hover {
    background: var(--color-accent);
    color: #000000;
}

.vfx-mobile-menu-content {
    padding: 5rem 2rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.vfx-mobile-menu-content .widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.vfx-mobile-menu-content .widget_nav_menu li {
    margin-bottom: 0.5rem;
    position: relative;
}

.vfx-mobile-menu-content .widget_nav_menu a {
    display: block;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid transparent;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.vfx-mobile-menu-content .widget_nav_menu a:hover {
    background: rgba(0, 212, 255, 0.15);
    border-left-color: var(--color-accent);
    padding-left: 1.5rem;
}

/* === DIVISORES DE MENÚ (Móvil) === */
.vfx-mobile-menu-content .widget_nav_menu .menu-divider-line {
    height: 1px;
    background: rgba(0, 212, 255, 0.3);
    margin: 1.5rem 0;
}

.vfx-mobile-menu-content .widget_nav_menu .menu-divider-dotted {
    height: 0;
    border-bottom: 1px dotted rgba(0, 212, 255, 0.4);
    margin: 1.5rem 0;
}

.vfx-mobile-menu-content .widget_nav_menu .menu-divider-space {
    height: 2rem;
}

.vfx-mobile-menu-content .widget_nav_menu .menu-divider-inset {
    height: 1px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 0 rgba(0, 212, 255, 0.1);
    margin: 1.5rem 0;
}

.vfx-mobile-menu-content .widget_nav_menu .menu-divider-gradient {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 212, 255, 0.4), transparent);
    margin: 1.5rem 0;
}

.vfx-mobile-menu-content .widget_nav_menu .menu-divider-line > a,
.vfx-mobile-menu-content .widget_nav_menu .menu-divider-dotted > a,
.vfx-mobile-menu-content .widget_nav_menu .menu-divider-space > a,
.vfx-mobile-menu-content .widget_nav_menu .menu-divider-inset > a,
.vfx-mobile-menu-content .widget_nav_menu .menu-divider-gradient > a {
    display: none;
}

.vfx-mobile-menu-content .widget_nav_menu .sub-menu {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.vfx-mobile-menu-content .widget_nav_menu .menu-item-has-children.open > .sub-menu {
    max-height: 800px;
}

.vfx-mobile-menu-content .widget_nav_menu .sub-menu li {
    margin-bottom: 0.3rem;
}

.vfx-mobile-menu-content .widget_nav_menu .sub-menu a {
    font-size: 0.95rem;
    padding: 0.75rem 1rem 0.75rem 2rem;
    background: rgba(0, 212, 255, 0.02);
    border-left: 2px solid rgba(0, 212, 255, 0.3);
}

.vfx-mobile-menu-content .widget_nav_menu .sub-menu a:hover {
    padding-left: 2.5rem;
    background: rgba(0, 212, 255, 0.1);
}

/* Flecha móvil */
.vfx-mobile-menu-content .widget_nav_menu .menu-item-has-children > a {
    padding-right: calc(var(--arrow-size-mobile) + var(--arrow-padding-mobile) * 2 + 10px);
}

.vfx-mobile-menu-content .widget_nav_menu .menu-item-has-children > .submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: calc(var(--arrow-size-mobile) + var(--arrow-padding-mobile) * 2);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: var(--arrow-padding-mobile);
    transition: background 0.3s ease;
    z-index: 10;
}

.vfx-mobile-menu-content .widget_nav_menu .menu-item-has-children > .submenu-toggle:hover {
    background: rgba(0, 212, 255, 0.15);
    border-radius: 4px;
}

.vfx-mobile-menu-content .widget_nav_menu .menu-item-has-children > .submenu-toggle::before {
    content: '';
    display: block;
    width: var(--arrow-size-mobile);
    height: var(--arrow-size-mobile);
    border-right: var(--arrow-weight-mobile) solid var(--color-accent);
    border-bottom: var(--arrow-weight-mobile) solid var(--color-accent);
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.vfx-mobile-menu-content .widget_nav_menu .menu-item-has-children.open > .submenu-toggle::before {
    transform: rotate(45deg);
}

/* ==========================================================================
   Portfolio Gallery
   ========================================================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
    padding: 2rem 1rem;
}

.portfolio-hover-item {
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.portfolio-hover-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    z-index: 10;
}

.portfolio-item-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.portfolio-item-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.portfolio-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-hover-item:hover .portfolio-item-image {
    transform: scale(1.05);
}

.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 1.5rem 1rem;
}

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

.portfolio-item-overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    width: 100%;
}

.portfolio-hover-item:hover .portfolio-item-overlay-content {
    transform: translateY(0);
}

.portfolio-item-title-hover {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.portfolio-item-meta-hover {
    font-size: 0.8rem;
    color: #00d4ff;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Video Embeds
   ========================================================================== */

.video-wrapper,
.wp-block-embed,
.wp-block-embed-youtube,
.wp-block-embed-vimeo,
.wp-block-embed-wistia {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 8px;
    width: 100%;
}

.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed,
.wp-block-embed iframe,
.wp-block-embed object,
.wp-block-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.entry-content .video-wrapper,
.entry-content .wp-block-embed {
    max-width: 100%;
    width: 100%;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.portfolio-gallery-slider .gallery-track::-webkit-scrollbar {
    height: 8px;
}

.portfolio-gallery-slider .gallery-track::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 4px;
}

.portfolio-gallery-slider .gallery-track::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-bg-darker);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.wp-block-template-part[data-area="footer"] {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 1025px) {
    .vfx-sidebar {
        display: flex;
        flex-direction: column;
    }

    .vfx-mobile-toggle,
    .vfx-mobile-menu {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .vfx-sidebar {
        display: none !important;
    }

    .vfx-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vfx-mobile-menu {
        display: block;
    }

    .wp-site-blocks {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .portfolio-grid {
        padding: 5rem 1rem 2rem;
    }
}

@media (max-width: 768px) {
    .portfolio-grid.mobile-2-cols {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .portfolio-grid.mobile-2-cols .portfolio-item-image {
        height: 150px;
    }

    .portfolio-grid.mobile-3-cols {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .portfolio-grid.mobile-3-cols .portfolio-item-image {
        height: 120px;
    }
}

@media (max-width: 360px) {
    .portfolio-grid:not(.mobile-2-cols):not(.mobile-3-cols) .portfolio-item-image {
        height: 180px;
    }
}