﻿:root {
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --accent: #ff007f;
    --accent-alt: #7928CA;
    --dark-bg: #0f172a;
    --darker-bg: #050b14;
    --light-text: #f8fafc;
    --gray-text: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 15px rgba(0, 210, 255, 0.6), 0 0 30px rgba(58, 123, 213, 0.4);
    --wp-green: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--darker-bg);
    color: var(--light-text);
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(58, 123, 213, 0.1) 0%, rgba(121, 40, 202, 0.05) 25%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 0, 127, 0.05) 0%, transparent 40%);
    z-index: -1;
    animation: rotateBg 30s linear infinite;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo img {
    height: 55px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo img:hover {
    transform: scale(1.1) rotate(-2deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--light-text);
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
    border: none;
}

.primary-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.6);
}

.secondary-btn {
    background: rgba(37, 211, 102, 0.1);
    color: var(--wp-green);
    border: 2px solid var(--wp-green);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.secondary-btn:hover {
    background: var(--wp-green);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* WhatsApp specific button */
.wp-btn {
    background: linear-gradient(135deg, #128C7E, #25D366);
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    width: 100%;
    margin-top: 15px;
    padding: 12px 20px;
    font-size: 0.95rem;
}

.wp-btn:hover {
    background: linear-gradient(135deg, #075E54, #128C7E);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUP 1s ease-out forwards;
}

@keyframes fadeInUP {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.glitch-text {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(to right, #00d2ff, #3a7bd5, #ff007f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Sections */
.section {
    padding: 120px 20px;
}

.dark-section {
    background: linear-gradient(to bottom, rgba(5, 11, 20, 0) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(5, 11, 20, 0) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    margin-bottom: 70px;
    font-size: 1.2rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

/* Neon glow behind card on hover */
.card-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 25px;
    background: linear-gradient(45deg, var(--primary), var(--accent-alt), var(--accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(15px);
}

.product-card:hover {
    transform: translateY(-15px);
    border-color: transparent;
}

.product-card:hover .card-glow {
    opacity: 0.6;
}

.product-image {
    position: relative;
    height: 320px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    background: linear-gradient(180deg, #F5F7FA, #E4E8F0);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotate(2deg);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.badge.premium {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #000;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 800;
}

.product-info .compatibility {
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.product-info .extra-compat {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 300;
}

/* Services Grid (Reparación) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 210, 255, 0.05);
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-text);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* About Section (Identidad) */
.about-container {
    max-width: 900px;
    text-align: center;
}

.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 50px 30px 40px;
    position: relative;
    margin-top: 60px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.about-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    margin: -100px auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    border: 5px solid var(--dark-bg);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.4);
}

.about-card h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
}

.about-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
}

.about-text p {
    color: var(--light-text);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

/* Portfolio / Casos de Éxito */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.portfolio-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
    border-color: rgba(0, 210, 255, 0.3);
}

.portfolio-image {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: linear-gradient(180deg, #F5F7FA, #E4E8F0);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.08) rotate(1deg);
}

.portfolio-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
    z-index: 2;
}

.portfolio-info {
    padding: 30px;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 800;
}

.portfolio-date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-desc {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 25px;
}

.empty-portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    background: transparent;
}

.empty-portfolio h3 {
    color: var(--primary);
}

.empty-portfolio p {
    color: var(--gray-text);
    margin-bottom: 0;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--glass-bg);
    border: 2px dashed rgba(0, 210, 255, 0.3);
    border-radius: 25px;
    max-width: 600px;
    margin: 40px auto;
    transition: all 0.3s ease;
}

.empty-state:hover {
    border-color: var(--primary);
    background: rgba(0, 210, 255, 0.05);
}

.pulse-anim {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.empty-state p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--glass-border);
    padding: 80px 20px 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.footer-col p {
    color: var(--gray-text);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0;
    width: 30px; height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--gray-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(10px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    border: 1px solid var(--glass-border);
}

.social-icon.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    transform: translateY(-5px);
}

.social-icon.tiktok:hover {
    background: linear-gradient(45deg, #00f2fe, #4facfe, #ff0844);
    border-color: transparent;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--gray-text);
}

/* Floating Menu */
.floating-menu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    padding: 15px 10px;
    gap: 20px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.fm-item {
    font-size: 1.5rem;
    color: var(--light-text);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    text-align: center;
}

.fm-item:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--primary));
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 11, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-content {
    width: 90%;
    max-width: 600px;
    transform: translateY(-50px);
    transition: all 0.4s ease;
}

.search-modal.active .search-content {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.close-search {
    font-size: 2.5rem;
    color: var(--gray-text);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-search:hover {
    color: var(--accent);
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.search-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-left: 0px solid var(--primary);
}

.search-item:hover {
    background: rgba(0, 210, 255, 0.1);
    border-left: 4px solid var(--primary);
    transform: translateX(5px);
}

/* Lógica de Pestañas (SPA) */
.tab-section {
    display: none;
    animation: fadeInTab 0.5s ease-in-out forwards;
}

.tab-section.active-section {
    display: block;
}

.hero.tab-section.active-section {
    display: flex;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive (Optimizado 100% para Celulares) */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    /* Floating Menu Mobile Adjustment */
    .floating-menu {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        width: 90%;
        justify-content: space-around;
        padding: 15px;
        border-radius: 20px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    }
    
    .fm-item {
        font-size: 1.8rem;
    }
    
    .logo img {
        height: 45px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 2px solid var(--primary);
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.3rem;
        padding: 10px;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 0 15px;
    }

    .glitch-text {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .section {
        padding: 80px 15px;
    }

    .section-title {
        font-size: 2.3rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .products-grid {
        gap: 25px;
        grid-template-columns: 1fr; /* Una sola columna en celulares para aprovechar ancho */
    }
    
    .product-card {
        padding: 15px;
        border-radius: 20px;
    }
    
    .product-image {
        height: 250px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .product-info h3 {
        font-size: 1.2rem;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-icon {
        font-size: 4rem;
    }
    
    footer {
        padding: 60px 15px 20px;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}



/* Store Filters */
.store-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    margin-top: 20px;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    color: var(--light);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 15px rgba(0,242,254,0.3);
}
