/* ============================================================
   ONEPAGE.CSS
   Estilos del rediseño one-page. Se enlaza DESPUÉS de
   css/style.css, así que ese archivo no se toca — aquí se
   sobreescribe todo lo necesario (color, tipografía, tamaños).

   ============================================================ */

:root {
    --fondo: #F1F8D3;
    --tarjeta: #FFFFFF;
    --texto: #24262B;
    --texto-secundario: #6b6f63;
    --azul: #C9DFFF;
    --azul-oscuro: #4A7FC4;
    --verde-terciario: #A3B563;
    --borde: #DCE8B0;
}

body {
    padding-top: 78px;
    background-color: var(--fondo);
    font-family: 'Manrope', sans-serif;
    color: var(--texto);
}

p, a, li, span, input, textarea, button {
    font-family: 'Manrope', sans-serif;
}

/* Fondos heredados de style.css que deben ceder ante el salvia de fondo */
.home {
    background-color: transparent;
}

.contacto {
    background-image: none;
}


/* ============================================================
   1. NAV CLARA
   ============================================================ */

.nav-clara {
    background-color: var(--fondo);
    border-bottom: 1px solid var(--borde);
}

.nav-clara .nav-link,
header nav h2 {
    color: var(--texto) !important;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.nav-clara .nav-link:hover {
    color: var(--azul-oscuro) !important;
}

.navbar-toggler-icon {
    filter: invert(1);
}


/* ============================================================
   2. TÍTULOS Y ETIQUETAS DE SECCIÓN
   ============================================================ */

.label-seccion {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--texto-secundario);
    text-transform: uppercase;
    margin-bottom: 6px;
}

h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 4vw, 34px);
    color: var(--texto);
    padding: 0;
    letter-spacing: 0;
    margin-bottom: 24px;
}

h5 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 0;
    letter-spacing: 0;
    color: var(--texto);
}

.modal-body h5 {
    font-size: 22px;
    margin-bottom: 12px;
}

.modal-body p {
    font-family: 'Manrope', sans-serif;
}


/* ============================================================
   4. FILTROS DE PORTFOLIO
   ============================================================ */

.filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn-filtro {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 13px;
    background-color: transparent;
    border: 1px solid var(--texto);
    color: var(--texto);
    border-radius: 50px;
    padding: 8px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-filtro:hover {
    background-color: var(--azul);
    border-color: var(--azul);
}

.btn-filtro.activo {
    background-color: var(--azul-oscuro);
    border-color: var(--azul-oscuro);
    color: #fff;
}


/* ============================================================
   5. TARJETAS DE PORTFOLIO — blancas, título siempre visible
   ============================================================ */

.card-portfolio {
    background-color: var(--tarjeta);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-portfolio:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(36, 38, 43, 0.1);
}

.card-portfolio-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--fondo);
}

.card-portfolio-img img,
.card-portfolio-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-portfolio-body {
    padding: 16px;
    text-align: left;
}

.card-portfolio-body h5 {
    margin: 6px 0 2px;
}

.card-portfolio-sub {
    font-size: 13px;
    color: var(--texto-secundario);
    margin: 0;
}

.tag-cat {
    display: inline-block;
    background-color: var(--azul);
    color: var(--azul-oscuro);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 50px;
}

.tag-cat-digital {
    background-color: var(--azul-oscuro);
    color: #fff;
}

.tag-cat-freelance {
    background-color: var(--verde-terciario);
    color: #fff;
}


/* ============================================================
   6. LINKS "VER PROYECTOS" DENTRO DE EXPERIENCIA
   ============================================================ */

.ver-proyectos {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--azul-oscuro);
    border-bottom: 1px solid currentColor;
    margin-top: 8px;
    margin-right: 16px;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.ver-proyectos:hover {
    opacity: 0.65;
}


/* ============================================================
   7. HERO — dos columnas
   ============================================================ */

.hero-split {
    min-height: 55vh;
    position: relative;
    padding: clamp(30px, 6vw, 60px) 0;
}

.hero-texto {
    text-align: left;
}

.hero-saludo {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(15px, 2vw, 18px);
    color: var(--texto-secundario);
    margin-bottom: 4px;
}

.hero-nombre {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.1;
    color: var(--texto);
    margin-bottom: 16px;
}

.hero-tagline {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(14px, 1.8vw, 16px);
    color: var(--texto-secundario);
    max-width: 440px;
    margin-bottom: 20px;
}

.hero-foto-wrap {
    display: flex;
    justify-content: center;
}

.hero-circulo {
    width: clamp(180px, 26vw, 260px);
    height: clamp(180px, 26vw, 260px);
    border-radius: 50%;
    background-color: transparent;
    border: 6px solid var(--azul);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-foto {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    object-fit: cover;
}


/* ============================================================
   8. EXPERIENCIA — línea de tiempo
   ============================================================ */

.experiencia {
    background-color: transparent;
    padding: clamp(40px, 6vw, 90px) clamp(16px, 6vw, 60px);
}

.timeline {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.timeline-item {
    position: relative;
    padding: 0 0 32px 24px;
    border-left: 2px solid var(--borde);
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--azul-oscuro);
}

.timeline-fecha {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--texto-secundario);
    margin-bottom: 4px;
}

.timeline-puesto {
    margin: 0 0 6px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--texto);
    margin: 0;
}


/* ============================================================
   9. CONTACTO — tarjeta blanca elevada
   ============================================================ */

.contacto {
    background-color: transparent;
    padding: clamp(30px, 6vw, 60px) clamp(16px, 4vw, 40px);
}

.contacto-card {
    background-color: var(--tarjeta);
    border-radius: 20px;
    padding: clamp(24px, 5vw, 56px);
    box-shadow: 0 12px 32px rgba(36, 38, 43, 0.08);
}

.contacto-texto {
    font-size: 14px;
    color: var(--texto-secundario);
}

.contacto-alerta {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    text-align: left;
}

.contacto-alerta.exito {
    background-color: var(--azul);
    color: var(--azul-oscuro);
}

.contacto-alerta.error {
    background-color: #f3d3d3;
    color: #7a1f1f;
}


/* ============================================================
   10. BOTONES
   ============================================================ */

.btn-custom {
    display: inline-block;
    width: auto;
    padding: 12px 32px;
    background-color: var(--azul-oscuro);
    color: #fff;
    border-radius: 50px;
}

.btn-custom:hover {
    background-color: var(--texto);
    color: #fff;
}

.btn-custom.activa {
    background-color: var(--texto);
    color: var(--azul);
}

.boton {
    background-color: var(--azul-oscuro);
    color: #fff;
}


/* ============================================================
   11. FOOTER
   ============================================================ */

footer {
    background-color: var(--texto) !important;
    color: var(--fondo) !important;
}


/* ============================================================
   12. MEDIA QUERIES
   ============================================================ */

@media (max-width: 576px) {
    body {
        padding-top: 64px;
    }

    .filtros {
        gap: 6px;
    }

    .btn-filtro {
        font-size: 11px;
        padding: 6px 14px;
    }

    .hero-split::after {
        display: none;
    }
}
