/* Estilos generales */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --danger-color: #dc3545;
}

html {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-areas:
        "navbar"
        "main"
    ;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}

nav {
    grid-area: navbar;
}

main {
    grid-area: main;
    overflow-y: auto;
    scroll-behavior: auto;
    overscroll-behavior: contain;
}

section {
    width: 100%;
    min-height: 100%;
    padding: 2rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Navbar */
.navbar {
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    will-change: transform;
    background-color: rgba(var(--navbar-bg-rgb, 33, 37, 41), 1) !important;
    position: relative;
    z-index: 1030;
}

.navbar.navbar-scrolled {
    background-color: rgba(var(--navbar-bg-rgb, 33, 37, 41), 0.95) !important;
    padding-top: 5px;
    padding-bottom: 5px;
}

.navbar-settings {
    min-width: 260px;
}

.navbar-settings .form-control-color {
    width: 100%;
    height: 2.5rem;
    padding: 0.375rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://source.unsplash.com/random/1920x1080/?code') no-repeat center center/cover;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-section h1 {
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-section .highlight {
    color: var(--primary-color);
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Sobre Mí */
.profile-img-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* Habilidades */
.skill-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    color: var(--primary-color);
}

.skill-card ul li {
    padding: 5px 0;
}

/* Proyectos */
.project-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-card img {
    height: 200px;
    object-fit: cover;
}

/* Contacto */
.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info {
    padding: 20px;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-list a {
    color: inherit;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
}

footer .social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    font-size: 1rem;
}

footer .social-icon:hover {
    background-color: var(--primary-color);
}

.horizontal-main {
    position: relative;
    height: 100%;
}

.horizontal-main-sticky {
    position: sticky;
    top: 0;
    height: var(--horizontal-main-height, 100%);
}

.horizontal-main-viewport {
    overflow: hidden;
    height: var(--horizontal-main-height, 100%);
}

.horizontal-main-track {
    display: flex;
    height: var(--horizontal-main-height, 100%);
    transform: translate3d(var(--horizontal-main-translate, 0px), 0, 0);
    will-change: transform;
}

.horizontal-main-track > section {
    flex: 0 0 100%;
    height: var(--horizontal-main-height, 100%);
    overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) {
    .horizontal-main {
        height: auto !important;
    }

    .horizontal-main-sticky {
        position: static;
        height: auto;
    }

    .horizontal-main-viewport {
        overflow: visible;
        height: auto;
    }

    .horizontal-main-track {
        display: block;
        transform: none !important;
        height: auto;
    }

    .horizontal-main-track > section {
        height: auto;
        overflow: visible;
    }
}

/* Responsive */
@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }

    main {
        scroll-snap-type: none;
    }

    section {
        min-height: auto;
        height: auto;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        scroll-margin-top: 0;
    }

    .hero-section {
        min-height: 100svh;
        height: auto;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .profile-img-container {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .horizontal-main {
        height: auto !important;
    }

    .horizontal-main-sticky {
        position: static;
        height: auto;
    }

    .horizontal-main-viewport {
        overflow: visible;
        height: auto;
    }

    .horizontal-main-track {
        display: block;
        transform: none !important;
        height: auto;
    }

    .horizontal-main-track > section {
        height: auto;
        overflow: visible;
    }
}
