/* =============================================
   VARIABLES Y BASE
   ============================================= */
:root {
    --color-principal: #0F172A;
    --color-secundario: #2563EB;
    --color-fondo: #F8FAFC;
    --color-texto: #1F2937;
    --color-acento: #94A3B8;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Merriweather Sans', sans-serif;
    color: var(--color-texto);
    background-color: var(--color-fondo);
    overflow-x: hidden;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    background-color: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.navbar-brand,
.nav-link {
    color: var(--color-fondo) !important;
}

.nav-link {
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-secundario) !important;
}

.nav-link.active-section {
    color: var(--color-secundario) !important;
    font-weight: 700;
}

/* =============================================
   HERO / MASTHEAD
   ============================================= */
.masthead {
    padding-top: 9rem;
    padding-bottom: 6rem;
    background: radial-gradient(circle at 60% 40%, #1e293b 0%, var(--color-principal) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    background-size: cover;
}

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

/* ROLE TAG */
.hero-role-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--color-secundario);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 6px;
    padding: 0.3rem 0.85rem;
    display: inline-block;
    letter-spacing: 0.02em;
}

.header-title-main {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.header-title-sub {
    font-size: 1.1rem;
    color: #CBD5E1;
    min-height: 2.5rem;
    line-height: 1.65;
    max-width: 520px;
}

/* METRIC PILLS */
.hero-metric-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

@media (min-width: 992px) {
    .hero-metric-pills { justify-content: center; }
    .header-title-sub { margin: 0 auto; }
    .hero-text-col { margin-left: -6rem; }
}

.hero-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* PHOTO WRAPPER */
.hero-photo-wrapper {
    position: relative;
    display: inline-block;
}

.hero-photo-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
    z-index: 0;
}

.profile-photo {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 4px solid var(--color-secundario);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.45);
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 55px rgba(37, 99, 235, 0.65);
}

@media (max-width: 991px) {
    .masthead { padding-top: 8rem; padding-bottom: 5rem; text-align: center; }
    .header-title-main { font-size: 2.8rem; }
    .header-title-sub { max-width: 100%; margin: 0 auto; }
    .profile-photo { width: 200px; height: 200px; }
    .hero-photo-wrapper::before { width: 250px; height: 250px; }
    .hero-text-col { margin-top: 2rem; }
}

/* =============================================
   SECCIONES GENERALES
   ============================================= */
.page-section {
    padding: 5rem 0;
    overflow-x: hidden;
}

/* Aire extra tras bloques muy densos (Sobre mí + widget, antes de Visión) */
#about.page-section {
    padding-bottom: 6.25rem;
}

@media (min-width: 992px) {
    #about.page-section {
        padding-bottom: 7.5rem;
    }
}

/* Separación suave antes del bloque claro + vídeo */
#valor.page-section {
    padding-top: 5.5rem;
    padding-bottom: 5.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
}

@media (min-width: 992px) {
    #valor.page-section {
        padding-top: 6.25rem;
        padding-bottom: 6.5rem;
    }
}

.valor-caption {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Títulos de sección: una sola escala en todo el scroll */
.section-title {
    font-weight: 700;
    font-size: clamp(1.6rem, 3.1vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 2.75rem;
    position: relative;
    text-align: center;
    color: var(--color-principal);
}

.section-title::after {
    content: '';
    width: 48px;
    height: 3px;
    background: var(--color-secundario);
    position: absolute;
    bottom: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* =============================================
   STATUS BADGE
   ============================================= */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ADE80;
    padding: 0.5rem 1.1rem;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.status-badge-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.4;
    text-align: center;
}

.status-badge-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-badge-highlight {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    70%  { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    background: linear-gradient(180deg, #1e293b 0%, #0F172A 70%, #1a2540 100%);
    padding: 3.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-secundario);
    line-height: 1;
    font-family: 'Merriweather Sans', sans-serif;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secundario);
    line-height: 1;
    display: inline;
    margin-left: 2px;
}

.stat-prefix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secundario);
    line-height: 1;
    display: inline;
    margin-right: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

/* =============================================
   SOBRE MÍ
   ============================================= */
.about-closing {
    font-weight: 700;
    color: var(--color-secundario);
    font-size: 1.25rem;
    border-left: 4px solid var(--color-secundario);
    padding: 1rem 1.25rem;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 0 8px 8px 0;
    text-align: left;
    max-width: 480px;
    margin-top: 1.75rem;
}

/* =============================================
   ABOUT — DATA WIDGET
   ============================================= */
.data-widget {
    background: #0F172A;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.data-widget-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.data-widget-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.data-widget-dot.red    { background: #FF5F57; }
.data-widget-dot.yellow { background: #FFBD2E; }
.data-widget-dot.green  { background: #28C840; }

.data-widget-title {
    font-size: 0.75rem;
    color: #64748B;
    margin-left: 0.5rem;
    font-family: monospace;
}

.data-widget-body {
    padding: 2rem;
}

/* DW SECTIONS */
.dw-section {
    margin-bottom: 1.25rem;
}

.dw-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.dw-label {
    font-size: 0.58rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: monospace;
}

.dw-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-secundario);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.28);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-family: monospace;
}

/* PROGRESS BARS */
.dw-progress-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dw-progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dw-prog-label {
    font-size: 0.7rem;
    color: #94A3B8;
    width: 58px;
    flex-shrink: 0;
    font-family: monospace;
}

.dw-prog-bar-wrap {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.dw-prog-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.55), rgba(37, 99, 235, 0.85));
    border-radius: 3px;
    animation: prog-grow 1s ease forwards;
    animation-delay: var(--prog-delay, 0.4s);
}

.dw-prog-bar--accent {
    background: linear-gradient(90deg, #2563EB, #60A5FA);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

.dw-progress-row:nth-child(1) .dw-prog-bar { --prog-delay: 0.3s; }
.dw-progress-row:nth-child(2) .dw-prog-bar { --prog-delay: 0.5s; }
.dw-progress-row:nth-child(3) .dw-prog-bar { --prog-delay: 0.7s; }
.dw-progress-row:nth-child(4) .dw-prog-bar { --prog-delay: 0.9s; }

@keyframes prog-grow {
    to { width: var(--prog); }
}

.dw-prog-val {
    font-size: 0.68rem;
    color: #60A5FA;
    font-weight: 700;
    font-family: monospace;
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

/* DIVIDER */
.dw-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 1.25rem 0;
}

/* KPI LIST */
.dw-kpi-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dw-kpi-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dw-kpi-row:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.dw-kpi-icon {
    color: var(--color-secundario);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.dw-kpi-name {
    flex: 1;
    font-size: 0.72rem;
    color: #94A3B8;
}

.dw-kpi-value {
    font-size: 0.74rem;
    font-weight: 700;
    color: #E2E8F0;
    font-family: monospace;
}

.data-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #4ADE80;
    font-family: monospace;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.2rem;
}

.data-status-dot {
    width: 7px;
    height: 7px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

/* =============================================
   PARTÍCULAS HERO
   ============================================= */
#particles-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#particles-hero canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    #particles-hero {
        width: 100% !important;
        overflow: hidden !important;
    }

    #particles-hero canvas {
        width: 100% !important;
        max-width: 100vw !important;
    }

    .masthead {
        overflow: hidden !important;
    }
}

/* =============================================
   INDUSTRIAS TARGET
   ============================================= */
.industry-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.industry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    border-color: var(--color-secundario);
}

.industry-icon {
    font-size: 2.5rem;
    color: var(--color-secundario);
    margin-bottom: 1rem;
    display: block;
}

.industry-title {
    font-weight: 700;
    color: var(--color-principal);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.industry-desc {
    font-size: 0.88rem;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.industry-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.industry-badge {
    background: rgba(37, 99, 235, 0.06);
    color: var(--color-secundario);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.industry-badge--link {
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.industry-badge--link:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.industry-badge--dev {
    background: rgba(148, 163, 184, 0.06);
    color: var(--color-acento);
    border: 1px dashed rgba(148, 163, 184, 0.35);
    font-style: italic;
    opacity: 0.75;
}


/* =============================================
   FEATURED PROJECTS — SECCIÓN Y TABS
   ============================================= */

.featured-section-intro {
    background: var(--color-fondo);
    padding: 4.5rem 0 3rem;
    border-top: 1px solid rgba(226, 232, 240, 0.65);
}

.featured-section-subtitle {
    color: #64748B;
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 36rem;
    margin: 0 auto;
    margin-top: -0.35rem;
}

/* MÉTRICAS EN FILA PROPIA */
.featured-metrics-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.35rem;
}

.featured-section {
    background: linear-gradient(180deg, #1a2540 0%, #0F172A 8%, #1e293b 50%, #0F172A 92%, #1a2540 100%);
    padding: 2rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.featured-label {
    text-align: center;
    margin-bottom: 1rem;
}

.featured-label span {
    background: rgba(37, 99, 235, 0.15);
    color: var(--color-secundario);
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.featured-tabs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.75rem 0 3rem;
}

.featured-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.featured-tab:hover {
    border-color: var(--color-secundario);
    color: var(--color-secundario);
}

.featured-tab.active {
    background: var(--color-secundario);
    border-color: var(--color-secundario);
    color: white;
}

.featured-content {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: translateY(12px);
}

.featured-content.active {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .featured-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .featured-tab {
        width: 80%;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* HEADER: título + métricas en fila */
.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
}

/* Bajo el h2 del intro "Proyectos Destacados" — jerarquía de caso (h3) */
.featured-title {
    font-size: clamp(1.28rem, 2.4vw, 1.55rem);
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    line-height: 1.32;
    letter-spacing: -0.015em;
    flex: 1;
    min-width: 200px;
}

.featured-header-metrics {
    display: flex;
    gap: 1.25rem;
    flex-shrink: 0;
}

.featured-header-metrics .featured-metric {
    min-width: auto;
    padding: 0.75rem 1rem;
    text-align: center;
}

.featured-header-metrics .featured-metric-value {
    font-size: 1.8rem;
}

/* STORY CARD: contenedor flex para empujar flow al fondo */
.featured-story-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .featured-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .featured-header-metrics { gap: 0.75rem; }
    .featured-header-metrics .featured-metric-value { font-size: 1.4rem; }
}

/* MÉTRICAS */
.featured-metrics {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.featured-metric {
    text-align: center;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 1.2rem 2rem;
    min-width: 180px;
    transition: all 0.3s ease;
}

.featured-metric:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--color-secundario);
    transform: translateY(-4px);
}

.featured-metric-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-secundario);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.featured-metric-label {
    font-size: 0.8rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.featured-metric-note {
    font-size: 0.68rem;
    color: #475569;
    font-style: italic;
    margin-top: 0.25rem;
    display: block;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .featured-metrics { gap: 1rem; }
    .featured-metric { min-width: 140px; padding: 1rem; }
}

/* FLUJO */
.featured-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.featured-flow-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    min-width: min(220px, 100%);
    max-width: 280px;
    transition: all 0.3s ease;
}

.featured-flow-item:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

.featured-flow-icon {
    font-size: 1.8rem;
    color: var(--color-secundario);
    margin-bottom: 0.8rem;
}

.featured-flow-item h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.featured-flow-item p {
    color: #94A3B8;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.featured-flow-arrow {
    font-size: 1.5rem;
    color: rgba(37, 99, 235, 0.5);
    align-self: center;
    padding-top: 0.5rem;
}

@media (max-width: 768px) {
    .featured-flow-arrow { display: none; }
}

/* GALERÍA DASHBOARD */
.dashboard-gallery {
    margin: 3rem 0;
}

.dashboard-gallery-title {
    text-align: center;
    color: #94A3B8;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* CARRUSEL */
.dashboard-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    touch-action: pan-y;
}

.dashboard-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.dashboard-carousel-slide {
    min-width: 100%;
    position: relative;
}

.dashboard-carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.col-md-6 .dashboard-carousel-slide img {
    height: 280px;
}

.dashboard-carousel-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    text-align: center;
    padding: 1rem 0.5rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 0 0 12px 12px;
}

.dashboard-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
}

.carousel-nav-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 0.2rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.carousel-nav-btn:hover {
    color: var(--color-secundario);
}

.dashboard-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dashboard-carousel-dot.active {
    background: var(--color-secundario);
}

/* INSIGHTS */
.featured-insights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.col-md-6 .featured-insights {
    margin-top: 2.8rem;
    max-width: 100%;
    margin-bottom: 0;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    transition: all 0.3s ease;
}

.insight-item:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
}

.insight-icon {
    font-size: 1.2rem;
    color: var(--color-secundario);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.insight-icon.warning {
    color: #FBBF24;
}

.insight-item p {
    color: #94A3B8;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.insight-item strong {
    color: #ffffff;
}

/* =============================================
   BROWSER FRAME (carrusel hero)
   ============================================= */
.dashboard-browser-frame {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.browser-chrome {
    background: #1e293b;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.browser-dot.red    { background: #FF5F57; }
.browser-dot.yellow { background: #FFBD2E; }
.browser-dot.green  { background: #28C840; }

.browser-bar {
    flex: 1;
    min-width: 0;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    overflow: hidden;
}

.browser-url {
    font-size: 0.68rem;
    color: #475569;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-browser-frame .dashboard-carousel {
    border-radius: 0;
    background: #0a0f1a;
}

.dashboard-browser-frame .dashboard-carousel-slide {
    background: #0a0f1a;
}

.dashboard-browser-frame .dashboard-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.dashboard-browser-frame .dashboard-carousel-label {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    padding: 2rem 0.75rem 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 0;
}

/* SUBTÍTULO E INSIGHTS DENTRO DE COL-LG-5 */
.col-lg-5 .featured-subtitle {
    text-align: left;
    max-width: 100%;
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.65;
}

.col-lg-5 .featured-insights {
    margin: 0;
    max-width: 100%;
}

/* FLUJO COMPACTO */
.featured-flow-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 2.5rem 0 1rem;
    flex-wrap: wrap;
}

.flow-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #93C5FD;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.flow-chip:hover {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.4);
}

.flow-arrow {
    color: rgba(37, 99, 235, 0.4);
    font-size: 1rem;
}

@media (max-width: 991px) {
    /* Ocultar URL text en mobile — los dots son suficiente */
    .browser-url { display: none; }

    /* Flow chips: horizontales pero más compactos */
    .flow-chip {
        font-size: 0.78rem;
        padding: 0.35rem 0.85rem;
    }

    /* Ocultar flechas entre chips al hacer wrap */
    .flow-arrow { display: none; }
}

/* FOOTER DEL FEATURED */
.featured-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.featured-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.featured-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-secundario);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* FEATURED FOOTER — MOBILE (unificado) */
@media (max-width: 768px) {
    .featured-footer {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .featured-tech {
        justify-content: center;
        gap: 0.4rem;
    }

    .featured-badge {
        font-size: 0.72rem;
        padding: 0.2rem 0.55rem;
    }

    .featured-footer .btn {
        width: 100%;
    }
}

/* =============================================
   STACK TÉCNICO — SKILL COLUMNS Y BADGES
   ============================================= */
.skill-column {
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #ffffff;
    transition: all 0.3s ease;
}

.skill-column:hover {
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    border-color: var(--color-secundario);
    transform: translateY(-6px);
}

.skill-badge {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--color-secundario);
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    margin: 0.25rem;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.skill-badge:hover {
    background-color: var(--color-secundario);
    color: white;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.ai-badge {
    background: rgba(99, 37, 235, 0.06) !important;
    border: 1px solid rgba(99, 37, 235, 0.25) !important;
    color: #7C3AED !important;
    font-weight: 700 !important;
}

/* =============================================
   SOFT SKILLS
   ============================================= */
.soft-skill-icon {
    font-size: 2.2rem;
    color: var(--color-secundario);
    margin-bottom: 1rem;
    display: block;
}

#tab-interpersonal .p-4 {
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
}

#tab-interpersonal .p-4:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08) !important;
    border-color: var(--color-secundario);
}

/* =============================================
   TABS DE HABILIDADES
   ============================================= */
.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.skills-tab {
    background: white;
    border: 1px solid #E2E8F0;
    color: #64748B;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.skills-tab:hover {
    border-color: var(--color-secundario);
    color: var(--color-secundario);
}

.skills-tab.active {
    background: var(--color-secundario);
    border-color: var(--color-secundario);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* =============================================
   TABS DE FORMACIÓN
   ============================================= */
.formation-tabs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.formation-tab {
    background: white;
    border: 1px solid #E2E8F0;
    color: #64748B;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.formation-tab:hover {
    border-color: var(--color-secundario);
    color: var(--color-secundario);
}

.formation-tab.active {
    background: var(--color-secundario);
    border-color: var(--color-secundario);
    color: white;
}

.formation-content {
    display: none;
}

.formation-content.active {
    display: block;
}

/* =============================================
   CERTIFICACIONES — CREDENTIAL CARDS
   ============================================= */
.cert-credential-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 0 auto;
}

.cert-credential {
    display: flex;
    flex-direction: column;
    position: relative;
    background: white;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cert-credential:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

.cert-cred-left {
    background: linear-gradient(160deg, #0F172A 0%, #1e293b 100%);
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.cert-cred-org {
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.3;
}

.cert-cred-seal {
    font-size: 1.5rem;
    color: var(--color-secundario);
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.6));
}

.cert-cred-right {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cert-cred-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cert-cred-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-principal);
    margin: 0;
    line-height: 1.3;
}

.cert-cred-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cert-cred-date {
    font-size: 0.75rem;
    color: var(--color-acento);
}

.cert-cred-done {
    font-size: 0.72rem;
    font-weight: 700;
    color: #16A34A;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.2);
    padding: 0.18rem 0.6rem;
    border-radius: 20px;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cert-badge {
    background: rgba(37, 99, 235, 0.05);
    color: var(--color-secundario);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 600;
}

@media (max-width: 992px) {
    .cert-credential-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .cert-credential-list { grid-template-columns: 1fr; }
}

/* Botón Ver credencial */
.cert-view-btn {
    position: absolute;
    bottom: 0.9rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-secundario);
    background: white;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.cert-credential:hover .cert-view-btn {
    opacity: 1;
    transform: translateY(0);
}
.cert-view-btn:hover {
    background: rgba(37, 99, 235, 0.07);
    border-color: rgba(37, 99, 235, 0.5);
}
@media (hover: none) {
    /* En táctil/móvil siempre visible */
    .cert-view-btn { opacity: 1; transform: none; }
}

/* Modal credencial */
.cert-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #0F172A;
}
.cert-modal-header {
    background: #0F172A;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 1.5rem;
}
.cert-modal-title {
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0;
}
.cert-modal-body { background: #0F172A; }
.cert-modal-img {
    width: 100%;
    display: block;
    border-radius: 0 0 16px 16px;
}

/* =============================================
   EN PROGRESO — LEARNING TRACK
   ============================================= */
.learning-track-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 820px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.learning-track-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.75rem;
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.2s ease;
}

.learning-track-item:last-child {
    border-bottom: none;
}

.learning-track-item:hover {
    background: #F8FAFC;
}

.ltrack-left {
    flex: 1;
    min-width: 0;
}

.ltrack-platform {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-secundario);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.2rem;
}

.ltrack-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-principal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.ltrack-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
    width: 220px;
}

.ltrack-bar-wrap {
    flex: 1;
    height: 6px;
    background: #F1F5F9;
    border-radius: 3px;
    overflow: hidden;
}

.ltrack-bar {
    height: 100%;
    width: var(--lprog);
    background: linear-gradient(90deg, rgba(37,99,235,0.5), var(--color-secundario));
    border-radius: 3px;
    transition: width 1s ease;
}

.ltrack-bar--high {
    background: linear-gradient(90deg, #2563EB, #60A5FA);
    box-shadow: 0 0 6px rgba(37, 99, 235, 0.4);
}

.ltrack-bar--aws {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.ltrack-platform--uni {
    color: #059669;
}

.learning-track-item--uni {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.04), transparent);
    border-left: 3px solid #059669;
    padding-left: 0.85rem;
}

.ltrack-right--uni {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ltrack-uni-period {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748B;
    font-family: monospace;
    white-space: nowrap;
}

.ltrack-badge-encurso {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
}

.ltrack-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748B;
    font-family: monospace;
    width: 52px;
    text-align: right;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .learning-track-item { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .ltrack-right { width: 100%; }
}

/* =============================================
   FILTRO DE PROYECTOS
   ============================================= */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.filter-btn {
    background: white;
    border: 1px solid #E2E8F0;
    color: #64748B;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--color-secundario);
    color: var(--color-secundario);
}

.filter-btn.active {
    background: var(--color-secundario);
    border-color: var(--color-secundario);
    color: white;
}

/* Catálogo vs Destacados: subtítulo explica el rol de esta sección */
.projects-catalog .section-title {
    margin-bottom: 1rem;
}

.projects-section-subtitle {
    color: #64748B;
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.project-item {
    transition: all 0.4s ease;
}

.project-item.hidden {
    display: none;
}

/* =============================================
   PROYECTOS — TARJETAS
   ============================================= */
.project-card {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Hover más sobrio que Destacados (catálogo, no showcase hero) */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: rgba(37, 99, 235, 0.35);
}

.project-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-img-container img {
    transform: scale(1.08);
}

.project-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(37, 99, 235, 0.0) 0%,
        rgba(15, 23, 42, 0.85) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.project-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay-text {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #60A5FA;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.2rem;
}

.project-overlay-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

/* Cuerpo de tarjeta: título → impacto en una línea → stack → CTA (jerarquía de catálogo) */
.project-card-body {
    padding: 1.15rem 1.25rem 1.25rem;
    text-align: left;
}

.project-card-body .project-card-title {
    margin: 0 0 0.45rem;
    padding: 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--color-principal);
    line-height: 1.35;
}

.project-card-impact {
    font-size: 0.8125rem;
    color: #64748B;
    line-height: 1.5;
    margin: 0 0 0.9rem;
    flex-grow: 1;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.project-tech-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.22rem 0.5rem;
    border-radius: 6px;
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.project-card-cta {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border-width: 1.5px;
}

/* =============================================
   CONTACTO — DOS COLUMNAS
   ============================================= */
.cta-contact {
    background: linear-gradient(180deg, #1a2540 0%, #0F172A 10%, #1e293b 60%, #0F172A 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

#particles-contact {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

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

.cta-contact::before {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Jerarquía: un titular fuerte + texto de apoyo más suave */
.contact-headline {
    color: #F8FAFC;
    font-weight: 700;
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
}

.contact-headline::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin-top: 1rem;
    background: var(--color-secundario);
    border-radius: 2px;
    opacity: 0.95;
}

/* --- Columna izquierda --- */
.contact-desc {
    color: #94A3B8;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.75;
    max-width: 28rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    color: #CBD5E1;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.contact-link-btn i {
    font-size: 1.1rem;
    color: var(--color-secundario);
    flex-shrink: 0;
}

.contact-link-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.35);
    color: #ffffff;
    transform: translateX(4px);
}

/* --- Columna derecha: formulario (secundario al titular de la izquierda) --- */
.contact-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
    border-top: 3px solid rgba(37, 99, 235, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.contact-form-card h5.contact-form-title {
    margin-top: 0;
}

.contact-form-title {
    color: #94A3B8;
    font-weight: 600;
    margin-bottom: 1.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #E2E8F0;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

.contact-input::placeholder {
    color: #64748B;
}

.contact-input:focus {
    border-color: rgba(37, 99, 235, 0.5);
    background: rgba(37, 99, 235, 0.04);
}

.contact-textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-submit {
    background: var(--color-secundario);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.8rem 1.5rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-submit:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-form-feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
}

.contact-form-feedback.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.contact-form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

@media (max-width: 768px) {
    .contact-form-card {
        padding: 1.5rem 1.25rem;
    }
}

/* =============================================
   FEATURED — STORYTELLING PROBLEMA→ENFOQUE→RESULTADO
   ============================================= */
.featured-story {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0;
    flex-grow: 1;
}

.story-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.story-label {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.15rem;
    min-width: 90px;
    text-align: center;
}

.story-problema {
    background: rgba(239, 68, 68, 0.12);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.story-enfoque {
    background: rgba(245, 158, 11, 0.12);
    color: #FCD34D;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.story-resultado {
    background: rgba(34, 197, 94, 0.12);
    color: #86EFAC;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.story-decision {
    background: rgba(37, 99, 235, 0.12);
    color: #93C5FD;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.story-text {
    color: #94A3B8;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   CONTACTO — COLUMNA IZQUIERDA
   ============================================= */
.contact-cues {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-cues li {
    color: #94A3B8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.contact-cues li i {
    color: var(--color-secundario);
    font-size: 0.88rem;
    opacity: 0.92;
}

.contact-email-fallback {
    font-size: 0.875rem;
    color: #94A3B8;
    margin: 0;
    line-height: 1.55;
}

.contact-email-fallback a {
    color: var(--color-secundario);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-email-fallback a:hover {
    color: #93C5FD;
    text-decoration: underline;
}

/* =============================================
   FOOTER REDISEÑADO
   ============================================= */
.site-footer {
    background: #0F172A;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-name {
    color: #F1F5F9;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.footer-tagline {
    color: #64748B;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.footer-socials {
    display: flex;
    gap: 0.65rem;
}

.footer-socials a {
    color: #475569;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-socials a:hover {
    color: var(--color-secundario);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1rem;
}

.footer-nav a {
    color: #475569;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #94A3B8;
}

.footer-cv-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #94A3B8;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.footer-cv-btn:hover {
    border-color: rgba(37, 99, 235, 0.4);
    color: #ffffff;
}

.footer-updated {
    color: #334155;
    font-size: 0.73rem;
    margin-top: 0.4rem;
    margin-bottom: 0;
}

.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin: 0.25rem 0 0.75rem;
}

.footer-copy {
    color: #334155;
    font-size: 0.75rem;
    text-align: center;
    padding-bottom: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-nav { gap: 0.25rem 0.75rem; }
    .col-md-4.text-md-end { text-align: center !important; }
}

/* =============================================
   WHATSAPP FLOTANTE
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0F172A;
    border: 1px solid rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #25D366;
    text-decoration: none;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: whatsapp-pulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: rgba(37, 220, 100, 0.1);
    border-color: #25D366;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
    color: #25D366;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 0 0 rgba(37, 211, 102, 0.3); }
    50%       { box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 0 8px rgba(37, 211, 102, 0); }
}

/* =============================================
   BARRA DE PROGRESO DE SCROLL
   ============================================= */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-secundario), #60A5FA);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* =============================================
   CURSOR PARPADEANTE EN TYPEWRITER
   ============================================= */
.typewriter-active::after {
    content: '|';
    color: var(--color-secundario);
    font-weight: 300;
    margin-left: 2px;
    animation: cursor-blink 0.7s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* =============================================
   EFECTO COMETA EN CURSOR
   ============================================= */
.cursor-comet {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: radial-gradient(circle, #60A5FA 0%, rgba(37, 99, 235, 0.4) 50%, transparent 70%);
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.7), 0 0 16px rgba(37, 99, 235, 0.3);
    animation: comet-fade 0.65s ease-out forwards;
}

@keyframes comet-fade {
    0%   { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0;    transform: translate(-50%, -50%) scale(0.1); }
}
