/* ========== EFECTOS PREMIUM Y ANIMACIONES ========== */

/* Reveal on Scroll Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.float-slow {
    animation: float 5s ease-in-out infinite;
}

/* Border Beam Effect (Subtle) */
@keyframes borderBeam {
    0% { border-color: var(--border-dark); }
    50% { border-color: var(--cyan-electric); }
    100% { border-color: var(--border-dark); }
}

.animate-border {
    animation: borderBeam 4s linear infinite;
}

/* Glassmorphism Refined */
.glass-effect {
    background: rgba(15, 15, 15, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Gradient Text Animation */
.gradient-text-animated {
    background: linear-gradient(
        90deg, 
        var(--cyan-electric), 
        var(--purple-neon), 
        var(--cyan-electric)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Spotlight Hover Effect for Cards */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(0, 240, 255, 0.06), 
        transparent 40%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* Pulsing Glow for interactive elements */
.pulse-glow {
    position: relative;
}

.pulse-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    background: var(--cyan-electric);
    z-index: -1;
    opacity: 0.2;
    filter: blur(8px);
    animation: pulse-glow-ani 2s ease-out infinite;
}

@keyframes pulse-glow-ani {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.1); opacity: 0; }
}

/* Smooth Image Hover */
.image-zoom-hover {
    overflow: hidden;
    border-radius: inherit;
}

.image-zoom-hover img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom-hover:hover img {
    transform: scale(1.05);
}

/* Custom Horizontal Scrollbar (if needed) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--carbon);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Fix for existing cards space */
.card, .service-card, .case-card, .product-card-large {
    z-index: 2;
}

/* ========== VARIABLES CSS ========== */
:root {
    /* Colores Base */
    --carbon: #050505;
    --carbon-light: #0F0F0F;
    --border-dark: #222222;
    --text-silver: #B0B0B0;
    
    /* Colores de Marca */
    --cyan-electric: #00F0FF;
    --purple-neon: #B388FF;
    --gold: #FFD700;
    --green-data: #00C896;
    --glow-dark: #001020;
    
    /* Tipografía */
    --font-main: 'Inter', sans-serif;
}

/* ========== RESET Y BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--carbon);
    color: white;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar-logo {
    height: 70px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.navbar-link {
    color: white;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-link:hover {
    color: var(--cyan-electric);
}

.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cyan-electric);
}

.navbar-cta {
    background: var(--cyan-electric);
    color: var(--carbon);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.5);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* ========== FOOTER ========== */
.footer {
    background: #000000;
    border-top: 1px solid var(--border-dark);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-silver);
    margin-bottom: 1.5rem;
}

.footer-email {
    color: var(--cyan-electric);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: white;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-silver);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cyan-electric);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-silver);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-silver);
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--cyan-electric);
}

/* ========== UTILIDADES COMUNES ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-silver);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== BOTONES ========== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-electric) 0%, #00C8D4 100%);
    color: var(--carbon);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--carbon);
}

/* ========== TARJETAS ========== */
.card {
    background: var(--carbon-light);
    border: 1px solid var(--border-dark);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-product {
    position: relative;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-premium {
    background: linear-gradient(135deg, var(--purple-neon), var(--gold));
    color: var(--carbon);
}

.badge-global {
    background: linear-gradient(135deg, var(--green-data), var(--cyan-electric));
    color: var(--carbon);
}

.card-icon {
    width: 45px;
    height: 45px;
    background: var(--border-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.card-description {
    color: var(--text-silver);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-link {
    color: var(--cyan-electric);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 1rem;
}

/* ========== EFECTOS GLOW ========== */
.glow-cyan {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(179, 136, 255, 0.25);
}

.glow-green {
    box-shadow: 0 0 20px rgba(0, 200, 150, 0.25);
}

.glow-effect-bg {
    background: radial-gradient(ellipse at center, var(--glow-dark) 0%, transparent 70%);
}

/* ========== ANIMACIONES ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0.75rem 1.5rem;
    }
    .navbar-logo {
        height: 60px;
    }
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--carbon);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-dark);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ========== COMPONENTES DE PRODUCTO ========== */
.product-card-large {
    background: var(--carbon-light);
    border: 1px solid var(--border-dark);
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
}

.product-content {
    padding: clamp(2rem, 5vw, 4rem);
}

.product-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 5;
}

/* ========== ESPACIADO ========== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ========== TEXTO ========== */
.text-cyan {
    color: var(--cyan-electric);
}

.text-purple {
    color: var(--purple-neon);
}

.text-green {
    color: var(--green-data);
}

.text-gold {
    color: var(--gold);
}

.text-center {
    text-align: center;
}
/* ========== CASOS DE ÉXITO ========== */
.success-cases {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.case-card {
    background: #000000;
    border: 1px solid var(--border-dark);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    position: relative;
    transition: all 0.5s ease;
}

.case-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.case-card.hover-purple:hover {
    border-color: rgba(179, 136, 255, 0.5);
}

.case-icon-bg {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    opacity: 0.5;
}

.badge-case {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.badge-cyan-soft {
    color: var(--cyan-electric);
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-purple-soft {
    color: var(--purple-neon);
    background: rgba(179, 136, 255, 0.05);
    border: 1px solid rgba(179, 136, 255, 0.3);
}

.testimonial {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: white;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.author-info h5 {
    font-size: 0.85rem;
    font-weight: 700;
}

.author-info p {
    font-size: 0.7rem;
    color: #666;
}
