/* ========================================
   Aluminios El Edén - Estilos CSS
   Proyecto: Página web para empresa de ventanas y aluminio
   Fecha: 2026
   ======================================== */

/* ========================================
   VARIABLES CSS - Colores y valores reutilizables
   ======================================== */
:root {
    --primary: #1a5f7a;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
}

/* Modo oscuro */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .navbar {
    background: #2a2a2a;
}

body.dark-mode .navbar-brand,
body.dark-mode .nav-link {
    color: #e0e0e0 !important;
}

body.dark-mode .hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1507089947368-19c1da9775ae?w=1920');
}

body.dark-mode .hero-title,
body.dark-mode .hero-subtitle {
    color: #fff;
}

body.dark-mode .section {
    background: #1a1a1a;
}

body.dark-mode .about,
body.dark-mode .services {
    background: #252525;
}

body.dark-mode .section-title h2 {
    color: #e0e0e0;
}

body.dark-mode .about-card,
body.dark-mode .product-card,
body.dark-mode .service-item {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .about-card h3,
body.dark-mode .product-info h3,
body.dark-mode .service-item {
    color: #e0e0e0;
}

body.dark-mode .about-card i,
body.dark-mode .product-image i,
body.dark-mode .service-item i {
    color: #4db8d4;
}

body.dark-mode .product-image {
    background: #333;
}

body.dark-mode .gallery-item {
    background: #2a2a2a;
}

body.dark-mode .contact {
    background: #1a1a1a;
}

body.dark-mode .contact-form {
    background: #2a2a2a;
}

body.dark-mode .form-group label {
    color: #e0e0e0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #333;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .modal-content {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .modal-footer {
    background: #222;
    border-top-color: #444;
}

body.dark-mode #productModalIcon {
    color: #4db8d4;
}

body.dark-mode #productModalDesc,
body.dark-mode #productModalBenefits {
    color: #e0e0e0;
}

body.dark-mode .modal-body h6 {
    color: #e0e0e0;
}

body.dark-mode .form-text {
    color: #999;
}

body.dark-mode .timestamp-label {
    color: #bbb;
}

body.dark-mode .input-group .form-control {
    background: #333;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .input-group .btn-outline-primary {
    border-color: #4db8d4;
    color: #4db8d4;
}

body.dark-mode .input-group .btn-outline-primary:hover {
    background: #4db8d4;
    color: #fff;
}

body.dark-mode .map-container {
    filter: grayscale(50%);
}

body.dark-mode .counter-section {
    background: linear-gradient(rgba(20,70,90,0.9), rgba(20,70,90,0.9)), url('https://images.unsplash.com/photo-1507089947368-19c1da9775ae?w=1920');
}

body.dark-mode .cta-banner {
    background: linear-gradient(135deg, #15445a, #1a1a1a);
}

body.dark-mode footer {
    background: #0a0a0a;
}

body.dark-mode .contact-info i {
    color: #4db8d4;
}

body.dark-mode #page-loader {
    background: #1a1a1a;
}

body.dark-mode #page-loader p:first-of-type {
    color: #4db8d4;
}

/* Modo oscuro - botón toggle */
#darkModeToggle {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#darkModeToggle:hover {
    background: var(--primary);
    color: white;
}

#darkModeToggle i {
    font-size: 1.2rem;
    color: var(--secondary);
}

#darkModeToggle:hover i {
    color: white;
}

body.dark-mode #darkModeToggle {
    background: #333;
}

body.dark-mode #darkModeToggle i {
    color: #ffd700;
}

/* ========================================
   RESET Y ESTILOS GLOBALES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   ANIMACIONES - Keyframes reutilizables
   ======================================== */

/* Animación de pulso para logo del loader */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Animación de rotación para engranaje del loader */
@keyframes nutTurn {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animación de rebote para flecha del hero */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Spinner para estados de carga */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.4rem;
}

/* ========================================
   ANIMACIONES DE SCROLL - Efecto reveal
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   LOADER - Pantalla de carga
   ======================================== */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#page-loader img {
    width: 200px;
    max-width: 80%;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

#page-loader p:first-of-type {
    font-size: 24px;
    color: #1a5f7a;
    font-weight: bold;
    margin-bottom: 10px;
}

#page-loader p:nth-of-type(2) {
    font-size: 18px;
    color: #666;
}

#page-loader div {
    margin-top: 20px;
    font-size: 50px;
}

#page-loader div span {
    display: inline-block;
    animation: nutTurn 1s infinite linear;
}

/* ========================================
   NAVBAR - Menú de navegación
   ======================================== */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Logo de texto */
.logo-text {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.logo-text strong {
    color: inherit;
}

.logo-text span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 4px;
}

.logo-text:hover {
    transform: scale(1.03);
}

body.dark-mode .logo-text {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255,255,255,0.15), 0 0 20px rgba(0,0,0,0.4);
}

body.dark-mode .logo-text span {
    color: #4db8ff;
}

.nav-link {
    color: var(--secondary) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* ========================================
   HERO - Sección principal de bienvenida
   ======================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1507089947368-19c1da9775ae?w=1920');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll a {
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.hero .btn-outline-light {
    border: 2px solid white;
    background: transparent;
}

.hero .btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

/* ========================================
   SECCIONES - Estilos generales
   ======================================== */
.section {
    padding: 5rem 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.section-title .line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
}

/* ========================================
   NOSOTROS - Misión, Visión, Valores
   ======================================== */
.about {
    background: var(--light);
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s;
}

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

.about-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* ========================================
   PRODUCTOS - Tarjetas de productos
   ======================================== */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

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

.product-image {
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image i {
    font-size: 4rem;
    color: var(--primary);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* ========================================
   SERVICIOS - Lista de servicios
   ======================================== */
.services {
    background: var(--light);
}

.services-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
}

.service-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-item i {
    color: var(--primary);
    font-size: 1.5rem;
    width: 40px;
}

/* ========================================
   GALERÍA - Grid de imágenes con lightbox
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 250px;
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

/* ========================================
   CONTACTO - Formulario y mapa
   ======================================== */
.contact {
    background: var(--secondary);
    color: white;
}

.contact .section-title h2 {
    color: white;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.required {
    color: var(--accent);
}

/* Campo oculto anti-spam (honeypot) */
#honeypot {
    display: none;
}

/* Estilos para etiqueta del CAPTCHA */
.timestamp-label {
    font-size: 0.8rem;
    color: #666;
}

#captchaAnswer {
    width: 80px;
    padding: 0.5rem;
    margin-left: 5px;
}

/* ========================================
   BOTONES Y ALERTAS
   ======================================== */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary-custom:hover {
    background: #15445a;
}

.btn-whatsapp,
.btn-whatsapp-modal {
    background: #25d366;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0.5rem;
    display: inline-block;
    text-decoration: none;
    border-radius: 5px;
}

.btn-whatsapp:hover,
.btn-whatsapp-modal:hover {
    background: #1da851;
    color: white;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

/* ========================================
   INFO DE CONTACTO
   ======================================== */
.contact-info {
    text-align: center;
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    margin-right: 0.5rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ========================================
   BOTONES FLOTANTES
   ======================================== */
.quote-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #1a5f7a, #2a9bc4);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 1.8rem 0 1.2rem;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 6px 25px rgba(26,95,122,0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quote-float i {
    font-size: 1.3rem;
    color: white;
}

.quote-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.quote-float:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(26,95,122,0.45);
    color: white;
}

.quote-float:hover::before {
    opacity: 1;
}

.quote-float:active {
    transform: translateY(0) scale(0.98);
}

/* Botón subir */
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: var(--secondary);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.scroll-top.show {
    display: flex;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.scroll-top i {
    color: white;
    font-size: 1.2rem;
}

body.dark-mode .quote-float {
    box-shadow: 0 6px 25px rgba(42,155,196,0.3);
}

/* ========================================
   CONTADOR - Estadísticas
   ======================================== */
.counter-section {
    background: linear-gradient(rgba(26,95,122,0.9), rgba(26,95,122,0.9)), url('https://images.unsplash.com/photo-1507089947368-19c1da9775ae?w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 5rem 0;
}

.counter-item {
    text-align: center;
    padding: 2rem;
}

.counter-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.counter-number {
    font-size: 3rem;
    font-weight: bold;
    display: block;
}

.counter-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================
   CTA BANNER - Llamada a la acción
   ======================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-banner .btn {
    background: white;
    color: var(--primary);
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0.5rem;
    display: inline-block;
    text-decoration: none;
    border-radius: 5px;
}

.cta-banner .btn:hover {
    background: var(--accent);
    color: white;
}

/* ========================================
   MODALES - Estilos de modales
   ======================================== */
.modal-header {
    background: var(--primary);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-footer {
    background: var(--light);
}

#productModalIcon {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

/* ========================================
   FOOTER - Pie de página
   ======================================== */
footer {
    background: #1a252f;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* ========================================
   RESPONSIVE - Adaptación móvil
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section {
        padding: 3rem 0;
    }
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
}

/* ========================================
   CALCULADORA - Header y diseño visual
   ======================================== */

/* Header de la calculadora con logo/icono */
.calc-header {
    text-align: center;
    padding: 1rem 0 1.5rem;
}

.calc-header .calc-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), #2a9bc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(26,95,122,0.3);
    position: relative;
}

.calc-header .calc-icon i {
    font-size: 2.2rem;
    color: #fff;
}

.calc-header .calc-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(26,95,122,0.15);
    animation: pulse 2s infinite;
}

.calc-header h4 {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
}

.calc-header p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

body.dark-mode .calc-header h4 {
    color: #e0e0e0;
}

body.dark-mode .calc-header p {
    color: #999;
}

/* Step indicators para el formulario */
.calc-section {
    margin-bottom: 1.2rem;
}

.calc-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-section-label::before {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

body.dark-mode .calc-section-label {
    color: #4db8d4;
}

body.dark-mode .calc-section-label::before {
    background: #444;
}

/* Campos del formulario de la calculadora */
.calc-section .form-select,
.calc-section .form-control {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.calc-section .form-select:focus,
.calc-section .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,95,122,0.1);
}

body.dark-mode .calc-section .form-select,
body.dark-mode .calc-section .form-control {
    background: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .calc-section .form-control::placeholder {
    color: #888;
    opacity: 1;
}

body.dark-mode .calc-section .form-select option {
    background: #333;
    color: #e0e0e0;
}

body.dark-mode .calc-section .form-select:focus,
body.dark-mode .calc-section .form-control:focus {
    border-color: #4db8d4;
    box-shadow: 0 0 0 3px rgba(77,184,212,0.15);
}

/* Botón calcular */
.btn-calc {
    background: linear-gradient(135deg, var(--primary), #2a9bc4);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-calc:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,95,122,0.3);
    color: white;
}

.btn-calc:active {
    transform: translateY(0);
}

/* Desglose de precios */
.price-breakdown {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.price-breakdown h6 {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.88rem;
}

.price-extras {
    color: #856404;
}

.price-discount {
    color: #155724;
}

.price-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0.6rem 0 0.3rem;
}

body.dark-mode .price-breakdown {
    background: linear-gradient(135deg, #2a2a2a, #333);
    border-color: #444;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

body.dark-mode .price-row {
    color: #e0e0e0;
}

body.dark-mode .price-extras {
    color: #ffc107;
}

body.dark-mode .price-discount {
    color: #5cb85c;
}

body.dark-mode .price-total {
    color: #4db8d4;
}

/* Botón enviar WhatsApp desde calculadora */
.btn-send-whatsapp {
    background: linear-gradient(135deg, #25d366, #1da851);
    color: white;
    padding: 0.85rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.btn-send-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
    color: white;
}

.btn-send-whatsapp i {
    margin-right: 0.5rem;
}

/* Medidas en línea */
.calc-measures {
    display: flex;
    gap: 0.5rem;
}

.calc-measures .form-group {
    flex: 1;
}

/* ========================================
   VISOR 3D - Three.js
   ======================================== */
#viewer3d-container {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #eee;
}

body.dark-mode #viewer3d-container {
    background: #222;
}