/*
Theme Name: Seba Carvallo SPA
Description: Tema a medida para Seba Carvallo, optimizado SPA y Core Web Vitals.
Author: Antonio Bozo | Global Comunica
Version: 1.0.0
*/

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #d1d5db;
}

html.light-mode {
    --bg-color: #fdf6f7;
    --text-color: #0a0a0a;
    --text-muted: #374151;
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    cursor: none;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.theme-text { color: var(--text-color); transition: color 0.5s ease; }
.theme-text-muted { color: var(--text-muted); transition: color 0.5s ease; }

#scroll-progress {
    position: fixed; top: 0; left: 0; height: 4px;
    background-color: #c93b4a; width: 0;
    z-index: 99999; box-shadow: 0 0 10px rgba(201, 59, 74, 0.8);
    transition: width 0.1s ease-out;
}

.kinetic-title { display: inline-block; cursor: default; }
.wave-char { display: inline-block; transition: color 0.3s ease; }
.kinetic-title:hover .wave-char {
    animation: ocean-wave 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: calc(var(--char-index) * 0.035s);
}

@keyframes ocean-wave {
    0% { transform: translateY(0) scale(1) skewX(0); }
    30% { transform: translateY(-12px) scale(1.05) skewX(-6deg); color: #c93b4a; }
    65% { transform: translateY(4px) scale(0.98) skewX(2deg); }
    100% { transform: translateY(0) scale(1) skewX(0); }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #c93b4a; border-radius: 4px; }

.custom-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(201, 59, 74, 0.5); border-radius: 4px; }

body:has(:focus-visible) { cursor: auto; }
*:focus-visible { outline: 2px solid #c93b4a; outline-offset: 4px; }
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background-color: #c93b4a; }
.cursor-outline { width: 40px; height: 40px; border: 2px solid rgba(201, 59, 74, 0.5); transition: width 0.2s, height 0.2s, background-color 0.2s; }
.cursor-hover .cursor-outline { width: 60px; height: 60px; background-color: rgba(201, 59, 74, 0.15); border-color: transparent; backdrop-filter: blur(2px); }
@media (pointer: coarse) { body { cursor: auto; } .cursor-dot, .cursor-outline { display: none; } }

.film-grain {
    position: fixed; top: -50%; left: -50%; right: -50%; bottom: -50%; width: 200%; height: 200%;
    background: transparent url('https://upload.wikimedia.org/wikipedia/commons/7/76/1K_UHD_Noise.png') repeat 0 0;
    animation: bg-animation .2s infinite; opacity: 0.04; pointer-events: none; z-index: 9998;
}
html.light-mode .film-grain { opacity: 0.06; filter: invert(1); }
@keyframes bg-animation { 0% { transform: translate(0,0); } 50% { transform: translate(-5%, 5%); } 100% { transform: translate(0,0); } }

.nav-scrolled { background-color: rgba(0,0,0,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.1); }
html.light-mode .nav-scrolled { background-color: rgba(255,255,255,0.9); border-bottom: 1px solid rgba(0,0,0,0.1); }

.nav-glow { transition: text-shadow 0.3s ease, color 0.3s ease; }
html.light-mode .nav-glow { text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.9); }

.nav-glow-orange { transition: text-shadow 0.3s ease, color 0.3s ease; }
html.light-mode .nav-glow-orange { text-shadow: 0 0 15px rgba(201, 59, 74, 1), 0 0 30px rgba(201, 59, 74, 0.9), 0 0 45px rgba(201, 59, 74, 0.8); }

.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); will-change: transform, opacity; }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: transform, opacity; }
.reveal-scale.active { opacity: 1; transform: scale(1); }

.magnetic-wrap { display: inline-block; padding: 10px; margin: -10px; }

.hero-slide {
    position: absolute; inset: 0; z-index: 10;
    pointer-events: none;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    opacity: 0;
}
.hero-slide.active { 
    pointer-events: auto; 
    clip-path: inset(0 0% 0 0);
    opacity: 1;
}
.slide-dot { transition: width 0.3s, background-color 0.3s; }
.slide-dot.inactive { width: 0.75rem; background-color: rgba(255,255,255,0.5); }
.slide-dot.active { width: 2.5rem; background-color: #c93b4a; }

.nav-protector { background: linear-gradient(to bottom, var(--bg-color) 15%, transparent 100%); opacity: 0.9; }

.photo-text-shadow { text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.8); }
html.light-mode .photo-text-shadow { text-shadow: 0 2px 4px rgba(255,255,255,0.9), 0 4px 12px rgba(255,255,255,0.9), 0 0 30px rgba(255,255,255,1), 0 0 50px rgba(255,255,255,1); }

.view-section { display: none; opacity: 0; transition: opacity 0.6s ease-in-out; }
.view-section.active { display: block; opacity: 1; }

.band-card {
    opacity: 0;
    transform: translateY(40px);
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.band-card:hover {
    border-color: #c93b4a !important;
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(201, 59, 74, 0.15);
}

.section-3d {
    position: relative;
    z-index: 20;
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Fluent Forms Override --- */
.fluentform { width: 100% !important; display: block !important; }
.fluentform .ff-el-group { width: 100% !important; margin-bottom: 1.5rem !important; }
.fluentform .ff-el-input--content { width: 100% !important; display: block !important; }

.fluentform .ff-el-form-control {
    width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; display: block !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: none !important; border-bottom: 2px solid #6b7280 !important; 
    color: #ffffff !important; border-radius: 8px 8px 0 0 !important;
    padding: 1rem !important; transition: all 0.3s ease !important; 
    font-family: 'Open Sans', sans-serif !important; backdrop-filter: blur(8px);
}
textarea.ff-el-form-control { min-height: 120px !important; resize: vertical !important; }
.fluentform .ff-el-form-control:focus { border-bottom-color: #c93b4a !important; outline: none !important; box-shadow: none !important; background-color: rgba(0, 0, 0, 0.8) !important; }
.fluentform .ff-el-form-control::placeholder { color: rgba(255, 255, 255, 0.6) !important; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; }

.fluentform .ff-el-input--label { text-align: left !important; display: block !important; width: 100% !important; }
.fluentform .ff-el-input--label label { 
    display: block !important; text-align: left !important; font-size: 11px !important; 
    color: #ffffff !important; text-transform: uppercase !important; letter-spacing: 0.1em !important; 
    font-weight: 800 !important; margin-bottom: 0.75rem !important; text-shadow: 0 4px 8px rgba(0,0,0,1);
}

.fluentform .ff-btn-submit { 
    background-color: #c93b4a !important; color: white !important; font-family: 'Montserrat', sans-serif !important; 
    font-weight: 900 !important; padding: 1.2rem 2rem !important; border-radius: 9999px !important; 
    text-transform: uppercase !important; letter-spacing: 0.1em !important; transition: all 0.3s ease !important; 
    box-shadow: 0 0 20px rgba(201, 59, 74, 0.4) !important; width: 100% !important; max-width: 100% !important;
    border: none !important; display: block !important; text-align: center !important;
}
.fluentform .ff-btn-submit:hover { background-color: #b91c1c !important; transform: translateY(-2px) !important; box-shadow: 0 10px 30px rgba(201, 59, 74, 0.6) !important; }
.fluentform .ff-errors-in-stack { color: #ef4444 !important; font-size: 0.75rem !important; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem !important; text-align: left !important; }
.fluentform .ff-message-success { color: #4ade80 !important; font-size: 0.875rem !important; font-weight: bold !important; text-transform: uppercase; letter-spacing: 0.1em; text-align: center; text-shadow: 0 2px 4px rgba(0,0,0,0.8); background: transparent !important; border: none !important; }

.fluentform .ff-t-container,
.fluentform .ff-column-container { display: flex !important; flex-wrap: wrap !important; gap: 1rem !important; width: 100% !important; }
.fluentform .ff-t-cell,
.fluentform .ff-column-container > div { flex: 1 1 calc(50% - 0.5rem) !important; width: 100% !important; max-width: 100% !important; }

#fluentform_2 .ff-column-container { align-items: flex-end !important; }

@media (max-width: 640px) { 
    .fluentform .ff-t-container,
    .fluentform .ff-column-container { flex-direction: column !important; gap: 0 !important; }
    .fluentform .ff-t-cell,
    .fluentform .ff-column-container > div { flex: 1 1 100% !important; }
}