/* ==========================================================================
   Papelera Vinto - Premium Modern Light Theme
   Fonts: Outfit (Sans), Playfair Display (Serif)
   ========================================================================== */

   :root {
    --font-primary: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --bg-dark: #0f172a;
    
    --color-accent: #3b82f6;
    --color-accent-hover: #2563eb;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

body.premium-dark-theme { /* Keeping class name for compatibility but it's a light theme now */
    font-family: var(--font-primary);
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
}

.accent-serif {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-accent);
}

.kicker-blue {
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.cinematic-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #020617;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinematic-loader.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-brand {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: #ffffff;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.loader-logo {
    width: 120px;
    filter: brightness(0) invert(1);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    margin-bottom: 0.5rem;
}

.loader-line-container {
    width: 200px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.loader-line {
    position: absolute;
    top: 0; left: 0; height: 100%; width: 0%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: loadLine 1.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.loader-text {
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: #64748b;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
}

@keyframes loadLine {
    0% { width: 0%; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 100%; left: 100%; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.glass-nav.scrolled {
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 30px;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 102;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 102;
}

.hamburger-menu span {
    width: 30px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.btn-glass {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   Hero Section (Dark Cinematic Gradient + Light Beams)
   ========================================================================== */
.hero-animated-bg {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0a0f1a;
}

/* Deep animated gradient: dark blues, slates, hints of teal */
.hero-gradient-mesh {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #0a0f1a, #0f172a, #1e293b, #0c4a6e, #0f172a, #0a0f1a);
    background-size: 400% 400%;
    animation: smoothGradient 30s ease infinite;
    z-index: 1;
}

@keyframes smoothGradient {
    0%   { background-position: 0% 0%; }
    25%  { background-position: 100% 0%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

/* Subtle grain texture */
.hero-noise-texture {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.06;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

/* Radial glow behind the roll area (right side) */
.hero-animated-bg::before {
    content: '';
    position: absolute;
    top: 50%; right: 10%;
    transform: translate(50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.03) 40%, transparent 70%);
    z-index: 2;
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.6; transform: translate(50%, -50%) scale(0.95); }
    100% { opacity: 1; transform: translate(50%, -50%) scale(1.1); }
}

/* 3D canvas layer */
.hero-3d-full {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Split layout */
.hero-container-split {
    position: relative;
    z-index: 10;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    pointer-events: none;
}

.hero-content-left {
    text-align: left;
    max-width: 600px;
}

/* Kicker badge */
.hero-kicker-clean {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #93c5fd;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

/* Logo (inverted to white for dark bg) */
.hero-medium-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(59,130,246,0.15));
}

/* Title — white on dark */
.hero-title-modern {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Subtitle — muted light */
.hero-subtitle-modern {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-actions {
    pointer-events: auto;
}

/* Button: Blue glow on dark */
.btn-solid-dark {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-solid-dark:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

/* Scroll indicator — light on dark */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.5);
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.line-down {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* ==========================================================================
   About (Immersive Dark Wavy Layout)
   ========================================================================== */
.about-immersive {
    position: relative;
    padding: 12rem 0;
    overflow: hidden;
    background: #020617; /* Deepest slate */
}

.wavy-bg-animated {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: 
        radial-gradient(ellipse at 40% 30%, rgba(14, 165, 233, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(30, 58, 138, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
    animation: waveDrift 30s ease-in-out infinite alternate;
    z-index: 1;
}

/* Elegant wave lines using SVG */
.wavy-bg-animated::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,400 C320,200 420,600 720,400 C1020,200 1120,600 1440,400 L1440,800 L0,800 Z' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='2'/%3E%3Cpath d='M0,500 C320,300 420,700 720,500 C1020,300 1120,700 1440,500 L1440,800 L0,800 Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

@keyframes waveDrift {
    0% { transform: rotate(0deg) scale(1) translate(0, 0); }
    100% { transform: rotate(2deg) scale(1.05) translate(-1%, -1%); }
}

.about-split-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Image is smaller, text gets more space */
    gap: 6rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    aspect-ratio: 3/4; /* Portrait, much more elegant */
    max-width: 380px; /* Constrain the max width */
    margin: 0 auto;
}

.factory-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1) saturate(0.8); /* More cinematic color grading */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrapper:hover .factory-image {
    transform: scale(1.05);
}

.image-border-accents {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.15); /* Premium top edge highlight */
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.panel-title {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.panel-desc {
    color: #94a3b8;
    font-size: 1.15rem;
    margin-bottom: 3.5rem;
    line-height: 1.8;
    font-weight: 300; /* Thinner, more elegant */
}

.stats-row {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: #93c5fd;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
}

/* ==========================================================================
   Pillars (Sello) - Natural Dark Elegance
   ========================================================================== */
.seal-section {
    position: relative;
    padding: 10rem 0;
    background: #020617;
    overflow: hidden;
}

/* Subtle nature texture overlay */
.seal-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?q=80&w=1920&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    mix-blend-mode: luminosity;
    z-index: 0;
}

.seal-section .container {
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 5rem;
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.seal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.glow-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 3rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(20px);
}

.glow-card:hover {
    transform: translateY(-10px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 40px rgba(56, 189, 248, 0.05);
}

.card-icon {
    font-size: 3.5rem;
    color: #38bdf8;
    margin-bottom: 2rem;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.3));
}

.glow-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-family: var(--font-primary);
}

.glow-card p {
    color: #94a3b8;
    line-height: 1.7;
}

/* ==========================================================================
   Showcase (Productos) - Clean Dark Gallery
   ========================================================================== */
.showcase-section {
    padding: 10rem 0;
    background: #0f172a; /* Slightly lighter slate to separate from previous section */
}

.showcase-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.showcase-item {
    position: relative;
    background: linear-gradient(to bottom, rgba(255,255,255,0.02), transparent);
    border-radius: 24px;
    padding: 5rem 2rem 3rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.1);
}

.spotlight {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.product-render {
    height: 280px;
    object-fit: contain;
    margin-bottom: 3rem;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-item:hover .product-render {
    transform: scale(1.08) rotate(2deg);
}

.showcase-info h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.showcase-info p {
    color: #94a3b8;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.link-arrow i {
    transition: transform 0.3s ease;
}

.link-arrow:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Footer Premium (Dark Corporate Anchor)
   ========================================================================== */
.footer-premium {
    padding: 6rem 0 2rem;
    background: var(--bg-dark);
    color: #fff;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.footer-logo {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.contact-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.method i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.method:hover {
    color: #fff;
}

.glass-form {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: 16px;
}

.glass-form h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.glass-form input, .glass-form textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #fff;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.glass-form input:focus, .glass-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.w-100 { width: 100%; }

.btn-solid-blue {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-solid-blue:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

.dev-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.dev-link img {
    height: 20px;
    filter: brightness(0) invert(1) opacity(0.5);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up, .slide-left, .slide-right, .slide-up {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up { transform: translateY(40px); }
.slide-left { transform: translateX(40px); }
.slide-right { transform: translateX(-40px); }
.slide-up { transform: translateY(60px); }

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-animated-bg { align-items: flex-start; padding-top: 15vh; }
    .hero-container-split { grid-template-columns: 1fr; }
    .hero-right-spacer { display: none; }
    .hero-content-left { text-align: center; margin: 0 auto; }
    .hero-kicker-clean { justify-content: center; }
    .about-split-layout { grid-template-columns: 1fr; }
    .about-immersive .container { justify-content: center; }
    .glass-panel { padding: 2.5rem; }
    .seal-grid { grid-template-columns: 1fr; }
    .showcase-grid-3 { grid-template-columns: 1fr; }
    .footer-layout { grid-template-columns: 1fr; gap: 4rem; }
    .hero-title-modern { font-size: 3rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    
    /* Mobile Menu */
    .hamburger-menu { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: rgba(10, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s ease;
        z-index: 100;
        margin: 0;
        padding: 0;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; color: #fff; }
    .nav-links .btn-glass { font-size: 1.2rem; padding: 1rem 2rem; }
}
