/*
 * STYLES.CSS - LUXURY MOTION IMPLEMENTATION
 * Uses archi-design.css variables
 */

/* =========================================
   LAYOUT & STRUCTURE
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Utility Classes (Tailwind-like) */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.h-screen {
    height: 100vh;
}

.w-full {
    width: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.py-40 {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.space-x-10>*+* {
    margin-left: 2.5rem;
}

.space-x-6>*+* {
    margin-left: 1.5rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
    gap: 2rem;
}

.text-7xl {
    font-size: 4.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.font-extrabold {
    font-weight: 800;
}

.font-bold {
    font-weight: 700;
}

.text-cyan-400 {
    color: var(--color-cyan);
}

.text-white-60 {
    color: rgba(255, 255, 255, 0.6);
}

.text-white-40 {
    color: rgba(255, 255, 255, 0.4);
}

.text-white-20 {
    color: rgba(255, 255, 255, 0.2);
}

.bg-dark-tech {
    background-color: #0a0a0a;
}

.bg-black {
    background-color: #000;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.animate-entry {
    animation: fadeInSlide 0.8s var(--transition-smooth) forwards;
}


body {
    background-color: var(--color-negro-mate);
    color: var(--color-crudo);
    font-family: var(--font-body);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-tech);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-tech);
    font-family: var(--font-body);
}

/* =========================================
   VIDEO BACKGROUND
   ========================================= */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2d3436 0%, #000000 100%);
    background-size: cover;
    animation: pulseBg 10s infinite alternate;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darken for readability */
    z-index: 1;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* =========================================
   HEADER
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(1, 1, 1, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.logo h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #fff;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-vison);
}

.btn-contact {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--color-vison);
    color: var(--color-vison);
    letter-spacing: 2px;
    font-size: 11px;
    text-transform: uppercase;
    border-radius: var(--border-radius-tech);
}

.btn-contact:hover {
    background: var(--color-vison);
    color: var(--color-negro-mate);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

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

.subtitle {
    color: var(--color-vison);
    letter-spacing: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.main-title {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 30px;
    align-items: center;
}

.btn-primary {
    padding: 16px 40px;
    background: var(--color-vison);
    color: var(--color-negro-mate);
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: var(--border-radius-tech);
    text-transform: uppercase;
    font-size: 14px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.3);
}

.btn-text {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* =========================================
   CATALOGO / COLECCION
   ========================================= */
.catalogo-section {
    padding: 100px 40px;
    background: linear-gradient(to bottom, var(--color-negro-mate), #111);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h3 {
    font-size: 36px;
    color: var(--color-vison);
    margin-bottom: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: rgba(20, 23, 29, 0.6);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: var(--border-radius-tech);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.product-card:hover {
    border-color: var(--color-vison);
    background: rgba(20, 23, 29, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.1);
}

.card-image {
    height: 300px;
    background-color: #222;
    background-position: center;
    background-size: cover;
    transition: transform 0.8s ease;
}

/* Placeholders for images - Archi will update with real photos later */
.roller-img {
    background-image: linear-gradient(45deg, #333, #444);
}

.doble-img {
    background-image: linear-gradient(45deg, #444, #555);
}

.veneciana-img {
    background-image: linear-gradient(45deg, #555, #666);
}

.onda-img {
    background-image: linear-gradient(45deg, #666, #777);
}

.product-card:hover .card-image {
    transform: scale(1.05);
}

.card-info {
    padding: 30px;
}

.card-info h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 8px;
}

.card-info p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.5;
}

.link-arrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-vison);
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-vison);
    color: #000;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    z-index: 10;
    text-transform: uppercase;
    border-radius: var(--border-radius-tech);
}

/* =========================================
   STEPS SECTION
   ========================================= */
.steps-section {
    padding: 80px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    background: #0a0a0a;
}

.step {
    text-align: center;
    max-width: 200px;
}

.step-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-vison);
    opacity: 0.2;
    margin-bottom: 15px;
    font-family: var(--font-body);
}

.step h5 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.step-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-vison), transparent);
    margin-top: 25px;
    opacity: 0.3;
}

/* =========================================
   CHAT WIDGET - LUXURY EDITION
   ========================================= */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    height: 600px;
    background: rgba(1, 1, 1, 0.9);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: var(--border-radius-tech);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

.chat-widget.closed {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 245, 255, 0.05);
}

.agent-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-vison);
    background: #000;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(1.2);
}

.agent-name {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agent-status {
    font-size: 10px;
    color: var(--color-vison);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-chat {
    background: none;
    color: var(--color-vison);
    font-size: 24px;
    opacity: 0.7;
}

.close-chat:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--border-radius-tech);
    font-size: 13px;
    line-height: 1.5;
}

.message.assistant {
    background: rgba(0, 245, 255, 0.05);
    color: #fff;
    align-self: flex-start;
    border-left: 2px solid var(--color-vison);
}

.message.user {
    background: var(--color-vison);
    color: var(--color-negro-mate);
    align-self: flex-end;
    font-weight: 600;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    position: relative;
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 12px 15px;
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
}

#chat-input:focus {
    outline: 1px solid var(--color-vison);
}

.send-btn {
    background: var(--color-vison);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-tech);
    background: var(--color-vison);
    color: #000;
    font-size: 24px;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border: none;
}

.fab-chat:hover {
    transform: scale(1.1);
}

.chat-widget:not(.closed)+.fab-chat {
    display: none;
}

/* Rendering Animation */
.rendering-indicator {
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 12px;
    color: var(--color-vison);
    display: flex;
    align-items: center;
    gap: 4px;
}

.rendering-indicator.hidden {
    display: none;
}

.dot {
    width: 4px;
    height: 4px;
    background: var(--color-vison);
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

/* Footer */
footer {
    padding: 80px 40px;
    background: #010101;
    border-top: 1px solid rgba(0, 245, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col h5 {
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 2px;
    font-weight: 700;
}

.footer-col a {
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-vison);
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 40px;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for demo */
    .steps-section {
        flex-direction: column;
        align-items: center;
    }

    .step-line {
        width: 1px;
        height: 30px;
        margin: 20px 0;
    }

    .chat-widget {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}