@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   RESET Y BASE — MPCIT Landing Page
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Neutraliza los estilos base de Bootstrap para no pisar el diseño propio */
p, ul, ol, figure {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #1a202c;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ============================================
   HEADER — glassmorphism + border animado
   ============================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 2px 20px rgba(37, 99, 235, 0.06);
}

header.scrolled::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(37, 99, 235, 0.45) 20%,
        rgba(6, 182, 212, 0.3) 50%,
        rgba(37, 99, 235, 0.45) 80%,
        transparent 100%);
    animation: headerBorderPulse 5s ease-in-out infinite;
}

@keyframes headerBorderPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand:hover .logo-img {
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.25));
}

.logo-img {
    height: 40px;
    width: auto;
    transition: filter 0.3s ease;
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
    color: #1a365d;
    letter-spacing: -0.3px;
}

.brand-text span {
    font-weight: 500;
    color: #4a5568;
    font-size: 15px;
}

.menu-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 13px 11px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

/* ============================================
   MENÚ LATERAL (offcanvas Bootstrap)
   ============================================ */

.side-menu {
    background: linear-gradient(165deg, #1e3a8a 0%, #1a2a6c 60%, #162252 100%);
    border-left: 1px solid rgba(96, 165, 250, 0.25);
    width: 320px;
    max-width: 86vw;
}

.side-menu .offcanvas-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-menu .offcanvas-body {
    padding: 12px 24px 28px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.side-nav a {
    padding: 13px 16px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.side-nav a:hover {
    color: #fff;
    background: rgba(96, 165, 250, 0.15);
    padding-left: 22px;
}

.side-cta {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-cta .btn {
    justify-content: center;
}

.side-cta .btn-contacto {
    justify-content: center;
}

.btn-contact {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.2);
}

.btn-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* ============================================
   HERO — imagen + texto impactante en azul
   ============================================ */

section[id] {
    scroll-margin-top: 80px;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 110px 5% 60px;
    overflow: hidden;
    background:
        linear-gradient(160deg,
            #1e3a8a 0%,
            #1e40af 30%,
            #1d4ed8 60%,
            #1e3a8a 100%);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    width: 600px;
    height: 600px;
    top: -250px;
    right: -180px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
}

.hero::after {
    width: 450px;
    height: 450px;
    bottom: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
}

.hero-left {
    position: relative;
    z-index: 1;
    flex: 1 1 520px;
    max-width: 620px;
    text-align: left;
}

.hero-right {
    position: relative;
    z-index: 1;
    flex: 1 1 480px;
    max-width: 620px;
}

.hero-bg {
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 100px rgba(37, 99, 235, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-bg:hover {
    transform: translateY(-4px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 50px rgba(37, 99, 235, 0.1);
}

.hero-bg img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.hero-bg:hover img {
    transform: scale(1.03);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}

.eyebrow svg {
    stroke: rgba(255, 255, 255, 0.8);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 500px;
    margin: 0 0 32px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    transition: all 0.3s ease;
}

.badge svg {
    stroke: rgba(255, 255, 255, 0.7);
}

.badge:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================
   SECCIONES — estilos compartidos
   ============================================ */

.section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 1.05rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   SERVICIOS
   ============================================ */

.servicios {
    padding: 48px 20px;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.06);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        #2563eb 30%,
        #06b6d4 70%,
        transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.12);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 24px;
    color: #2563eb;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.1));
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #4a5568;
}

.service-list svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #2563eb;
}

/* ============================================
   POR QUÉ MPCIT
   ============================================ */

.porque {
    padding: 48px 20px;
    background: linear-gradient(165deg, #d9e9fc 0%, #c2dbf9 55%, #d5e7fc 100%);
}

.porque-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.porque-text h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.porque-text p {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.7;
    max-width: 480px;
}

.pilos {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.pilo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.pilo:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.12);
}

.pilo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 12px;
    color: #2563eb;
    transition: all 0.3s ease;
}

.pilo:hover .pilo-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.1));
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.pilo span {
    font-size: 14px;
    font-weight: 600;
    color: #1a365d;
}

/* ============================================
   PROYECTOS
   ============================================ */

.proyectos {
    padding: 48px 20px;
    background: #fff;
}

.proyectos .section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.proyectos .section-header p {
    font-size: 1.05rem;
    color: #4a5568;
    max-width: 600px;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.proyecto-card {
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Color distintivo por proyecto */
.p-azul    { --acc:#2563eb; --acc2:#60a5fa; --acc-bg:rgba(37,99,235,.09);  --acc-c:#2563eb; }
.p-teal    { --acc:#0891b2; --acc2:#22d3ee; --acc-bg:rgba(8,145,178,.09);  --acc-c:#0891b2; }
.p-verde   { --acc:#059669; --acc2:#34d399; --acc-bg:rgba(5,150,105,.09);  --acc-c:#059669; }
.p-ambar   { --acc:#d97706; --acc2:#fbbf24; --acc-bg:rgba(217,119,6,.09);  --acc-c:#d97706; }
.p-violeta { --acc:#7c3aed; --acc2:#a78bfa; --acc-bg:rgba(124,58,237,.09); --acc-c:#7c3aed; }
.p-rosa    { --acc:#e11d48; --acc2:#fb7185; --acc-bg:rgba(225,29,72,.09);  --acc-c:#e11d48; }
.p-indigo  { --acc:#4f46e5; --acc2:#818cf8; --acc-bg:rgba(79,70,229,.09);  --acc-c:#4f46e5; }
.p-fucsia  { --acc:#d946ef; --acc2:#f0abfc; --acc-bg:rgba(217,70,239,.09); --acc-c:#d946ef; }

.proyecto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--acc), var(--acc2));
}

.p-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.p-icono {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--acc-bg);
    color: var(--acc-c);
    border: 1px solid rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.p-icono svg {
    width: 24px;
    height: 24px;
}

.proyecto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.1);
}

.proyecto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.proyecto-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.tag-activo {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.tag-desarrollo {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.18);
}

.proyecto-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-blue {
    background: #2563eb;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

.dot-green {
    background: #059669;
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.3);
}

.dot-purple {
    background: #7c3aed;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.3);
}

.tag-nuevo {
    background: rgba(217, 119, 6, 0.08);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.dot-amber {
    background: #d97706;
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.3);
}

.dot-teal {
    background: #0891b2;
    box-shadow: 0 0 8px rgba(8, 145, 178, 0.3);
}

.dot-rose {
    background: #e11d48;
    box-shadow: 0 0 8px rgba(225, 29, 72, 0.3);
}

.dot-indigo {
    background: #4f46e5;
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.3);
}

.proyecto-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 10px;
}

.proyecto-desc {
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
}

.proyecto-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
}

.meta-item svg {
    width: 12px;
    height: 12px;
    color: #2563eb;
    flex-shrink: 0;
}

.proyecto-soporte {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: #2563eb;
    align-self: flex-start;
}

.proyecto-soporte svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Fila inferior de la tarjeta: acceso / video / redes */

.p-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(37, 99, 235, 0.08);
}

.proyecto-redes {
    margin-left: auto;
    display: inline-flex;
    gap: 8px;
}

.p-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.p-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.p-btn-acceso {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.p-btn-acceso:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.p-btn-video {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(30, 58, 138, 0.03));
    border-color: rgba(30, 58, 138, 0.22);
    color: #1a365d;
}

.p-btn-video:hover {
    background: linear-gradient(135deg, #1e3a8a, #162252);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.p-btn-proximo {
    color: #64748b;
    background: rgba(71, 85, 105, 0.05);
    border: 1px dashed rgba(71, 85, 105, 0.35);
    cursor: default;
}

/* Tarjeta destacada: MPCIT - RemDin */

.destacado {
    grid-column: 1 / -1;
    color: #fff;
}

.destacado.p-violeta {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 55%, #6d28d9 100%);
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 15px 45px rgba(76, 29, 149, 0.35);
}

.destacado.p-violeta::before {
    background: linear-gradient(90deg, #fbbf24, #a78bfa);
}

.destacado.p-azul {
    background: linear-gradient(135deg, #0b1e3a 0%, #1e3a8a 55%, #1d4ed8 100%);
    border: 1px solid rgba(96, 165, 250, 0.35);
    box-shadow: 0 15px 45px rgba(30, 58, 138, 0.35);
}

.destacado.p-azul::before {
    background: linear-gradient(90deg, #fbbf24, #60a5fa);
}

.destacado-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 100px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #451a03;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    width: fit-content;
}

.destacado .p-icono {
    background: rgba(255, 255, 255, 0.12);
    color: #fbbf24;
    border-color: rgba(255, 255, 255, 0.2);
}

.destacado .tag-desarrollo {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.35);
}

.destacado .tag-activo {
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.4);
}

.destacado .proyecto-desc {
    color: rgba(255, 255, 255, 0.85);
}

.destacado h3 {
    color: #fff;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
}

.destacado .p-acciones {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.destacado .p-btn-video {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.destacado .p-btn-video:hover {
    background: #fff;
    border-color: transparent;
    color: #6d28d9;
    transform: translateY(-2px);
}

.p-btn-destacado {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #451a03;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.p-btn-destacado:hover {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
    color: #451a03;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
}

.destacado-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}

.destacado-info {
    display: flex;
    flex-direction: column;
}

.destacado-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.destacado-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.destacado-features svg {
    width: 18px;
    height: 18px;
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Modales: acceso y video */

.modal-acceso {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.modal-acceso .modal-header {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    border-bottom: none;
    padding: 16px 24px;
}

.modal-acceso .modal-header h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.modal-acceso .modal-body {
    padding: 22px 24px;
}

.acc-texto {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
}

.acc-botones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.acc-botones .btn-contacto {
    justify-content: center;
}

.btn-mail-claro {
    background: #eef2f8;
    color: #1a365d;
    border: 1px solid #d7e3f4;
    font-weight: 600;
}

.btn-mail-claro:hover {
    background: #e2eaf5;
    color: #1a365d;
}

.acc-continuar {
    margin-top: 14px;
}

.modal-video {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #0b1220;
}

.modal-video .modal-header {
    background: #111a2e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 18px;
}

.modal-video .modal-header h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.modal-video .modal-body {
    padding: 0;
}

.vid-player {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000;
}

.red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.red svg {
    width: 17px;
    height: 17px;
}

.red:hover {
    transform: translateY(-2px) scale(1.05);
    color: #fff;
}

.red-mail {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.red-wa {
    background: #25d366;
}

/* ============================================
   MODAL DE CONSULTA + AVISO DE ENVÍO
   ============================================ */

.modal-consulta {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.modal-consulta .modal-header {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    border-bottom: none;
    padding: 18px 24px;
}

.modal-consulta .modal-header h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.modal-consulta .modal-body {
    padding: 24px;
}

.modal-consulta .modal-lead {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 18px;
    line-height: 1.5;
}

.modal-consulta .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 6px;
}

.modal-consulta .form-control {
    border: 1px solid #d7e3f4;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1a202c;
}

.modal-consulta .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.modal-alt {
    font-size: 13px;
    color: #4a5568;
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}

.modal-alt a {
    color: #2563eb;
    font-weight: 600;
}

.modal-alt a:hover {
    text-decoration: underline;
}

.aviso-envio {
    display: none;
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: #e7f8ee;
    color: #116337;
    border: 1px solid #b5e6c9;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(17, 99, 55, 0.15);
    animation: avisoIn 0.4s ease;
    white-space: nowrap;
}

@keyframes avisoIn {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 480px) {
    .aviso-envio {
        white-space: normal;
        width: calc(100% - 32px);
        text-align: center;
    }
}

/* ============================================
   SOLUCIONES
   ============================================ */

.soluciones {
    padding: 48px 20px;
    background: linear-gradient(165deg, #d9e9fc 0%, #c2dbf9 55%, #d5e7fc 100%);
}

.soluciones .section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.soluciones .section-header p {
    font-size: 1.05rem;
    color: #4a5568;
    max-width: 600px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-card {
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.1);
}

.solution-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 14px;
    margin-bottom: 18px;
    color: #2563eb;
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.1));
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.solution-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 10px;
}

.solution-card p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

/* ============================================
   ASESORÍA — sistemas, desarrollos e IA
   ============================================ */

.asesoria {
    padding: 48px 20px;
    background: #fff;
}

.asesoria .p-btn {
    margin-top: 16px;
}

/* ============================================
   CTA FINAL
   ============================================ */

.final-cta {
    padding: 72px 20px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%,
            rgba(37, 99, 235, 0.08) 0%,
            transparent 70%),
        linear-gradient(180deg,
            #1e3a8a 0%,
            #1e40af 50%,
            #1e3a8a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before,
.final-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}

.final-cta::before {
    width: 550px;
    height: 550px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}

.final-cta::after {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -80px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
}

.final-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.final-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 36px;
    line-height: 1.7;
}

.final-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.final-cta .btn-primary {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

.final-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.final-cta .btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.final-cta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    background: #1fb857;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(180deg,
        #1e3a8a 0%,
        #1a2a6c 50%,
        #162252 100%);
    padding: 40px 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(96, 165, 250, 0.5) 15%,
        rgba(6, 182, 212, 0.35) 50%,
        rgba(96, 165, 250, 0.5) 85%,
        transparent 100%);
    animation: footerBorder 5s ease-in-out infinite;
}

@keyframes footerBorder {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.footer-logo span {
    color: #60a5fa;
}

.footer-slogan {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-contacto {
    display: flex;
    gap: 12px;
}

.btn-contacto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-wa {
    background: #25D366;
    color: #080c1a;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.2);
}

.btn-wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
    color: #080c1a;
}

.btn-mail {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-mail:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.footer-copy {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .porque-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .destacado-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        padding-top: 90px;
        gap: 0;
    }

    .hero-left {
        text-align: center;
        padding: 0 20px;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badges,
    .hero-ctas {
        justify-content: center;
    }

    .hero-right {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 30px;
        max-width: 350px;
        flex: none;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-contacto {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 62px;
        padding: 0 16px;
    }

    .brand-text {
        font-size: 16px;
    }

    .brand-text span {
        display: none;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-bg {
        max-width: 100%;
        border-radius: 12px;
    }
}
