/* =====================================================
   IDEA Impulso - Landing Page Styles
   Color Principal: #688FCD (Azul Corporativo)
   Estilo: Dark Luxury + Confianza + Cercanía
   ===================================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fondos */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Color Principal - Azul Corporativo */
    --primary-50: #EBF2FA;
    --primary-100: #D7E5F5;
    --primary-200: #AFCBEB;
    --primary-300: #87B1E1;
    --primary-400: #7FA0DA;
    --primary-500: #688FCD;
    /* Color base */
    --primary-600: #5272A4;
    --primary-700: #3D567B;
    --primary-800: #293952;
    --primary-900: #141D29;

    /* Textos */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Acentos */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;

    /* Fuentes */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== PARTÍCULAS DE FONDO ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.2s ease-out;
    /* Para el movimiento fluido con mouse */
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    25% {
        transform: translate(100px, -100px);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50px, -200px);
        opacity: 0.4;
    }

    75% {
        transform: translate(-100px, -100px);
        opacity: 0.6;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(104, 143, 205, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 12px;
}

.nav-link:hover {
    color: var(--primary-300);
    text-shadow: 0 0 10px rgba(104, 143, 205, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background: radial-gradient(ellipse at top, rgba(104, 143, 205, 0.08) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(104, 143, 205, 0.1);
    border: 1px solid rgba(104, 143, 205, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-300);
    margin-bottom: 24px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.text-gradient {
    background: linear-gradient(90deg,
            var(--primary-400),
            var(--primary-200),
            var(--primary-500),
            var(--primary-300),
            var(--primary-400));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine-text 3s linear infinite;
}

@keyframes shine-text {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s forwards;
    opacity: 0;
}

.hero-trust {
    display: flex;
    gap: 48px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-400);
    line-height: 1;
}

.trust-label {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.hero-visual {
    position: relative;
    animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.hero-image-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(104, 143, 205, 0.3);
    /* Borde casi invisible */
    box-shadow:
        0 0 0 2px rgba(104, 143, 205, 0.1),
        0 10px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(104, 143, 205, 0.2);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Efecto de marco de luz líquido detrás del hero */
.hero-image-placeholder::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: conic-gradient(from 0deg,
            transparent,
            var(--primary-500),
            var(--primary-300),
            var(--primary-500),
            transparent);
    border-radius: 26px;
    z-index: 1;
    animation: rotate-border 4s linear infinite;
    filter: blur(4px);
    opacity: 0.6;
}

.hero-image-placeholder::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--bg-primary);
    border-radius: 25px;
    z-index: 1;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(104, 143, 205, 0.4) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite, rotate-glow 20s linear infinite;
}

@keyframes rotate-glow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Efecto de Destello Ambiental */
.ambient-flare {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(104, 143, 205, 0.15) 0%, transparent 80%);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    animation: move-flare 25s infinite alternate ease-in-out;
}

@keyframes move-flare {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(150vw, 100vh);
    }

    100% {
        transform: translate(50vw, -50vh);
    }
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 30%, var(--primary-400) 60%, var(--primary-500) 100%);
    background-size: 200% 200%;
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(104, 143, 205, 0.5),
        0 4px 24px rgba(104, 143, 205, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: gradient-shift 4s ease infinite;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 0 2px rgba(104, 143, 205, 0.8),
        0 8px 40px rgba(104, 143, 205, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(104, 143, 205, 0.3);
}

.btn-secondary:hover {
    background: rgba(104, 143, 205, 0.1);
    border-color: var(--primary-500);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 48px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: linear-gradient(135deg, rgba(104, 143, 205, 0.08) 0%, rgba(104, 143, 205, 0.04) 50%, rgba(104, 143, 205, 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(104, 143, 205, 0.15);
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(104, 143, 205, 0.35);
    box-shadow: 0 25px 50px -12px rgba(104, 143, 205, 0.25);
    transform: translateY(-4px);
}

/* ===== SECCIONES ===== */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(104, 143, 205, 0.1);
    border: 1px solid rgba(104, 143, 205, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-300);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== SERVICIOS - FLIP CARDS ===== */
.services {
    background: radial-gradient(ellipse at center, rgba(104, 143, 205, 0.05) 0%, transparent 70%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card-flip {
    perspective: 1000px;
    height: 400px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    pointer-events: none;
    /* Las caras no detectan el mouse, solo el padre */
}

/* El padre detecta todo, las caras son solo visuales */
.service-card-flip {
    perspective: 1000px;
    height: 400px;
    cursor: pointer;
}

.service-card-front {
    background: var(--bg-tertiary);
    z-index: 2;
}

.service-card-back {
    background: var(--bg-tertiary);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    border: 1px solid rgba(104, 143, 205, 0.4);
    z-index: 1;
    position: relative;
    overflow: hidden;
    /* Blindaje para no invadir tarjetas vecinas */
}

/* Resplandor sutil SOLO en las esquinas para no saturar el centro */
.service-card-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(104, 143, 205, 0.3) 0%, transparent 80px),
        radial-gradient(circle at 100% 0%, rgba(104, 143, 205, 0.3) 0%, transparent 80px),
        radial-gradient(circle at 0% 100%, rgba(104, 143, 205, 0.3) 0%, transparent 80px),
        radial-gradient(circle at 100% 100%, rgba(104, 143, 205, 0.3) 0%, transparent 80px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    animation: neon-energy 4s ease-in-out infinite;
    pointer-events: none;
}

/* Marco Neón Reforzado: Elegante y definido en el perímetro */
.service-card-back::after {
    content: '';
    position: absolute;
    inset: 4px;
    /* Un poco hacia adentro para resaltar el borde real */
    border: 2px solid var(--primary-500);
    border-radius: 24px;
    opacity: 0;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        0 0 20px var(--primary-500),
        inset 0 0 10px var(--primary-500);
    pointer-events: none;
}

.service-card-flip:hover .service-card-back::after,
.service-card-flip.is-active .service-card-back::after,
.service-card-flip:hover .service-card-back::before,
.service-card-flip.is-active .service-card-back::before {
    opacity: 1;
}

@keyframes neon-energy {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Eliminamos el brillo de portada por petición del usuario */
.service-card-front::after {
    display: none;
}



.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(104, 143, 205, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-flip:hover .service-image {
    transform: scale(1.1);
    border-color: var(--primary-400);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    /* Reducido un poco para mobile */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 4;
}

@media (max-width: 768px) {
    .service-overlay {
        padding: 16px;
    }
}

.service-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(104, 143, 205, 0.5));
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

.service-title-front {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}



.service-icon-back {
    font-size: 56px;
    margin-bottom: 16px;
}

.service-title-back {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-300);
}

.service-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-tag {
    padding: 6px 16px;
    background: rgba(104, 143, 205, 0.15);
    border: 1px solid rgba(104, 143, 205, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-300);
}

/* ===== PROCESO ===== */
.process {
    background: var(--bg-secondary);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    width: 2px;
    height: calc(100% + 48px);
    background: linear-gradient(to bottom, var(--primary-500), transparent);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 0 40px rgba(104, 143, 205, 0.4);
    position: relative;
    z-index: 1;
}

.step-content {
    padding-top: 8px;
}

.step-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-300);
}

.step-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== PROYECTOS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.project-card {
    overflow: hidden;
    padding: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    /* Indispensable para el efecto flare */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(104, 143, 205, 0.2);
}

.project-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(104, 143, 205, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.1);
    border-bottom-color: var(--primary-500);
}

/* Destello de lente al hacer hover en proyectos */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(115deg,
            transparent 0%,
            rgba(104, 143, 205, 0.1) 40%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(104, 143, 205, 0.1) 60%,
            transparent 100%);
    transition: all 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

/* Destello activo por scroll en mobile */
.project-card.is-active::after {
    animation: mobile-shine 1s ease-out forwards;
}

@keyframes mobile-shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.project-card:hover::after {
    left: 100%;
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    background: var(--primary-500);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    z-index: 10;
    /* Asegurar que siempre esté arriba */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .project-badge {
        top: 15px;
        right: 15px;
        font-size: 11px;
    }
}

.project-info {
    padding: 24px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    /* Reducido un poco */
    color: var(--primary-300);
}

.project-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    /* Color destacado */
    margin-bottom: 12px;
    display: block;
    line-height: 1.4;
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-stats {
    display: flex;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-400);
}

/* ===== NOSOTROS ===== */
.about {
    background: radial-gradient(ellipse at center, rgba(104, 143, 205, 0.05) 0%, transparent 70%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(104, 143, 205, 0.3);
    box-shadow:
        0 20px 40px -20px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(104, 143, 205, 0.1);
    transition: all 0.5s ease;
}

.about-image:hover .about-img {
    border-color: var(--primary-500);
    box-shadow: 0 0 30px rgba(104, 143, 205, 0.3);
}

.about-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(104, 143, 205, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.about-content .section-label {
    margin-bottom: 16px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.value-text h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary-300);
}

.value-text p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ===== CTA FINAL ===== */
.cta-final {
    background: radial-gradient(ellipse at center, rgba(104, 143, 205, 0.2) 0%, rgba(104, 143, 205, 0.05) 50%, transparent 100%);
    padding: 120px 0;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-note {
    margin-top: 24px;
    font-size: 16px;
    color: var(--primary-300);
    font-weight: 500;
}

.cta-note-urgent {
    color: #ff4d4d !important;
    /* Rojo vibrante y llamativo */
    font-weight: 700;
}

/* ===== CONTACTO ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-300);
}

.contact-details p,
.contact-details a {
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-400);
}

.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(104, 143, 205, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(104, 143, 205, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary-400);
    text-decoration: underline;
}

.form-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(104, 143, 205, 0.1);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-text {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-300);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(104, 143, 205, 0.1);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-quaternary);
}

/* ===== ANIMACIONES ===== */
@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: rotate(-5deg) scale(0.95);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }

    75% {
        transform: translateY(-30px) rotate(1deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-title {
        font-size: 48px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 999;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active {
        display: flex;
        animation: fade-in 0.3s ease forwards;
    }

    .nav-links.active .nav-link {
        font-size: 24px;
        font-weight: 700;
        color: white;
    }

    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    /* Animación de la hamburguesa a X */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-trust {
        flex-direction: column;
        gap: 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        height: 350px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .step-title {
        font-size: 22px;
    }

    .cta-title {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    /* Reducir partículas en mobile */
    .particle:nth-child(n+15) {
        display: none;
    }
}