
/* 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;
}

/* 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);
    transform: translateY(-2px);
    color: #9efff5;
}

/* HERO */
.hero-sql {
    position: relative;
    min-height: 100vh;
    padding: 120px 24px 80px;
    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(92%, 1000px);
    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.6));
}

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

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

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

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

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.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.8);
    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);
}

/* SMALL BUTTONS (GitHub / PDF) */
.actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

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

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


.sql-conclusiones {
    max-width: 950px;
    margin: 0 auto;
    text-align: left;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.3);
}

.section {
    margin-bottom: 32px;
}

.section-title {
    color: #6fffe9;
    margin: 0 0 12px;
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #6fffe9, transparent);
    margin-top: 6px;
}

.section-subtitle {
    color: #6fffe9;
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: clamp(18px, 2.3vw, 22px);
    font-weight: 700;
}

.section-subtitle::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #6fffe9, transparent);
    margin-top: 4px;
}

.sql-conclusiones p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.sql-conclusiones ul,
.sql-conclusiones ol {
    padding-left: 20px;
    margin: 10px 0;
}

.sql-conclusiones li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.sql-conclusiones li::marker {
    color: #6fffe9;
}

/* #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;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-sql {
        padding: 100px 16px 60px;
    }

    .logo-hero {
        width: 90px;
    }

    .carousel {
        width: 100%;
        height: 420px;
    }

    .sql-conclusiones {
        padding: 24px 18px;
    }
}

/* ==========================================================
BOTÓN VOLVER ARRIBA
========================================================== */
#backToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(111, 255, 233, 0.9);
    color: #0b0f17;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

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