:root {
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-primary: #3b82f6;
    --color-text: #f8fafc;
    --color-muted: #94a3b8;
    --color-border: #334155;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.skip-link {
    background: var(--color-primary);
    border-radius: 0 0 0.5rem 0;
    color: #fff;
    font-weight: 700;
    left: 0;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 0;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
    z-index: 1100;
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.site-header {
    border-bottom: 1px solid var(--color-border);
    background: rgba(15, 23, 42, 0.95);
}

.navbar-brand {
    color: var(--color-text);
}

.nav-link {
    color: var(--color-muted);
}

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

.site-footer {
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--color-muted);
    text-decoration: none;
}

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

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.hero-section {
    padding: 6rem 0;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-badge {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text);
    max-width: 760px;
    margin-bottom: 1rem;
}

.hero-description {
    color: var(--color-muted);
    font-size: 1.1rem;
    max-width: 680px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.profile-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.profile-card-number {
    color: var(--color-primary);
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.profile-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.profile-card p {
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.featured-projects-section {
    padding: 5rem 0;
}

.projects-index-section {
    min-height: 70vh;
    padding: 5rem 0;
}

.projects-index-section .section-header h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header {
    max-width: 720px;
    margin-bottom: 3rem;
}

.section-label {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-muted);
    font-size: 1.1rem;
}

.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

    .project-card:hover {
        transform: translateY(-4px);
        border-color: var(--color-primary);
    }

.project-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.75rem;
}

.project-card-image-link {
    background: #f8fafc;
    border-bottom: 1px solid var(--color-border);
    display: block;
    overflow: hidden;
}

.project-card-image {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease;
    width: 100%;
}

.project-card:hover .project-card-image {
    transform: scale(1.02);
}

.project-card-image[src*="/administrador-usuarios/swagger-api"] {
    background: #f8fafc;
    object-fit: contain;
}

.project-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

    .project-tech-list span {
        font-size: 0.85rem;
        color: var(--color-text);
        border: 1px solid var(--color-border);
        border-radius: 999px;
        padding: 0.35rem 0.75rem;
    }

.project-link {
    color: var(--color-primary);
    font-weight: 600;
    margin-top: auto;
    text-decoration: none;
}

    .project-link:hover {
        text-decoration: underline;
    }

.empty-state {
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: 1rem;
    color: var(--color-muted);
    padding: 2rem;
}

.empty-state h2,
.empty-state h3 {
    color: var(--color-text);
}

.utility-page-section {
    min-height: 65vh;
    padding: 5rem 0;
}

.utility-page-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    max-width: 780px;
    padding: clamp(1.5rem, 5vw, 3rem);
}

.utility-page-card h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.utility-page-card p {
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.utility-page-card .request-id {
    font-size: 0.9rem;
}

.utility-page-card code {
    color: #bfdbfe;
}

.contact-section {
    padding: 2rem 0 5rem;
}

.contact-card {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    padding: clamp(1.75rem, 5vw, 3rem);
}

.contact-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--color-muted);
    margin-bottom: 0;
    max-width: 650px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-detail-hero {
    padding: 5rem 0 3rem;
}

.project-back-link {
    display: inline-block;
    color: var(--color-muted);
    text-decoration: none;
    margin-bottom: 2rem;
}

    .project-back-link:hover {
        color: var(--color-text);
    }

.project-detail-hero h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.project-detail-summary {
    max-width: 820px;
    color: var(--color-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.project-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-cover {
    margin: 3rem 0 0;
}

.project-cover img {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    display: block;
    height: auto;
    width: 100%;
}

.project-cover figcaption,
.project-gallery-item figcaption {
    color: var(--color-muted);
    font-size: 0.9rem;
    padding-top: 0.75rem;
}

.project-detail-content {
    padding: 2rem 0 5rem;
}

.project-content-card {
    max-width: 900px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
}

    .project-content-card h2 {
        font-size: 1.6rem;
        font-weight: 700;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

        .project-content-card h2:first-child {
            margin-top: 0;
        }

    .project-content-card p,
    .project-content-card li {
        color: var(--color-muted);
        font-size: 1.05rem;
        line-height: 1.7;
    }

.project-gallery-section {
    padding: 2rem 0 5rem;
}

.project-gallery-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    margin: 0;
    overflow: hidden;
}

.project-gallery-item a {
    background: #f8fafc;
    display: block;
    overflow: hidden;
}

.project-gallery-item img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: contain;
    transition: transform 0.25s ease;
    width: 100%;
}

.project-gallery-item img[src*="/administrador-usuarios/modelo-"] {
    background: #292a2d;
}

.project-gallery-item a:hover img {
    transform: scale(1.015);
}

.project-gallery-item figcaption {
    padding: 1rem 1.25rem;
}

@media (max-width: 575.98px) {
    .project-card-body,
    .project-content-card {
        padding: 1.4rem;
    }

    .project-detail-hero {
        padding-top: 3.5rem;
    }
}
