/* ============================================
   PLANTILLA CV — LANDING PAGE
   Tema: Navy / Azul tecnológico / Honesta
   ============================================ */

/* =========================
   VARIABLES
========================= */

:root {
    --navy-950: #071426;
    --navy-900: #0B1B33;
    --navy-800: #102A4C;

    --blue-700: #175CD3;
    --blue-600: #2563EB;
    --blue-500: #3B82F6;
    --blue-400: #60A5FA;

    --background: #F7F9FC;
    --background-alt: #EEF3F9;

    --surface: #FFFFFF;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;

    --border: #DCE5F0;

    --gradient-blue: linear-gradient(135deg, #175CD3 0%, #3B82F6 100%);

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =========================
   RESET / BASE
========================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 1rem;
    background: var(--navy-900);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: rgba(37, 99, 235, 0.2);
    color: var(--navy-900);
}

.cv-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================
   HEADER
========================= */

.cv-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.cv-header.scrolled {
    box-shadow: var(--shadow-md);
}

.cv-header-container {
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cv-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.5px;
}

.cv-logo span {
    color: var(--blue-700);
}

.cv-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cv-nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.cv-nav-link:hover {
    color: var(--blue-700);
}

.cv-btn-download-header {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: var(--blue-600);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.cv-btn-download-header:hover {
    background: var(--blue-700);
    transform: translateY(-1px);
}

/* =========================
   HERO
========================= */

.cv-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--background);
    text-align: center;
}

.cv-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.cv-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.cv-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.2;
}

.cv-glow-1 {
    width: 400px;
    height: 400px;
    background: #3B82F6;
    top: -80px;
    right: -100px;
}

.cv-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    animation: fade-in-up 0.7s ease;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cv-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-700);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.5rem 1.3rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.cv-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--navy-900);
    margin-bottom: 1.2rem;
}

.cv-hero-content h1 span {
    color: var(--blue-700);
}

.cv-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.cv-cta-actions {
    margin-bottom: 1.5rem;
}

.cv-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: var(--blue-600);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 2.2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease;
}

.cv-btn-primary:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.cv-cta-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cv-cta-note i {
    color: var(--blue-500);
    margin-right: 0.3rem;
}

/* =========================
   SECTIONS GENERAL
========================= */

.cv-section {
    padding: 5rem 0;
}

.cv-section-alt {
    background: var(--background-alt);
}

.cv-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cv-section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue-700);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
}

.cv-section-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--navy-900);
    margin-bottom: 1rem;
}

.cv-section-header h2 span {
    color: var(--blue-700);
}

.cv-section-line {
    width: 64px;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 4px;
    margin: 0 auto;
}

/* =========================
   FEATURES
========================= */

.cv-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.cv-feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all 0.25s ease;
}

.cv-feature-card:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.cv-feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    font-size: 1.2rem;
}

.cv-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.cv-feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =========================
   STEPS
========================= */

.cv-steps {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cv-step {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.25s ease;
}

.cv-step:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-sm);
    transform: translateX(6px);
}

.cv-step-number {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--gradient-blue);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-step-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.cv-step-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =========================
   TIPS
========================= */

.cv-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.cv-tip-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all 0.25s ease;
}

.cv-tip-card:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.cv-tip-card > i {
    font-size: 1.6rem;
    color: var(--blue-600);
    margin-bottom: 0.8rem;
}

.cv-tip-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.cv-tip-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =========================
   FINAL CTA
========================= */

.cv-final-cta {
    background: var(--navy-950);
    padding: 4.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cv-final-cta::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    filter: blur(60px);
}

.cv-final-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cv-final-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
}

.cv-final-content > p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.cv-final-content .cv-btn-primary {
    background: #fff;
    color: var(--blue-700);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cv-final-content .cv-btn-primary:hover {
    background: var(--blue-50, #F0F6FF);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.cv-final-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0 !important;
}

/* =========================
   FOOTER
========================= */

.cv-footer {
    background: var(--navy-950);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 0;
    text-align: center;
}

.cv-footer-brand {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.cv-footer-brand strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.cv-footer-brand span {
    font-size: 0.8rem;
    color: var(--blue-400);
}

.cv-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
}

.cv-footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s ease;
}

.cv-footer-links a:hover {
    color: var(--blue-400);
}

.cv-footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

/* =========================
   FLOATING CTA (MOBILE)
========================= */

.cv-floating-cta {
    display: none;
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-600);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    z-index: 999;
    white-space: nowrap;
}

.cv-floating-cta i {
    margin-right: 0.4rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .cv-nav-link {
        display: none;
    }

    .cv-btn-download-header {
        font-size: 0.78rem;
        padding: 0.45rem 0.9rem;
    }

    .cv-hero {
        padding-top: 7rem;
    }

    .cv-section {
        padding: 4rem 0;
    }

    .cv-features-grid {
        grid-template-columns: 1fr;
    }

    .cv-tips-grid {
        grid-template-columns: 1fr;
    }

    .cv-floating-cta {
        display: block;
    }
}

@media (max-width: 480px) {
    .cv-btn-primary {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .cv-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cv-step:hover {
        transform: translateY(-3px);
    }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}