:root {
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --accent-tools: #2b6cb0;
    --accent-works: #e65100; /* Naranja Industrial para CDN Beta */
    --bg-beta: #0f172a;
    --text-main: #2d3748;
    --text-works: #f8fafc;
    --glass-border-works: rgba(230, 81, 0, 0.3);
    --border-color: #e2e8f0;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* --- LANDING SPLIT --- */
.landing-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: #000;
}

.split-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Fondo oscurecido por defecto, se ilumina en Hover */
.split-section::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: 1;
    transition: transform 1s ease, filter 0.6s ease;
}

.split-section:hover::before {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.works::before { background-image: url('Recursos/CDNWorks/setup.png'); }
.tools::before { background-image: url('Recursos/CDNTools/Rego-Fix/SW-Acabado PG.jpeg'); }

/* Caja de contenido transparente al inicio, cristal al hover */
.split-section .content-box { 
    position: relative; 
    z-index: 10; 
    text-align: center;
    background: transparent;
    padding: 3rem;
    border-radius: 20px;
    max-width: 80%;
    border: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.split-section:hover .content-box {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.split-section:hover .content-box {
    transform: translateY(-10px);
    background: rgba(0, 0, 0, 0.6);
}

.split-section h2 { 
    font-size: 3.5rem; 
    color: #fff; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.8); 
    font-family: 'Outfit', sans-serif; 
    margin-bottom: 0;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.split-section:hover h2 {
    margin-bottom: 1rem;
    transform: translateY(0);
}

.split-section p {
    color: #f1f5f9;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    visibility: hidden;
}

.split-section:hover p {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.btn-enter {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0,0,0,0.3);
    border-radius: 50px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    visibility: hidden;
}

.split-section:hover .btn-enter {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.btn-enter:hover { background: #fff; color: #000; }

/* --- BRAND LOGO GRID --- */
.brands-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.logo-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--accent-tools);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 5px 10px rgba(37, 211, 102, 0.4));
}

.whatsapp-btn:hover {
    transform: scale(1.15) translateY(-5px);
}

.whatsapp-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.file-item {
    background: #0f172a;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.file-item:hover {
    border-color: var(--accent-tools);
    background: #2c313a;
}

/* --- BENTO GRID FOR BRANDS --- */
.bento-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.bento-logo {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.bento-logo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--accent-tools);
}

.bento-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s;
}

/* --- SLIDE-OVER PANEL --- */
.panel-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.panel-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.slide-panel {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    max-width: 550px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.slide-panel.open {
    transform: translateX(0);
}

.close-panel-btn {
    position: absolute;
    top: 1.5rem; left: -3rem;
    width: 3rem; height: 3rem;
    background: #ffffff;
    border: none;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.05);
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.panel-header {
    padding: 3rem 2rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.panel-header img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
}

.panel-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.media-grid img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* --- CATALOG BOOK CARDS --- */
.catalogs-section { margin-top: 3rem; }

.catalog-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.catalog-book-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.book-cover-wrapper {
    position: relative;
    aspect-ratio: 1 / 1.414; /* A4 Paper Aspect Ratio */
    border-radius: 4px 12px 12px 4px;
    box-shadow: inset 4px 0 10px rgba(0,0,0,0.1), 5px 5px 15px rgba(0,0,0,0.15);
    background: #eee;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.catalog-book-card:hover .book-cover-wrapper {
    transform: translateY(-5px) rotateY(-5deg);
    box-shadow: inset 4px 0 10px rgba(0,0,0,0.1), 10px 10px 20px rgba(0,0,0,0.2);
}

.book-cover-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.no-cover-pdf {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 1rem;
    text-align: center;
}

.no-cover-pdf span {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255,255,255,0.1);
    margin-bottom: 0.5rem;
}

.no-cover-pdf p {
    font-size: 0.85rem;
    line-height: 1.2;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.locked-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.download-btn-dynamic {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.download-btn-dynamic.unlocked {
    background: var(--accent-tools);
    color: white;
}

.download-btn-dynamic.locked {
    background: #e2e8f0;
    color: #64748b;
}

.download-btn-dynamic.unlocked:hover {
    background: #1e4e8c;
}

/* --- MODERN GATE --- */
.modern-reg-gate {
    background: linear-gradient(135deg, #fff8f1 0%, #fff 100%);
    border: 1px solid #ffd8a8;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.gate-icon {
    color: #e65100;
    margin-bottom: 1rem;
}

.modern-reg-gate h4 { color: #e65100; margin-bottom: 0.5rem; }
.modern-reg-gate p { font-size: 0.85rem; color: #666; margin-bottom: 1.5rem; }

.gate-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.gate-form input:focus {
    outline: none;
    border-color: #ffa726;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,167,38,0.1);
}


/* --- PRODUCT CATALOG STYLES (REFINED) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 1.2;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.product-slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    scrollbar-width: none; /* Firefox */
}

.product-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.product-slider img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.2s;
}

.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.slider-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.2s;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.product-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-works);
    margin-bottom: 1.5rem;
}

.btn-whatsapp-catalog {
    margin-top: auto;
    background: #25D366;
    color: white;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

.btn-whatsapp-catalog:hover {
    opacity: 0.9;
}

.instagram-link-container {
    text-align: center;
    margin: 2rem 0 4rem 0;
}

.btn-instagram-simple {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: #000;
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s;
    font-size: 0.9rem;
}

.btn-instagram-simple:hover {
    transform: scale(1.05);
}

.btn-instagram-simple img {
    width: 18px;
    height: 18px;
    filter: invert(1);
    display: block;
}

