/* #region RESET */
* {
    box-sizing: border-box;
}

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

body {
    max-width: 1920px;
    margin: 0 auto;
    font: 500 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    color: #ced4da;
    background: #0b0f17;
}


/* #region HEADER */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 90px;
    z-index: 1000;
    background: linear-gradient(90deg, #0B263D, #00536A);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}

.nav {
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo img {
    width: 150px;
    display: block;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6fffe9;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(111, 255, 233, 0.5);
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(111, 255, 233, 0.15);
    color: #9efff5;
    transform: translateY(-2px);
}


/* #region HERO */
.hero-sql {
    position: relative;
    min-height: 100vh;
    padding: 120px 24px 60px;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(1200px 800px at 50% 10%, #022630 0%, #0b0f17 35%, #0f1726 100%);
}

#particles-js {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-card {
    position: relative;
    z-index: 1;
    width: min(90%, 900px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    padding: clamp(20px, 5vw, 48px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.logo-hero {
    width: 120px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px rgba(111, 255, 233, 0.5));
}

.hero-card h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    color: #6fffe9;
    margin: 0 0 16px;
}

.hero-card p {
    font-size: clamp(16px, 2vw, 20px);
    color: #ced4da;
    opacity: 0.95;
    margin: 0;
}


/* #region BREADCRUMBS */
.breadcrumbs {
    background: linear-gradient(180deg, #0B263D 0%, #111a28 50%, #0b0f17 100%);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 32px;
}

.breadcrumbs .trail {
    font-size: 16px;
    color: #aeb7c2;
    display: flex;
    align-items: center;
    line-height: 1;
}

.breadcrumbs a {
    color: #6fffe9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #9efff5;
}

.breadcrumbs .sep {
    opacity: 0.75;
    margin: 0 8px;
}


/* #region CONTENIDO PRINCIPAL */
.content {
    background: linear-gradient(180deg, #0B263D 0%, #111a28 50%, #0b0f17 100%);
    color: #ced4da;
    padding: 60px 24px 100px;
    width: 100%;
}

.content h2 {
    font-size: clamp(26px, 3.6vw, 34px);
    font-weight: 700;
    color: #ced4da;
    text-align: left;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
    padding-left: 18px;
    position: relative;
}

.content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 80%;
    background: #6fffe9;
    border-radius: 2px;
}

.grid-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 40px;
    justify-content: center;
}


/* #region CARRUSEL */
.carousel {
    position: relative;
    width: 80%;
    max-width: 1000px;
    margin: 24px auto;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    background: #000;
    height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
    align-items: center;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    background-color: #000;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 38, 61, 0.6);
    border: 1px solid rgba(111, 255, 233, 0.4);
    color: #6fffe9;
    font-size: 20px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel button:hover {
    background: rgba(111, 255, 233, 0.85);
    color: #0b0f17;
}

.carousel .prev {
    left: 20px;
}

.carousel .next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.carousel-indicators span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicators span.active {
    background: #6fffe9;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(111, 255, 233, 0.6);
}


/* #region INFO PROYECTOS */
.project-info {
    padding: 20px;
}

.project-info h3 {
    color: #6fffe9;
    margin: 0 0 12px;
    font-size: 20px;
}

.project-info p {
    color: #ced4da;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6fffe9;
    color: #0b0f17;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-project:hover {
    background: #9efff5;
    transform: translateY(-2px);
}


/* #region FOOTER */
.site-footer {
    position: relative;
    background: radial-gradient(1200px 800px at 50% 10%, #022630 0%, #0b0f17 35%, #0f1726 100%);
    color: #ced4da;
    text-align: center;
    padding: 80px 24px 100px;
    overflow: hidden;
}

#particles-footer {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.social-icons {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-icons a {
    font-size: 26px;
    color: #6fffe9;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: #9efff5;
    transform: translateY(-3px);
}

.footer-text {
    position: relative;
    z-index: 1;
    color: #6fffe9;
    font-weight: 500;
    margin-top: 20px;
}


/* ======== BOTÓN VOLVER ARRIBA ======== */
#backToTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(111, 255, 233, 0.95);
    color: #0b0f17;
    border: 1px solid rgba(11, 38, 61, 0.35);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
}

#backToTop:hover {
    background: #9efff5;
    transform: translateY(-3px);
}

#backToTop i {
    font-size: 16px;
}
