/* VARIABLES */
:root {
    --primary: #002244;
    --accent: #28a3c2;
    --bg-dark: #615e5e;
    --white: #ffffff;
    --text-muted: #666;
    --bg-light: #f8fafc;
    --bg-body: #f4f7f6;
    --text-main: #2c3e50;
    --text-light: #5a6c7d;
    --primary-blue: #0047AB;
    --electric-blue: #00D4FF;
    --deep-black: #0a0a0a;
    --soft-gray: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden;
  overflow-y: auto !important;
  height: auto !important;
}


/* BODY SOLO COMO FONDO */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
}

.fade-in {
    animation: fadeInPage 1s ease-in-out;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================
   WRAPPER CENTRADO REAL
========================= */

#app-wrapper {
    min-height: 100vh;

    display: flex;
    justify-content: center;

    /* 👇 clave */
    align-items: flex-start;

    padding: 0px;
}


/* ESTRUCTURA GENERAL DE LA TARJETA */
/* =========================
   CARD RESPONSIVE
========================= */

.card {
    width: 100%;
    max-width: 420px;

    background: var(--white);

    display: flex;
    flex-direction: column;

    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

/* Mejora en pantallas grandes */
@media (min-width: 480px) {
    .card {
        min-height: auto;
        margin: 20px;
        border-radius: 20px;
    }
}

/* HEADER */
.card-header {
    background: linear-gradient(135deg, #0047AB, #001f3f);
    height: 160px;
    position: relative;
    border-bottom: none;
}

.profile-img-wrapper {
    margin-top: 40px;
}

/* glow detrás de la foto */
.profile-img-wrapper::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,255,0.4), transparent 70%);
    z-index: 0;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-image: url('../../public/images/jairo_a-mayo_2026_1.webp');
    background-size: cover;
    background-position: center top;
    border: 1px solid var(--white);
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.card-content {
    min-height: 100%;
    margin: 0px 20px;
    padding: 40px 0px 0px 0px;
    text-align: center;
    flex-grow: 1;

    /* 🔥 SCROLL SUAVE */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* TIPOGRAFÍA GENERAL */
h1 {
    font-size: 1.7rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.subtitle {
    color: #2980b9;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

/* UTILITIES */
.value-proposition {
    background: white;
    border: 1px solid #e6edf5;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-radius: 16px;
}

.value-proposition p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2c3e50;
    font-style: italic;
}

.value-proposition strong {
    color: #2980b9;
    font-weight: 600;
}

.skills-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px;
    margin-bottom: 7px;
}

.skill-tag {
    background: var(--bg-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

.card-footer {
    padding: 20px 20px 20px 20px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.flag {
    width: 20px;
    height: auto;
}

/* =========================
   ROUTER UX TRANSITIONS
========================= */

.app-fade-out {
    opacity: 0;
    transform: translateY(6px);
    transition: 0.15s ease;
}

.app-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: 0.25s ease;
}

/* ACTIVE ROUTE UI */
.active-route {
    border: 1px solid var(--accent) !important;
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 212, 255, 0.15);
}