/*
Theme Name: Verrazzo v02
Theme URI: https://verrazzo.com
Author: Verrazzo Team
Description: Modern, minimalist theme with split-screen homepage and clean shop layout.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: verrazzo-v02
*/

/* =================================================================*********
   1. Variables y Reset
   ========================================================================== */

:root {
    /* Colores */
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-background-alt: #f9f9f9;
    --color-primary: #000000;
    --color-accent: #333333;
    --color-border: #e5e5e5;
    --color-white: #ffffff;

    /* Tipografía */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 3rem;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Diseño */
    --container-width: 1400px;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* =================================================================*********
   2. Tipografía
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-xxl);
}

h2 {
    font-size: var(--font-size-xl);
}

h3 {
    font-size: var(--font-size-lg);
}

button,
.button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover,
.button:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

/* =================================================================*********
   3. Diseño y Cabecera
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--color-border);
}

/* Limpiamos el contenedor general para que no interfiera */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    display: block !important; 
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
}

.site-branding {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-navigation ul {
    display: flex;
    gap: var(--spacing-md);
}

.main-navigation a {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.cart-link {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =================================================================*********
   4. Pie de página
   ========================================================================== */
#content {
    padding-top: 100px; /* Ajusta este valor según la altura real de tu menú */
}
.home #content {
    padding-top: 0;
}
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.footer-content p {
    opacity: 0.7;
    font-size: var(--font-size-sm);
}

/* =================================================================*********
   6. Página de inicio de pantalla dividida
   ========================================================================== */

.split-screen-container {
    display: flex;
    height: 95vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.split-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
}

/* Contenedor circular para la imagen de fondo */
.split-bg-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: 55vmin;
    height: 55vmin;
    min-width: 350px;
    min-height: 350px;
    max-width: 550px;
    max-height: 550px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: brightness(0.9);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.split-section:last-child {
    border-right: none;
}

/* Overlay con gradiente elegante */
.split-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

/* Overlay verde al hover */
.split-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(76, 175, 80, 0.15) 0%,
        rgba(56, 142, 60, 0.1) 50%,
        rgba(46, 125, 50, 0.12) 100%
    );
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Efecto de brillo sutil al hover */
.glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.split-section:hover {
    flex: 1.4;
    transform: scale(1.02);
}

.split-section:hover .split-bg-circle {
    filter: brightness(1.05);
}

.split-section:hover::before {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.split-section:hover::after {
    opacity: 1;
}

.split-section:hover .glow-effect {
    opacity: 1;
}

.split-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: var(--spacing-lg);
    opacity: 0.95;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.split-section:hover .split-content {
    opacity: 1;
    transform: translate3d(0, -10px, 0);
}

.split-title {
    font-size: 4.5rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-sm);
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-section:hover .split-title {
    text-shadow: 
        0 6px 30px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.2em;
}

.split-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.08em;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-section:hover .split-subtitle {
    opacity: 1;
    transform: translate3d(0, -5px, 0);
}

.split-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
    backdrop-filter: blur(10px);
}

.split-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.split-button:hover {
    color: var(--color-primary);
    border-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.split-button:hover::before {
    left: 0;
}

.split-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .split-screen-container {
        flex-direction: column;
    }

    .split-section {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .split-section:last-child {
        border-bottom: none;
    }

    .split-section:hover {
        flex: 1;
        transform: none;
    }

    .split-title {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
    }

    .split-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .split-button {
        padding: 1rem 2rem;
        font-size: 0.7rem;
    }
}
