html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.navbar-hero {
    background: transparent !important;
}


/* Seccion HERO */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 90px;
    color: #f8fafc;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url("/images/hero.jpg") center/cover no-repeat;
        opacity: 0.7; /* <-- cambiar la opacidad de la imagen */
        filter: brightness(0.7) contrast(0.8);
        z-index: 0;
    }

    .hero-section::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(24, 47, 107, 0.5); /* azul tipo tu #182f6b */
        mix-blend-mode: multiply; /* tinte más realista */

        z-index: 1;
    }

    .hero-section > .container {
        position: relative;
        z-index: 2; /* texto arriba */
    }


.text-accent {
    letter-spacing: 0.15em;
    font-size: 0.8rem;
}

/* Tarjeta del hero */
.card-hero {
    background: rgba(15, 23, 42, 0.3);
    color: #e5e7eb;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}

/* Links con subrayado sutil */
.link-underline {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

    .link-underline:hover {
        border-color: #0d6efd;
    }

/* Version clara para tarjetas oscuras */
.link-underline-light {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    color: #e5e7eb;
    transition: border-color 0.2s ease, color 0.2s ease;
}

    .link-underline-light:hover {
        border-color: #0d6efd;
        color: #fff;
    }

/* Titulos de seccion */
.section-title {
    font-weight: 700;
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 48px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, #0d6efd, #6610f2);
    }

.section-subtitle {
    color: #6c757d;
    max-width: 520px;
}

/* Lista "Sobre mi" */
.about-list li {
    margin-bottom: 0.35rem;
}

.about-label {
    font-weight: 600;
    /*color: #495057;*/
    color: black;
}

/* Chips de skills */
.skill-tag {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.3);
    font-size: 0.85rem;
}

/* Tarjetas de proyectos */
.project-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .project-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    }

.tech-stack {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Contacto */
.contact-card {
    background-color: #ffffff;
}

/* Ajustes generales */
main section {
    scroll-margin-top: 80px; /* para que el ancho no quede tapado por el navbar */
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover; /* recortar manteniendo proporci�n */
    /*border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;*/
}

/* La tarjeta es un link */
.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

    /* Evita el efecto hover del link */
    .project-card-link:hover {
        color: inherit;
    }

    /* Accesibilidad: foco con teclado */
    .project-card-link:focus-visible .project-card {
        outline: 3px solid rgba(13, 110, 253, 0.35);
        outline-offset: 4px;
        border-radius: .5rem;
    }

.tarjeta-contacto {
    background: radial-gradient(circle at top left, rgba(24, 47, 107, 0.5), transparent 80%), radial-gradient(circle at bottom right, rgba(108, 117, 125, 0.2), transparent 80%),
    /*#0b1120;*/
    #3a435c;
    color: #f8fafc;
}

