/* ==========================================
   CUBO CERO — STYLESHEET
   ========================================== */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-footer: #08080c;
    --accent-yellow: #FFD700;
    --accent-red: #E63946;
    --accent-blue: #3A86FF;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --border: rgba(255,255,255,0.08);
    --grid-line: rgba(45, 255, 206, 0.15);
    --particle-color: rgba(45, 255, 206, 0.8);
    --particle-glow: rgba(255, 251, 130, 0.6);

    /* Redes sociales */
    --social-facebook: #1877F2;
    --social-instagram: #FFD700;
    --social-tiktok: #E63946;
    --social-whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================
   NAVBAR
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 3rem;
    background: rgba(10, 10, 15, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    cursor: pointer;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

/* ==========================================
   PARTICLE CANVAS
   ========================================== */

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 255, 206, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    mix-blend-mode: screen;
}

/* ==========================================
   PAGE SECTIONS
   ========================================== */

.page-section {
    display: none;
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   HERO (HOME)
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-yellow);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 span {
    display: block;
    font-size: 0.6em;
    font-weight: 400;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(58, 134, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(58, 134, 255, 0.4);
}

/* ==========================================
   FEATURES GRID (HOME)
   ========================================== */

.features-home {
    padding: 4rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-home h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-yellow);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-4px);
}

.feature-card.red::before { background: var(--accent-red); }
.feature-card.red:hover { border-color: rgba(230, 57, 70, 0.3); }

.feature-card.blue::before { background: var(--accent-blue); }
.feature-card.blue:hover { border-color: rgba(58, 134, 255, 0.3); }

.feature-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border: 2px dashed var(--border);
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================
   SERVICES PAGE
   ========================================== */

.services-page {
    padding-top: 6rem;
}

.page-header {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--accent-yellow));
    -webkit-background-clip: text;  /* Para Safari/Chrome antiguos */
    background-clip: text;           /* Estándar moderno */
    -webkit-text-fill-color: transparent;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-list {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.service-row:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.service-row.reverse {
    direction: rtl;
}

.service-row.reverse > * {
    direction: ltr;
}

.service-img {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed var(--border);
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 2.5rem;
}

.service-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.service-content.yellow h2 { color: var(--accent-yellow); }
.service-content.red h2 { color: var(--accent-red); }
.service-content.blue h2 { color: var(--accent-blue); }

.service-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   GALLERY PAGE
   ========================================== */

.gallery-page {
    padding-top: 6rem;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border-color: var(--accent-yellow);
    font-weight: 600;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.gallery-item-img {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.gallery-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-item-img img {
    transform: scale(1.05);
}

.gallery-item-info {
    padding: 1.2rem;
}

.gallery-item-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.gallery-item-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.gallery-category {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cat-red { background: rgba(230, 57, 70, 0.15); color: var(--accent-red); }
.cat-yellow { background: rgba(255, 215, 0, 0.15); color: var(--accent-yellow); }
.cat-blue { background: rgba(58, 134, 255, 0.15); color: var(--accent-blue); }

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand .logo {
    font-size: 1.5rem;
}

.footer-brand .logo-img {
    height: 50px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    color: white;
}

/* Colores actualizados de redes sociales */
.social-link.facebook { 
    background: var(--social-facebook); 
    color: white; 
}
.social-link.instagram { 
    background: var(--social-instagram); 
    color: var(--bg-dark); 
}
.social-link.tiktok { 
    background: var(--social-tiktok); 
    color: white; 
}
.social-link.whatsapp { 
    background: var(--social-whatsapp); 
    color: white; 
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    cursor: pointer;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   MOBILE MENU
   ========================================== */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .logo-img {
        height: 32px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .service-row,
    .service-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .service-row.reverse > * {
        direction: ltr;
    }

    .service-img {
        height: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand .logo-img {
        height: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
