
/* #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, #1D4F91);
    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: #4FA8FF;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(79, 168, 255, 0.5);
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(232, 118, 44, 0.15);
    color: #e8762c;
    border-color: rgba(232, 118, 44, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(232, 118, 44, 0.4);
}

/* #region HERO */
.hero-tableau {
    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%, #051425 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(79, 168, 255, 0.6));
}

.hero-card h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    color: #4FA8FF;
    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: #4FA8FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #e8762c;
}

.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: #4FA8FF;
    border-radius: 2px;
}

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

/* #region CARRUSELES */
.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;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

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

.carousel button:hover {
    background: rgba(232, 118, 44, 0.9);
    border-color: #e8762c;
    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: #e8762c;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(232, 118, 44, 0.7);
}

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

.project-info h3 {
    color: #4FA8FF;
    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: #4FA8FF;
    color: #0b0f17;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-project:hover {
    background: #e8762c;
    color: #0b0f17;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(232, 118, 44, 0.6);
}

/* #region FOOTER */
.site-footer {
    position: relative;
    background: radial-gradient(1200px 800px at 50% 10%, #051425 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: #4FA8FF;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.social-icons a:hover {
    color: #e8762c;
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(232, 118, 44, 0.6);
}

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


/* ==========================================================
BOTÓN VOLVER ARRIBA 
========================================================== */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #4FA8FF;
    border: none;
    color: #0b0f17;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2000;
}

.back-to-top:hover {
    background: #e8762c;
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(232, 118, 44, 0.6);
}

.back-to-top i {
    pointer-events: none;
}
