/* 1. RESET & BASE */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --cream: #d7ecff;
    --dark: #1A1A1A;
    --dark2: #2D2D2D;
    --accent: #2A5F8F;
    /* Color de marca #2A5F8F definido por la usuaria */
    --accent-light: #679bcf;
    --muted: #555;
    --border: rgba(0, 0, 0, 0.1);
    --white: #ffffff;
    --success: #27c93f;
    --warning: #ffbd2e;
    --error: #ff5f56;
    --font-main: 'DM Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition-smooth: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. COMPONENTES DE SIMULACIÓN (MOCKUP DETALLADO) */
.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    perspective: 8000px;
    /*perpectiva del monitor*/
}

.mockup-window {
    background: var(--white);
    border-radius: 12px;
    /* Añadido borde curvo */
    overflow: hidden;
    transition: transform 0.5s ease;
    animation: mockupZoom 3s ease-in-out infinite;
}

/* 3. MONITOR CSS */
.monitor-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotateX(2deg) rotateY(-5deg);
    /* Mantenemos la perspectiva premium */
}

.monitor-frame {
    background: #111;
    padding: 10px;
    /* Marco un poco más ancho */
    border-radius: 10px;
    /* Bordes más curvos para acompañar la pantalla */
    /* Redondeado completo para escritorio */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    border: 10px solid #333;
    width: 100%;
    overflow: hidden;
    /* Para que el zoom no se salga del marco */
}

.monitor-bottom-bar {
    display: none;
    /* Oculto en escritorio */
    height: 40px;
    background: #222;
    border-radius: 0 0 20px 20px;
    border: 1px solid #333;
    border-top: none;
    position: relative;
    align-items: center;
    justify-content: center;
}

.monitor-bottom-bar::after {
    content: '';
    width: 30px;
    height: 30px;
    background: #333;
    border-radius: 50%;
    opacity: 10;
}

.monitor-neck {
    width: 80px;
    height: 60px;
    background: linear-gradient(to right, #222, #444, #222);
    margin-top: -5px;
}

.monitor-base {
    width: 220px;
    height: 12px;
    background: linear-gradient(to bottom, #333, #111);
    border-radius: 50px 50px 4px 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes mockupZoom {

    0%,
    100% {
        transform: scale(0.95);
    }

    50% {
        transform: scale(1.03);
    }
}

@keyframes mockupZoomMobile {

    0%,
    100% {
        transform: scale(0.98);
    }

    50% {
        transform: scale(1.01);
    }
}

.mockup-bar {
    background: #f1f3f5;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red {
    background: var(--error);
}

.dot-yellow {
    background: var(--warning);
}

.dot-green {
    background: var(--success);
}

.mockup-url {
    background: var(--white);
    padding: 5px 18px;
    border-radius: 8px;
    font-size: 0.72rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.mockup-body {
    padding: 24px;
    background: #fafbfc;
    min-height: 80px;
}

/* INTERIOR DEL MOCKUP (Simulación de UI) */
.sim-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.sim-logo {
    width: 45px;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
}

.sim-nav-links {
    display: flex;
    gap: 12px;
}

.sim-link {
    width: 28px;
    height: 7px;
    background: #e9ecef;
    border-radius: 4px;
}

.sim-link.active {
    background: var(--accent-light);
    opacity: 0.6;
}

.sim-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: flex-start;
}

.sim-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.sim-chip-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

.sim-btns {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.sim-btn {
    font-size: 0.55rem;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
}

.sim-btn--primary {
    background: var(--dark);
    color: var(--white);
}

.sim-btn--outline {
    border: 1px solid var(--dark);
    color: var(--dark);
}

/* CARD DENTRO DEL MOCKUP */
.sim-card-dark {
    background: var(--dark);
    padding: 18px;
    border-radius: 14px;
    color: white;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.sim-card-title {
    width: 70%;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    margin-bottom: 10px;
}

.sim-card-sub {
    width: 90%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 15px;
}

.sim-tags-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.sim-badge {
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-float-chip {
    position: absolute;
    bottom: -12px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 8px 16px rgba(42, 95, 143, 0.3);
}

/* =====================NAVEGACIÓN (DETALLADA) ===================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 6%;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Estado cuando se hace scroll */
nav.nav-scrolled {
    padding: 0.8rem 6%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: rotate(-10deg) scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark2);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--dark);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: badge-shine 4s infinite;
}

@keyframes badge-shine {
    0% {
        left: -100%;
    }

    20%,
    100% {
        left: 100%;
    }
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #28C840;
    border-radius: 50%;
    position: relative;
}

.badge-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #28C840;
    border-radius: 50%;
    animation: pulseAni 2s infinite;
}

.nav-buttons-mobile {
    display: none;
}

/* =====================BADGES FLOTANTES (REPARADOS)===================== */
.hero-mockup .mockup-badge {
    position: absolute;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
    white-space: nowrap;
}

/* Badge de velocidad (Oscuro) */
.mockup-badge--speed {
    bottom: -100px;
    left: -20px;
    background: var(--dark);
    transform: translate(-10%, -400%);
    /* Ajusta el centro */
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badge Live (Verde) */
.mockup-badge--live {
    top: 20px;
    right: -20px;
    background: #0091ff;
    color: var(--white);
}

.hero-mockup .mockup-badge--availability {
    display: none;
}

/* Animación del punto (Pulso)*/
.badge-pulse {
    width: 8px;
    height: 8px;
    background: greenyellow;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.badge-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: green;
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.33);
    }

    80%,
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Iconos dentro de los badges */
.mockup-badge svg {
    width: 14px;
    height: 14px;
}

@keyframes pulseAni {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* =====================HERO SECTION (DETALLADA)===================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
    padding: 8rem 6% 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: url('hero.webp') center center / cover no-repeat;
    filter: blur(2px) brightness(1.1);
    z-index: -1;
    image-rendering: -webkit-optimize-contrast;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--dark);
    margin-bottom: 1.8rem;
    letter-spacing: -0.03em;
}

.hero h1 span {
    color: var(--accent);
    font-style: italic;
    position: relative;
    display: inline-block;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 580px;
    margin-bottom: 2.5rem;
    font-weight: 520;
    line-height: 1.7;
}

.hero h2 {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--dark2);
}

.hero h2 .accent {
    color: var(--accent);
    font-weight: 800;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(42, 95, 143, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--dark);
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--dark);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

/* Efecto de destello para ambos botones */
.btn-primary::before,
.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover::before,
.btn-outline:hover::before {
    left: 100%;
}

/* MÉTRICAS SIMULADAS ADICIONALES */
.sim-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.sim-metric {
    background: var(--white);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.sim-metric-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.sim-metric-bar {
    height: 4px;
    background: #f1f3f5;
    border-radius: 2px;
    margin: 8px 0;
    overflow: hidden;
}

.sim-metric-fill {
    height: 100%;
    background: var(--success);
    border-radius: 2px;
}

.sim-metric-fill--blue {
    background: var(--accent);
}

.sim-metric-label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============ SECCIONES GENERALES & UTILIDADES   ============ */
section {
    padding: 8rem 6%;
    position: relative;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* =====================SOBRE MÍ (DETALLADO)===================== */
.about {
    position: relative;
    overflow: hidden;
    scroll-margin-top: -95px;
    padding-top: 10rem;
}

.about::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: url('sobremi2.jpg') center center / cover no-repeat;
    filter: blur(5px) brightness(1);
    z-index: -10;
    image-rendering: -webkit-optimize-contrast;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text p {
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text p strong {
    color: var(--dark);
    font-weight: 600;
}

.about-stats {
    display: flex;
    flex-direction: column;
    /* Por defecto, las tarjetas estarán una debajo de la otra */
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .about-stats {
        flex-direction: row;
        /* En pantallas grandes, las tarjetas estarán una al lado de la otra */
        justify-content: space-between;
    }

    .stat-card {
        flex: 1;
        margin: 0 10px;
        /* Espaciado entre las tarjetas */
    }
}

.stat-card {
    /*tarjetas de backend y frontend*/
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow:
        inset 0 0 25px rgba(255, 255, 255, 0.05),
        0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    opacity: 0.6;
}

.stat-card:nth-child(1)::after {
    background: #3b82f6;
}

.stat-card:nth-child(2)::after {
    background: #8b5cf6;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 0 40px rgba(255, 255, 255, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.15);
}

.stat-card:hover::after {
    height: 8px;
    opacity: 1;
}

/* Colores específicos para los glows de estas tarjetas */
.stat-card:nth-child(1) .service-glow {
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.stat-card:nth-child(2) .service-glow {
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark2);
    font-weight: 500;
}

.about-visual {
    position: relative;
    padding: 20px;
    margin-top: -20px;
    /* Ajustar este valor según sea necesario */
}

.about-card-main {
    background: var(--dark);
    border-radius: 24px;
    padding: 3.5rem;
    color: var(--white);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.about-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(42, 95, 143, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.about-card-main h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-card-main p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: rgba(11, 108, 164, 0.08);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent);
    transform: scale(1.08);
    border-color: transparent;
}

.about-card-float {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 18px;
    padding: 1.5rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 25px 50px rgba(42, 95, 143, 0.3);
    max-width: 220px;
    z-index: 2;
}

.about-card-float span {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

/* =====================SERVICIOS (EXTENDIDO)===================== */
.services {
    position: relative;
    overflow: hidden;
    scroll-margin-top: -5px;
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.services::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: url('servicios.jpg') center center / cover no-repeat;
    filter: blur(5px) brightness(0.9);
    z-index: -10;
    image-rendering: -webkit-optimize-contrast;
}

.services-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* Por defecto, una tarjeta por fila */
    gap: 20px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Dos tarjetas por fila en pantallas medianas */
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Cuatro tarjetas por fila en pantallas grandes */
    }
}

.service-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 3.5rem 2.5rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow:
        inset 0 0 25px rgba(255, 255, 255, 0.05),
        0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.service-card:nth-child(1)::after {
    background: #6366f1;
}

.service-card:nth-child(2)::after {
    background: #06b6d4;
}

.service-card:nth-child(3)::after {
    background: #f59e0b;
}

.service-card:nth-child(4)::after {
    background: #10b981;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 0 40px rgba(255, 255, 255, 0.1),
        0 40px 80px rgba(0, 0, 0, 0.2);
}

.service-card:hover::after {
    height: 8px;
    opacity: 1;
}

.service-card:hover .service-number {
    opacity: 0.08;
    transform: translateY(-10px);
    color: var(--accent-light);
}

/* Efecto de resplandor (Blob) */
.service-glow {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.2;
    transition: all 0.8s ease;
    z-index: -2;
    pointer-events: none;
    animation: float-glow 8s infinite ease-in-out;
}

/* Colores específicos para cada tarjeta */
.service-card:nth-child(1) .service-glow {
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}

.service-card:nth-child(2) .service-glow {
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}

.service-card:nth-child(3) .service-glow {
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
}

.service-card:nth-child(4) .service-glow {
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
}

.service-card:hover .service-glow {
    opacity: 0.6;
    width: 300px;
    height: 300px;
    top: -10%;
    right: -10%;
}

@keyframes float-glow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 30px);
    }
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--dark);
    position: relative;
}

.service-card p {
    font-size: 1rem;
    color: var(--dark2);
    line-height: 1.7;
    font-weight: 600;
    position: relative;
    opacity: 0.9;
}

/* =====================CONTACTO (INICIO)===================== */
.contact {
    position: relative;
    overflow: hidden;
    color: var(--white);
    scroll-margin-top: -100px;
    padding-top: 8rem;
    padding-bottom: 10rem;
}

.contact::before {
    content: '';
    position: absolute;
    inset: -10px;
    background:
        linear-gradient(to bottom,
            rgba(5, 10, 20, 0.85) 0%,
            rgba(5, 10, 20, 0.75) 50%,
            rgba(5, 10, 20, 0.9) 100%),
        url('contact2.jpg') center center / cover no-repeat;
    /* filter: blur(0px);
    z-index: -10;
    image-rendering: -webkit-optimize-contrast;*/
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.contact .section-label {
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.contact-desc {
    /*letras abajo de contacto*/
    font-size: 1.25rem;
    color: rgb(255, 255, 255);
    line-height: 1.8;
    margin-top: 2rem;
    max-width: 600px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-link {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.8rem 2.5rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: var(--white);
    box-shadow:
        inset 0 0 25px rgba(255, 255, 255, 0.05),
        0 15px 35px rgba(0, 0, 0, 0.3);
}

.contact-link:hover {
    transform: translateX(12px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.contact-glow {
    position: absolute;
    top: 50%;
    left: -20%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    filter: blur(40px);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.contact-link:nth-child(1) .contact-glow {
    background: radial-gradient(circle, #25D366 0%, transparent 70%);
}

.contact-link:nth-child(2) .contact-glow {
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.contact-link:hover .contact-glow {
    opacity: 0.4;
    left: -5%;
}

.contact-link-icon-new {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.5s ease;
    flex-shrink: 0;
}

.contact-link-icon-new svg {
    width: 26px;
    height: 26px;
}

.contact-link:hover .contact-link-icon-new {
    background: var(--white);
    color: var(--dark);
    transform: rotate(10deg);
}

.contact-link-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-link-text span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* =====================FOOTER (DETALLADO) ===================== */

footer {
    background: #031527;
    color: rgba(255, 255, 255, 0.603);
    text-align: center;
    padding: 1rem 6%;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    letter-spacing: 0.25rem;
    font-weight: 300;
}

/* =====================ANIMACIONES DE CARGA ===================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE DESIGN (EL BLOQUE MÁS GRANDE)=== */
/* LAPTOPS & TABLETS HORIZONTAL */
@media (max-width: 1200px) {
    .hero {
        gap: 2rem;
        padding-top: 8rem;
    }

    .about-grid,
    .contact-inner {
        gap: 4rem;
    }
}

/* TABLETS VERTICAL (992px) */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 10rem;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 4rem;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .about-grid,
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-visual {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* === RESPONSIVE DESIGN (CORREGIDO Y OPTIMIZADO)=== */

/* TABLETS Y SMARTPHONES (768px) - VERSIÓN COMPACTA */
@media (max-width: 768px) {
    nav {
        padding: 0.7rem 3%;
        justify-content: space-between;
        /* Asegura separación extrema */
        width: 100%;
    }

    .nav-logo {
        font-size: 1.1rem;
        /* Aumentado */
        gap: 10px;
        /* Espacio reducido entre logo y texto */
        margin-right: 5px;
        /* Pequeño margen para separar de los botones */
        flex-shrink: 1;
        /* Permite achicarse si no hay espacio */
        min-width: 0;
    }

    .nav-logo img {
        height: 45px !important;
        /* Aumentado */
    }

    /* Ocultar el segundo logo (el de la derecha) en móvil */
    .nav-logo img:last-child {
        display: none;
    }

    .nav-links,
    .nav-badge,
    .hero-cta {
        display: none !important;
    }

    .nav-buttons-mobile {
        display: flex;
        gap: 0.3rem;
        margin-left: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .nav-btn-mobile {
        padding: 0.4rem 0.7rem;
        /* Reducido para evitar solapamientos */
        border-radius: 50px;
        font-size: 0.75rem;
        /* Ajuste fino */
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        text-align: center;
    }

    .nav-btn-primary-mobile {
        background: var(--dark);
        color: var(--white);
    }

    .nav-btn-outline-mobile {
        border: 1px solid var(--dark);
        color: var(--dark);
    }

    /* REDUCCIÓN DE ESPACIOS EN EL HERO */
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        /* Reducimos el padding superior e inferior */
        padding: 4rem 5% 4rem !important;
        min-height: auto !important;
    }

    .price-note {
        margin: 1rem 0;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
    }

    .hero-inner {
        /* Eliminamos el margen inferior que separa el texto del mockup */
        margin-bottom: 0.5rem !important;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 0.95rem;
        /* Reducimos el margen inferior del último párrafo */
        margin-bottom: 0.8rem !important;
        line-height: 1.4;
    }

    /* La frase "Online, con identidad y presencia" */
    .hero h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem !important;
        /* Ajuste fino para que el mockup suba */
    }

    /* Mockup y Badges */
    .hero-mockup {
        width: 100%;
        max-width: 320px;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: -10px;
        margin-bottom: 2rem;
    }

    .monitor-container {
        transform: none !important;
        animation: none !important;
        width: 100%;
    }

    .monitor-frame {
        padding: 15px 15px 15px 15px;
        /* Sin padding abajo para que la barra se pegue */
        border-radius: 24px 24px 0 0;
        /* Bordes más redondeados tipo tablet */
        background: #111;
    }

    .monitor-bottom-bar {
        display: flex;
        height: 45px;
        background: #111;
        border-radius: 0 0 24px 24px;
        margin: 0 -100px -10px -100px;
        /*largor de donde este le boton*/
        border-top: none;
    }

    .monitor-bottom-bar::after {
        width: 25px;
        height: 25px;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    .monitor-neck,
    .monitor-base {
        display: none;
        /* Ocultamos el soporte en móvil para ahorrar espacio */
    }

    .mockup-window {
        width: 100%;
        animation: mockupZoomMobile 2s ease-in-out infinite;
        /* Zoom más lento y leve en móvil */
    }

    /* Ajustes del interior del mockup para mantener el diseño original en miniatura */
    .mockup-body {
        padding: 20px;
        /* Menos padding para ganar espacio */
    }

    .sim-hero {
        grid-template-columns: 1.1fr 0.9fr;
        /* Restauradas las 2 columnas */
        gap: 8px;
    }

    .sim-metrics {
        grid-template-columns: repeat(3, 1fr);
        /* Restauradas las 3 columnas */
        gap: 5px;
        margin-top: 15px;
    }

    .sim-metric-num {
        font-size: 0.8rem;
    }

    .sim-metric-label {
        font-size: 0.5rem;
    }

    .sim-btn {
        font-size: 0.45rem;
        padding: 4px 8px;
    }

    .sim-card-dark {
        padding: 10px;
    }

    .sim-tags-row {
        gap: 3px;
    }

    .sim-badge {
        font-size: 0.45rem;
        padding: 2px 4px;
    }

    .sim-float-chip {
        display: flex !important;
        font-size: 0.45rem;
        padding: 3px 6px;
        bottom: -5px;
        right: -5px;
    }

    .hero-mockup .mockup-badge--availability {
        position: relative;
        top: -349px;
        left: auto;
        transform: none;
        display: flex !important;
        margin-top: -6rem;
        padding: 8px 20px;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        color: var(--dark);
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        border-radius: 50px;
        font-weight: 800;
        overflow: hidden;
    }

    .hero-mockup .mockup-badge--availability::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: badge-shine 3s infinite;
    }

    .mockup-badge--speed,
    .mockup-badge--live {
        display: none !important;
    }

    /* Otras secciones */
    .about {
        padding-top: 2rem !important;
        padding-bottom: 4rem !important;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 2.2rem 1.8rem;
        border-radius: 24px;
    }

    .service-glow {
        width: 150px;
        height: 150px;
    }

    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-card {
        padding: 1.5rem;
    }
}

/* TELÉFONOS PEQUEÑOS (480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.1rem;
    }



    .mockup-window {
        border-radius: 12px;
    }

    .mockup-bar {
        padding: 10px 15px;
    }

    .about-card-main {
        padding: 2rem 1.5rem;
    }

    .about-card-float {
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
        max-width: 160px;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* FIX DISPOSITIVOS MINI (360px) */
@media (max-width: 360px) {
    .nav-btn-outline-mobile {
        display: none;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* FIX específico para pantallas extremadamente pequeñas (ej. 320px) */
@media (max-width: 360px) {
    nav {
        padding: 0.5rem 2% !important;
    }

    .nav-logo {
        font-size: 0.95rem !important;
        gap: 5px !important;
    }

    .nav-logo img {
        height: 35px !important;
    }

    .nav-buttons-mobile {
        gap: 4px !important;
    }

    .nav-btn-mobile {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
}

/* Soporte reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===================== NOTA DE PRECIOS (SERVICIOS) ===================== */
/* Contenedor de la nota al final de la sección */
.services-footer {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Diseño tipo Nota Informativa (Sólido y Elegante) */
.price-note {
    background: var(--accent);
    padding: 1.2rem 2.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--accent-light);
    max-width: 800px;
    position: relative;
    /* Eliminamos la animación de flotación para que se sienta más "firme" */
}

.price-note::before {
    content: 'i';
    font-family: serif;
    font-weight: 900;
    font-style: italic;
    background: var(--accent-light);
    color: var(--dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.price-note p {
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .services-footer {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }

    .price-note {
        padding: 1.2rem 1.5rem;
        border-radius: 12px;
        text-align: left;
        width: 90%;
        margin: 0 auto;
        gap: 15px;
    }

    .price-note p {
        font-size: 1rem;
    }
}

/* ===================== ANIMACIÓN DE CURSOR (GLOW) ===================== */
/* Este elemento crea un resplandor que ilumina de forma intensa el fondo */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    /* Mayor opacidad en el centro y una caída más lenta para que el área de luz sea más grande */
    background: radial-gradient(circle, rgba(151, 149, 149, 0.6) 0%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0) 80%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: screen;
    /* Screen es ideal para efectos de luz intensa */
    will-change: transform, opacity;
}

@media (max-width: 768px) {
    .cursor-glow {
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
        mix-blend-mode: screen;
    }
}

/* ===================== BARRA DE PROGRESO DE SCROLL ===================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--accent-light));
    z-index: 10001;
    transition: width 0.2s ease-out;
}

/* ===================== EFECTO FOCUS PARA TARJETAS (MÓVIL) ===================== */
@media (max-width: 768px) {
    .service-card.mobile-focus {
        transform: scale(1.03) translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.46);
    }
}