:root {
    --bg-dark: #0a0a0a;
    --bg-light: #8aa7c7;
    --bg-panel: rgba(20, 20, 20, 0.7);
    --neon-orange: #E65C00;
    --neon-cyan: #0099FF;
    --text-main: #f1f4f8;
    --text-muted: #8b8b8b;
    --text-light: #d1d5db;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: #1d2027;
}

.neon-text {
    color: var(--neon-orange);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.3);
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.glass-panel h1, .glass-panel h2, .glass-panel h3, .glass-panel h4 {
    color: var(--text-main);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    background: rgba(23, 27, 31, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.navbar .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.header-logo-3d {
    width: 60px;
    height: 60px;
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--neon-cyan);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar nav ul {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(23, 27, 31, 0.95);
        backdrop-filter: blur(10px);
        padding: 1.5rem 5%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar nav ul.active {
        display: flex;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 100px 5% 2rem 5%;
    
    /* Imagen de fondo con capa oscura para no perder visibilidad del neón */
    background-image: linear-gradient(rgba(10, 15, 29, 0.2), rgba(10, 15, 29, 0.4)), url('assets/hero-image.png');
    background-size: 100% 100%; /* Bloquear para que nunca se recorte y la estantería no se mueva */
    background-position: center;
    background-repeat: no-repeat;
}

#canvas-container {
    position: absolute;
    /* Coordenadas para la estantería vacía iluminada en la pared del fondo */
    left: 20%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 35vw;
    height: 35vh;
    min-width: 300px;
    min-height: 300px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 65%;
    padding: 2rem;
    text-align: left;
}

.company-subtitle {
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, var(--neon-orange), #FF8000);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

.btn-primary:disabled {
    background: #333;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Sections */
section {
    padding: 3rem 5%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Cotizador */
.cotizador-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .cotizador-grid {
        grid-template-columns: 1fr;
    }
}

.dropzone {
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed rgba(0, 240, 255, 0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.dropzone.dragover {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.icon-large {
    width: 48px;
    height: 48px;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--neon-cyan);
    transition: width 0.3s;
}

.hidden {
    display: none;
}

.controls {
    padding: 2rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

select, input[type="range"] {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-body);
}

select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

input[type="range"] {
    padding: 0;
    accent-color: var(--neon-orange);
}

.results {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.neon-border {
    position: relative;
}
.neon-border::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 17px;
    background: linear-gradient(45deg, var(--neon-orange), var(--neon-cyan));
    z-index: -1;
    opacity: 0.5;
}

/* AI Insight Panel */
.ai-insight-panel {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ai-title {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.ai-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    min-height: 2.8em; /* Reserve space for two lines */
}

/* Cursor animation for typewriter */
.ai-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--neon-cyan);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.result-item.highlight {
    font-size: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.full-width {
    width: 100%;
}
.mt-4 { margin-top: 1rem; }

/* Galería */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Carrusel de Galería */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding-bottom: 2rem; /* espacio para scrollbar */
    margin-top: 3rem; /* Separar del botón superior */
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    /* Quitamos el snap y el smooth para un movimiento continuo fluido */
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 4px;
}

.carousel-track .gallery-item {
    flex: 0 0 300px;
    scroll-snap-align: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 12px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay h4 {
    color: var(--neon-cyan);
    margin-bottom: 0.2rem;
}

/* Guía de Materiales */
.materiales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.material-card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
    background: rgba(23, 27, 31, 0.9); /* Color del header */
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.material-card h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.material-card:hover {
    transform: translateY(-5px);
}

.icon-medium {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
}

/* Casos de Éxito */
.casos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.caso-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.caso-img-wrapper {
    height: 200px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.placeholder-img {
    color: var(--text-muted);
    opacity: 0.5;
}

.caso-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.caso-content h3 {
    margin-bottom: 1rem;
    color: var(--neon-cyan);
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 153, 255, 0.1);
    color: var(--neon-cyan);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 1.5rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-question:hover {
    color: var(--neon-orange);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Suficiente para el contenido */
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

/* Descargas / Newsletter */
.descargas-banner {
    border: 1px solid var(--neon-orange);
    box-shadow: 0 0 20px rgba(230, 92, 0, 0.1);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    max-width: 300px;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

/* Utilidades */
.text-center { text-align: center; }
.p-8 { padding: 2rem; }
.m-auto { margin: 0 auto; }
.max-w-lg { max-width: 32rem; }

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 10px 2rem 10px;
        height: auto;
        min-height: 100vh;
        gap: 1rem;
        background-size: cover;
        background-position: center;
    }

    #canvas-container {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: 40vh;
        min-height: 300px;
        margin: 0 auto;
    }

    .hero-content {
        width: 100%;
        text-align: left;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .company-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}



/* =========================================
   Admin / Billing Dashboard Styles (Imported)
   ========================================= */

.admin-body {
    --bg-dark: var(--bg-light); /* Fondo azul claro del index */
    --bg-panel: rgba(20, 20, 20, 0.7); /* Glassmorphism oscuro */
    --color-text-white: var(--text-main);
    --color-text-grey: var(--text-light);
    --color-text-zinc: #e2e8f0;
    --neon-cyan: var(--neon-cyan);
    --neon-orange: var(--neon-orange);
    --color-neon-pink: var(--neon-orange); /* Cambiar rosa por naranja corporativo */
    --color-whatsapp: #25d366;
    
    background-color: var(--bg-dark);
    color: var(--color-text-white);
    font-family: var(--font-body);
    margin: 0;
    min-height: 100vh;
}

/* Header */
.admin-header {
    background-color: rgba(23, 27, 31, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.btn-secondary {
    background: transparent;
    color: var(--color-text-grey);
    border: 1px solid #3f3f46;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}
.btn-secondary-neon {
    background: rgba(0, 153, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-secondary-neon:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

.admin-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Grid & Cards */
.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.admin-sum-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-sum-info h4 {
    color: var(--color-text-grey);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.admin-sum-val {
    font-size: 2rem;
    font-weight: 700;
}
.admin-sum-val.positive { color: #25d366; }
.admin-sum-val.negative { color: #ef4444; }
.admin-sum-val.neon { color: var(--color-neon-pink); }
.admin-sum-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-grey);
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow-x: auto;
}
.admin-tab-btn {
    background: none;
    border: none;
    color: var(--color-text-grey);
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
    white-space: nowrap;
}
.admin-tab-btn:hover { color: white; }
.admin-tab-btn.active {
    color: var(--color-neon-pink);
    border-bottom-color: var(--color-neon-pink);
}

/* Panels */
.admin-panel-content { display: none; }
.admin-panel-content.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.admin-two-col {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}
@media (max-width: 900px) { .admin-two-col { grid-template-columns: 1fr; } }

/* Form & Tables */
.admin-form-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}
.admin-card-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}
.input-label {
    display: block;
    color: var(--color-text-grey);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.form-control-dark {
    width: 100%;
    background: #121315;
    border: 1px solid #3f3f46;
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    font-family: inherit;
}
select.form-control-dark option {
    background-color: #121315;
    color: white;
}
.form-control-dark:focus {
    outline: none;
    border-color: var(--color-neon-pink);
}
.btn-primary {
    background: var(--neon-cyan);
    color: #000;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover { opacity: 0.9; }

.admin-table-wrapper {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.admin-table th {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    color: var(--color-text-grey);
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid #27272a;
}
.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #27272a;
    font-size: 0.9rem;
}
.table-actions-cell {
    display: flex;
    gap: 8px;
}

/* Charts & Calendar */
.chart-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.chart-wrapper { height: 300px; }
.calendar-wrapper-local {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Login */
.login-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(18, 19, 21, 0.95);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; backdrop-filter: blur(10px);
}
.login-card {
    background: #1b1d22; padding: 3rem; border-radius: 16px;
    border: 1px solid #27272a; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    width: 100%; max-width: 400px;
}
.login-title { font-size: 1.8rem; margin-bottom: 0.5rem; text-align: center; color: white; }
.text-neon-glow { color: var(--color-neon-pink); }
.text-neon { color: var(--neon-cyan); }
.login-subtitle { color: var(--color-text-grey); text-align: center; margin-bottom: 2rem; font-size: 0.9rem; }
.shake { animation: shake 0.4s; }
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }

