/* ==========================================================================
   ALONSO MORA LOMBANA — PORTAFOLIO PROFESIONAL & CURRÍCULUM CV
   Diseño de Alta Fidelidad - Estilo Wix CV Template
   ========================================================================== */

/* Variables Globales */
:root {
    --bg-page: #f0f2f5;
    --bg-card: #ffffff;
    --bg-card-subtle: #f8fafc;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --accent-blue: #0284c7;
    --whatsapp-green: #25d366;
    --whatsapp-dark: #128c7e;
    --border-color: #e5e7eb;
    --border-subtle: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-profile: 0 15px 35px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset y Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Header & Navegación */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 12%;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background-color: #ffffff;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-red);
    border-radius: 3px;
    display: inline-block;
}

.logo-brand-info {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.logo-role {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    padding: 0.25rem 0;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-red);
    border-radius: 2px;
}

.hamburger {
    display: none;
    font-size: 1.3rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Contenedores */
.content-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

/* ==========================================================================
   HERO / RESUME SPLIT SECTION (Wix Template Card Style)
   ========================================================================== */
.hero-section {
    padding: 4rem 0 5rem;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Tarjeta de Perfil Flotante */
.profile-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-profile);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    position: sticky;
    top: 6.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 668.156px;
}

.profile-avatar-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    padding: 4px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
    border-radius: 50%;
    display: block;
}

.profile-name {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 0.85rem;
}

.profile-divider {
    width: 50px;
    height: 3px;
    background-color: var(--accent-red);
    margin: 0 auto 1.25rem;
    border-radius: 2px;
}

.profile-role {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 1rem;
}

.profile-credential {
    display: inline-block;
    background-color: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.75rem;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
}

.profile-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-card-subtle);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.05rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.profile-social a:hover {
    background-color: var(--text-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Columna de Saludo / Intro */
.hero-intro {
    padding-top: 1rem;
}

.intro-greeting {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.intro-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.intro-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--text-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #000000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    transform: translateY(-1px);
}

.intro-text {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.intro-text strong {
    color: var(--text-primary);
}

/* Tarjetas de Pilares Rápidos (4 Pilares) */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
    margin-top: 1.85rem;
}

.pillar-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-focus);
}

.pillar-card i {
    font-size: 1.4rem;
    color: var(--accent-red);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.pillar-card h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.pillar-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ==========================================================================
   SECCIONES GENERALES & ENCABEZADOS
   ========================================================================== */
.section-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-red);
    display: block;
    margin-bottom: 0.4rem;
}

.section-heading {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subheading {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

/* ==========================================================================
   EXPERIENCIA / RESUME TIMELINE CARD
   ========================================================================== */
.resume-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 3rem 3.5rem;
}

.resume-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline-entry {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    position: relative;
}

.timeline-entry:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1.5rem;
    width: 100%;
    height: 1px;
    background-color: var(--border-subtle);
}

.period-badge {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    background-color: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
}

.entry-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.entry-company {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-red);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.entry-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.entry-bullets li {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.65;
    position: relative;
    padding-left: 1.5rem;
}

.entry-bullets li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* ==========================================================================
   EDUCACIÓN & CERTIFICACIONES CARDS
   ========================================================================== */
.education-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.edu-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.edu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.edu-card.highlighted {
    border-top: 4px solid var(--accent-red);
}

.edu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.edu-badge {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    background-color: var(--bg-card-subtle);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
}

.edu-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.edu-degree {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.65rem;
}

.edu-school {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.edu-country {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================================
   HABILIDADES & COMPETENCIAS
   ========================================================================== */
.skills-wrapper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-category-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.skill-category-card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.category-header i {
    font-size: 1.2rem;
    color: var(--accent-red);
}

.category-header h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-primary);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.5rem;
    flex-grow: 1;
}

.skill-pill {
    background-color: var(--bg-card-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    line-height: 1.25;
}

.skill-pill:hover {
    background-color: #ffffff;
    border-color: var(--text-primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-box-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    overflow: hidden;
}

.contact-left {
    padding: 3.5rem;
}

.contact-title {
    font-size: 1.95rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    line-height: 1.6;
}

.direct-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.direct-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background-color: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.direct-item:hover {
    border-color: var(--text-primary);
    transform: translateX(4px);
}

.direct-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--accent-red);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.direct-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.direct-item span {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-right {
    background-color: #0f172a;
    color: #ffffff;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-action-panel h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    color: #ffffff;
}

.cta-action-panel p {
    font-size: 0.98rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-whatsapp-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background-color: var(--whatsapp-green);
    color: #ffffff;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-pill);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-large:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.cta-note {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 1.25rem;
    justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 2.25rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.footer-right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-right a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-dark);
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Móviles & Tablets)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .profile-card {
        position: static;
        max-width: 440px;
        margin: 0 auto;
    }

    .pillars-grid,
    .education-cards-grid,
    .skills-wrapper-grid {
        grid-template-columns: 1fr;
    }

    .contact-box-card {
        grid-template-columns: 1fr;
    }

    .contact-left,
    .contact-right {
        padding: 2.5rem 2rem;
    }

    .resume-card {
        padding: 2.5rem 2rem;
    }

    .timeline-entry {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .intro-greeting {
        font-size: 3.25rem;
    }

    .section-heading {
        font-size: 1.85rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
