
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --accent-color: #00d4ff;
    --glass-bg: rgba(18, 18, 18, 0.8);
    --text-main: #f8f9fa;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0f0f0f;
}

section[id],
[id^="sobre-mi"],
[id^="proyectos"],
[id^="experiencia"],
[id^="contacto"] {
    scroll-margin-top: 72px;
}

.custom-navbar {
    background: var(--glass-bg) !important;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.custom-navbar.navbar-scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.95) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -1px;
}
.navbar-brand h1 {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    display: inline;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    font-size: 0.85rem;
    margin: 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--text-main) !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* User dropdown en navbar */
.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(0, 212, 255, 0.08) !important;
    color: #fff !important;
}
.dropdown-toggle::after {
    border-color: rgba(0, 212, 255, 0.6) transparent transparent;
}

.skill-badge {
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    padding: 4px 10px !important;
    font-size: 0.78rem !important;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Íconos dentro del badge */
.skill-badge i,
.skill-badge [class*="devicon-"],
.skill-badge [class*="bi "] {
    font-size: 0.95rem !important;
    line-height: 1;
    vertical-align: middle;
}

.skill-badge:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}



.nav-login {
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    padding: 6px 16px !important;
    margin-left: 15px !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-login:hover {
    background: var(--accent-color);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

@media (min-width: 992px) {
    .custom-navbar {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .custom-footer {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .glass-card {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .btn-accent {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    .btn-back-to-top {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        transition: none;
    }
    .navbar-collapse.collapsing {
        display: block;
        height: auto;
        transition: none;
    }
    .navbar-nav {
        padding: 1.5rem 0;
        text-align: center;
    }
    .nav-item {
        padding: 8px 0;
    }
    .nav-link:hover {
        text-shadow: none;
    }
    .nav-link:hover::after {
        width: 0;
    }
    .nav-login {
        margin-left: 0 !important;
        margin-top: 10px !important;
        display: inline-block;
    }
    .responsive-title {
        font-size: calc(1.8rem + 1.5vw) !important;
    }
}

/* --- BUTTONS --- */
.btn-accent {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--accent-color) !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.btn-accent:hover {
    background: var(--accent-color) !important;
    color: #000 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3) !important;
}

.btn-accent:active {
    transform: translateY(-1px) !important;
}

.navbar-toggler {
    border: none;
    padding: 6px 4px;
    outline: none !important;
    box-shadow: none !important;
}

.hamburger-lines {
    width: 22px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    will-change: transform;
}

.hamburger-lines span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .hamburger-lines {
    transform: rotate(180deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-lines span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .hamburger-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
/* Efecto de elevación para proyectos */
.transition-up {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.transition-up:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color) !important;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

/* Estilo para los campos del formulario */
.form-control:focus {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
    box-shadow: none;
}

/* --- FOOTER STYLES --- */
.custom-footer {
    background: var(--glass-bg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-icon {
    color: #fff !important;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-flex;
}

.social-icon:hover {
    color: var(--accent-color) !important;
    transform: translateY(-3px);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-5px);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}
/* --- UTILITIES --- */
.text-accent {
    color: var(--accent-color) !important;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 212, 255, 0.4); /* Borde cyan más visible por defecto */
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent any internal content from leaking out */
}

.tech-stack {
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

/* ── Skeleton Loader ─────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.8s ease-in-out infinite;
    border-radius: 10px;
    will-change: opacity;
}

@keyframes skeleton-shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.skel-title { width: 45%; height: 34px; margin-bottom: 10px; border-radius: 8px; }
.skel-sub   { width: 30%; height: 16px; margin-bottom: 40px; }

.skel-timeline-card { height: 130px; margin-bottom: 20px; margin-left: 55px; }

.skel-grid-row { display: flex; gap: 16px; flex-wrap: wrap; }
.skel-grid-card { width: calc(33.33% - 11px); height: 180px; }

.skel-form { max-width: 500px; margin: 0 auto; }
.skel-input { width: 100%; height: 44px; margin-bottom: 16px; }
.skel-textarea { width: 100%; height: 100px; margin-bottom: 16px; }
.skel-btn { width: 100%; height: 48px; border-radius: 8px; }

@media (max-width: 768px) {
    .skel-grid-card { width: 100%; height: 160px; }
    .skel-title { width: 60%; }
}

/* Timeline */
.timeline-line {
    position: absolute;
    left: 20px;
    width: 2px;
    background: rgba(0, 212, 255, 0.2);
    top: 0;
    height: 100%;
}

.timeline-point {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    left: 13px;
    top: 32px;
    box-shadow: 0 0 10px var(--accent-color);
    z-index: 1;
    border-radius: 50%;
}


/* Active state for navigation */
.nav-link.active {
    color: var(--text-main) !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}
.nav-link.active::after {
    width: 80%;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@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;
    }
}


.ls-minus-1 {
    letter-spacing: -1px;
}
.icon-social {
    width: 35px;
    height: 35px;
}


/* Active Navigation State */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.active:hover {
    color: var(--accent-color);
    font-weight: 500;
}

/* --- BACK TO TOP BUTTON --- */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:not(.visible) {
    transform: translateY(20px);
}

.btn-back-to-top:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-back-to-top i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}


