/* ==================================================
   3D LAB CREATIV - DIGITAL SERVICE
   PREMIUM CYBER GREEN EDITION
================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Paleta de Colores (Cyberpunk / Tech Dark) */
    --bg: #040d06;
    --bg-secondary: #09150c;
    --card: #0d1b11;
    --primary: #00ff66;
    --primary-dark: #00c853;
    --orange: #ff6b00;
    --white: #ffffff;
    --text: #d1d5db;
    --text-soft: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);

    /* Efectos de Iluminación */
    --shadow-green: 0 0 15px rgba(0, 255, 102, 0.3),
                    0 0 30px rgba(0, 255, 102, 0.15);
    
    --transition: .35s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

/* ==========================================
   RESET & CONFIGURACIÓN BÁSICA
========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

li {
    list-style: none;
}

/* Componente Contenedor */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Decoraciones de Texto Globales */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-highlight {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

/* ==========================================
   HEADER & NAVBAR
========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(4, 13, 6, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.main-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 102, 0.2));
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-soft);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link:focus {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
    box-shadow: var(--shadow-green);
}

.nav-link:hover::after {
    width: 100%;
}

/* ==========================================
   HERO SECTION (INICIO)
========================================== */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 255, 102, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(0, 229, 255, 0.03) 0%, transparent 40%);
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-soft);
    margin-bottom: 40px;
    max-width: 550px;
}

/* Botones */
.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    background-color: var(--white);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 255, 102, 0.02);
    transform: translateY(-2px);
}

/* ==========================================
   SECCIÓN SECCIONES COMPARTIDAS
========================================== */
.products-section, .services-section, .social-section, .contact-section {
    padding: 100px 0;
}

.products-section {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 60px;
    font-size: 1.05rem;
}

/* ==========================================
   TARJETAS DE PRODUCTOS (GRID)
========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.05), transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 102, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 
                0 0 20px rgba(0, 255, 102, 0.1);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    background-color: #060e08;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid var(--border);
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Badges */
.product-badge, .product-badge-special {
    align-self: flex-start;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.product-badge {
    background-color: rgba(0, 255, 102, 0.1);
    color: var(--primary);
}

.product-badge-special {
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--orange);
}

.product-info h3 {
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 12px;
}

.product-info p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-price {
    margin-bottom: 20px;
}

.price-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

/* Botón de la tarjeta */
.btn-card {
    display: block;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--white);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.product-card:hover .btn-card {
    background-color: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
    box-shadow: var(--shadow-green);
}

/* ==========================================
   SECCIÓN SERVICIOS
========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-item {
    background-color: var(--card);
    border: 1px solid var(--border);
    padding: 40px 32px;
    border-radius: 20px;
    transition: var(--transition);
}

.service-item:hover {
    border-color: rgba(0, 255, 102, 0.2);
    transform: translateY(-5px);
    background: linear-gradient(180deg, var(--card) 0%, rgba(0, 255, 102, 0.02) 100%);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 12px;
}

.service-item p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* ==========================================
   COMUNIDAD & REDES SOCIALES
========================================== */
.social-section {
    background-color: var(--bg-secondary);
    text-align: center;
}

.social-section h2 {
    font-size: 2.25rem;
    color: var(--white);
    margin-bottom: 12px;
}

.social-section p {
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.social-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.social-link {
    background-color: var(--card);
    border: 1px solid var(--border);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-link img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: var(--transition);
}

.social-link:hover {
    transform: scale(1.15);
    background-color: rgba(0, 255, 102, 0.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-green);
}

/* ==========================================
   CONTACTO
========================================== */
.contact-section {
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(0, 255, 102, 0.08) 0%, transparent 60%);
}

.contact-section h2 {
    font-size: 2.25rem;
    color: var(--white);
    margin-bottom: 16px;
}

.contact-section p {
    color: var(--text-soft);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    background-color: var(--bg);
}

.footer p {
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
========================================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .nav {
        display: none; /* Idealmente aquí puedes añadir un menú de hamburguesa clásico */
    }

    .hero-section {
        padding-top: 140px;
        padding-bottom: 70px;
        text-align: center;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .products-section, .services-section, .social-section, .contact-section {
        padding: 60px 0;
    }

    .section-title, .social-section h2, .contact-section h2 {
        font-size: 1.8rem;
    }
}