/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    /* Paleta Principal proporcionada */
    --color-primary: #1DA1D6;
    /* Azul principal (Degradado medio, Tecnología) */
    --color-secondary: #0F5FA8;
    /* Azul profundo (Estabilidad, Profesionalismo) */
    --color-accent: #1FC7C1;
    /* Turquesa / Cian tecnológico (Dinámico) */
    --color-text-light: #F2F2F2;
    /* Blanco suave (Limpieza, minimalismo) */
    --color-bg-dark: #0A1A2F;
    /* Azul oscuro fondo (Elegancia, profundidad) */

    /* Variables derivadas y de utilidad */
    --color-bg-lighter: rgba(29, 161, 214, 0.05);
    /* Fondo para secciones alternadas */
    --color-glass-bg: rgba(10, 26, 47, 0.7);
    /* Fondo glassmorphism oscuro */
    --color-glass-border: rgba(31, 199, 193, 0.2);
    /* Borde para glassmorphism */
    --color-text-muted: #A0AAB2;
    /* Texto secundario para contraste */

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    --gradient-logo: linear-gradient(to bottom, var(--color-accent), var(--color-primary), var(--color-secondary));
    --gradient-dark: linear-gradient(180deg, var(--color-bg-dark) 0%, #061121 100%);

    /* Tipografía */
    --font-primary: 'Inter', sans-serif;
    /* Para cuerpo de texto */
    --font-heading: 'Outfit', sans-serif;
    /* Para encabezados y logo */

    /* Sombras */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px rgba(15, 95, 168, 0.15);
    --shadow-glow: 0 0 20px rgba(31, 199, 193, 0.4);

    /* Espaciado */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 8rem;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & GLOBAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 0.5rem;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-bg-dark);
    box-shadow: 0 4px 15px rgba(29, 161, 214, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-primary-outline {
    background: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn-primary-outline:hover {
    color: var(--color-bg-dark);
    border-color: transparent;
}

.btn-primary-outline:hover::before {
    width: 100%;
}

/* =========================================
   LAYOUT: NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-normal);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(10, 26, 47, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: baseline;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text-techno {
    color: var(--color-text-light);
    /* Blanco suave */
}

.logo-text-dev {
    background: var(--gradient-primary);
    /* Azul a Turquesa */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--gradient-logo);
    /* Gradiente de acento profundo */
    border-radius: 50%;
    margin-left: 2px;
}

/* Despunte inferior isotipo imaginario as a dot */

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
    opacity: 0.8;
}

.nav-links li a:not(.btn-primary-outline)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-links li a:hover,
.nav-links li a.active {
    opacity: 1;
}

.nav-links li a:not(.btn-primary-outline):hover::after,
.nav-links li a.active:not(.btn-primary-outline)::after {
    width: 100%;
}

.nav-links li a.btn-primary-outline {
    padding: 0.6rem 1.5rem;
    opacity: 1;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-text-light);
    border-radius: 3px;
}

/* Media Queries for Navbar */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(10, 26, 47, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--color-primary);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-accent);
    }
}

/* =========================================
   UTILITIES & ANIMATIONS
   ========================================= */
.section-padding {
    padding: var(--spacing-xxl) 0;
}

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

.subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--color-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    border-radius: 20px;
}


/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

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

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -50px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    bottom: -50px;
    left: 0;
}

/* Mockup Card animation */
.mockup-card {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(10, 26, 47, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.mockup-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 12px;
}

.w-80 {
    width: 80%;
}

.w-60 {
    width: 60%;
}

.w-100 {
    width: 100%;
}

.w-40 {
    width: 40%;
}

.mt-2 {
    margin-top: 2rem;
}

.mockup-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 15px;
    background: rgba(29, 161, 214, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(29, 161, 214, 0.2);
    font-weight: 600;
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero-title {
        font-size: 3rem;
    }

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

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}


/* =========================================
   SERVICES SECTION
   ========================================= */
.services {
    background-color: var(--color-bg-dark);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(15, 95, 168, 0.1), transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.services .container {
    position: relative;
    z-index: 1;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(31, 199, 193, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-bg-dark);
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(29, 161, 214, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}


/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio {
    background-color: var(--color-bg-lighter);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-bg-dark);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, rgba(29, 161, 214, 0.2), rgba(31, 199, 193, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.portfolio-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 26, 47, 0.4);
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-card:hover .portfolio-img::after {
    opacity: 1;
}

.portfolio-img i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 1;
    transition: var(--transition-normal);
}

.portfolio-card:hover .portfolio-img i {
    transform: scale(1.1);
    color: var(--color-text-light);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-category {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.portfolio-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.portfolio-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.portfolio-link:hover {
    color: var(--color-primary);
    gap: 12px;
}


/* =========================================
   ABOUT SECTION & FOOTER
   ========================================= */
.about {
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    display: block;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 161, 214, 0.3), rgba(15, 95, 168, 0.4));
    z-index: 1;
    mix-blend-mode: overlay;
    pointer-events: none;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background-color: #061121;
    padding: 4rem 0 2rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-about p {
    color: var(--color-text-muted);
    margin: 1.5rem 0;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    border-color: transparent;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


.logo img {
    height: 60px;
    width: auto;
}

.footer-about .logo img {
    height: 75px;
    margin-bottom: 1rem;
}

/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.6);
}


/* =========================================
   INSTAGRAM FLOATING BUTTON
   ========================================= */
.instagram-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 105px;
    right: 30px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 35%, #d6249f 60%, #285AEB 90%);
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-float:hover {
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(214, 36, 159, 0.6);
}


.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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