﻿/*
Theme Name: Twenty Twenty Child Portfolio
Template: twentytwenty
Version: 1.0.0
Description: Tema hijo Glassfy con estética técnica cibernética, animaciones de barrido y soporte WooCommerce integrado.
*/


/* ***** ***** ***** ***** */
/* Main CSS */
/* ***** ***** ***** ***** */

/* CSS Reset & Custom CSS Variables matching Tailwind Config */
:root {
    --primary-color: #b60059;
    --secondary-color: #006970;
    --background-color: #fcf9f8;
    --on-surface: #1c1b1b;
    --on-surface-variant: #5c3f46;
    --deep-charcoal: #121212;
    --surface-container-low: #f6f3f2;
    --outline: #906e76;
    --tertiary-container: #008820;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ***** ***** ***** ***** */
/* Custom Classes */
/* ***** ***** ***** ***** */

/* Custom Core Utilities (Backup & Enhanced Layering) */
.glass-blur {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.tech-grid-bg {
    background-image: linear-gradient(to right, rgba(0, 240, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.glow-primary:hover {
    box-shadow: 0 0 20px rgba(182, 0, 89, 0.2);
}

/* Static Component Structural Styles */
.page-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
}

.scanline {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(182, 0, 89, 0.3), transparent);
    position: absolute;
    top: 0;
    left: 0;
    animation: scan 4s linear infinite;
    pointer-events: none;
    display: none;
}

input:focus + .scanline {
    display: block;
}

/* Base Custom Animation Rules */
@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-reveal-1 {
    opacity: 0;
    animation: reveal 0.8s ease-out 0.1s forwards;
}

.animate-reveal-2 {
    opacity: 0;
    animation: reveal 0.8s ease-out 0.3s forwards;
}

.animate-slide-left {
    opacity: 0;
    animation: slideLeft 0.8s ease-out 0.2s forwards;
}

/* Intersection Observer Transitions */
.reveal-lift {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-lift.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ***** ***** ***** ***** */
/* woocommerce */
/* ***** ***** ***** ***** */

/* WooCommerce Default Template Elements Sanitizer overrides */
.woocommerce-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    list-style: none;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span.current {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 105, 112, 0.2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--on-surface);
}

.woocommerce-pagination ul.page-numbers li a:hover {
    box-shadow: 0 0 15px rgba(182, 0, 89, 0.4);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.woocommerce-pagination ul.page-numbers li span.current {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(182, 0, 89, 0.6);
}

/* Fallback Framework Sidebar Form Elements Styling */
.widget select, 
.widget input[type="text"] {
    width: 100%;
    background: transparent;
    border: 1px solid var(--outline);
    padding: 10px;
    font-family: 'Inter', sans-serif;
    color: var(--on-surface);
    border-radius: 0;
    outline: none;
}

.widget select:focus,
.widget input[type="text"]:focus {
    border-color: var(--primary-color);
}

/* Core Grid Architecture Centering Overrides */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    /* gap: 2rem !important; */
    gap: 4rem !important;
    justify-content: center !important;
    justify-items: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

ul.products::before,
ul.products::after {
    display: none !important; /* Disables ancient clearfix alignment bugs */
}

ul.products li.product {
    width: 100% !important;
    max-width: 320px;
    margin: 0 !important;
}

/* ***** ***** ***** ***** */
/* Contact Form Styles */
/* ***** ***** ***** ***** */

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.scanline-overlay {
    position: relative;
    overflow: hidden;
}

.scanline-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.05), transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 10;
}

.glow-primary:hover {
    box-shadow: 0 0 20px rgba(182, 0, 89, 0.2);
}

.tech-grid-bg {
    background-image: 
        linear-gradient(to right, rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.reveal-element {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

input:focus + label, textarea:focus + label {
    color: #b60059;
}

/* ************************************************************************ */
/* Home Page video Syles */
/* ************************************************************************ */

.hero-video {
    transition:
        opacity 1.5s ease,
        transform 8s ease;
}

.hero-video.active{
    opacity:1;
    transform:scale(1.05);
}

.hero-video.inactive{
    opacity:0;
    transform:scale(1);
}

/* ************************************************************************ */
/* Brand Pages Syles */
/* ************************************************************************ */

.glow-primary:hover {
    box-shadow: 0 0 20px 2px rgba(182, 0, 89, 0.4);
}

.tech-grid-overlay {
    background-image: 
        linear-gradient(to right, rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* .scanline {
    width: 100%;
    height: 100px;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(182, 0, 89, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 8s linear infinite;
} */

@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -100px; }
}

@keyframes glitch-scale {
    0% { transform: scale(1.1); opacity: 0; text-shadow: 3px 0 #b60059, -3px 0 #00eefc; filter: blur(4px); }
    10% { transform: scale(1.05); opacity: 0.8; text-shadow: -3px 0 #b60059, 3px 0 #00eefc; }
    15% { transform: scale(1.0); opacity: 1; text-shadow: none; filter: blur(0); }
    20% { transform: translate(2px, 2px); }
    25% { transform: translate(-2px, -2px); }
    30% { transform: translate(0, 0); }
    100% { transform: scale(1); opacity: 1; text-shadow: none; }
}

.glitch-entrance {
    animation: glitch-scale 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
}

.tech-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.tech-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tech-reveal::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #b60059;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    pointer-events: none;
    z-index: 10;
}

.tech-reveal.revealed::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Specific Page Cursor Modification override */
.page-template-BrandTemplate { cursor: none !important; background-color: transparent; }


#custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1px solid #b60059;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
    display: flex;
    align-items: center;
    justify-content: center;
}

#custom-cursor::after {
    content: '';
    width: 4px; height: 4px;
    background-color: #00eefc;
    border-radius: 50%;
    transition: transform 0.2s;
}

#custom-cursor.hovering {
    width: 64px; height: 64px;
    border-color: #00eefc;
    background-color: rgba(0, 238, 252, 0.1);
    backdrop-filter: blur(2px);
}

#custom-cursor.hovering::after {
    transform: scale(0);
}

/* 
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
} 
*/

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    margin: 0;
}

/* 
***** ***** ***** *****
Mobile Menu
***** ***** ***** *****
*/

#mobile-menu a {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--on-surface);
    transition: color 0.3s ease;
}

#mobile-menu a:hover {
    color: var(--primary-color);
}

/* 
***** ***** ***** *****
Remove woocommerce siddebar
***** ***** ***** *****
*/

/* Ocultar el contenedor estructural de la barra lateral de WooCommerce en Twenty Twenty */
.woocommerce-sidebar,
#sidebar-shop,
.sidebar-shop-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Forzar que el grid de productos use el 100% del ancho si se veía movido */
.site-content .sidebar {
    display: none !important;
}

/* .woocommerce.content-area {
width: 100% !important;
max-width: 100% !important;
float: none !important;
};

/* Oculta los bloques de filtros superiores de WooCommerce */
/*.woocommerce-filter-block, 
.wc-block-product-filters,
.wc-block-components-product-filters {
    display: none !important;
}; */

/* Elimina por completo cualquier elemento aside dentro del ecosistema de la tienda */
.woocommerce-page aside,
.post-type-archive-product aside,
.tax-product_cat aside,
.tax-product_tag aside {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
