/* ─── HERO SLIDESHOW ──────────────────────────────────────── */
.hero-slideshow {
    position: relative;
    height: calc(100vh - var(--nav-h));
    min-height: 560px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.slide.active {
    opacity: 1;
    animation: slowZoom 8s ease forwards;
}
@keyframes slowZoom {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to right,
        rgba(0, 20, 60, 0.72) 0%,
        rgba(0, 20, 60, 0.45) 60%,
        rgba(0, 20, 60, 0.2) 100%
    );
}

.slide-content {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    max-width: 640px;
}
.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-eyebrow::before {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
}
.slide-content h1 {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeUp 0.9s 0.1s ease both;
}
.slide-content h1 em {
    font-style: normal;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
}
.hero-desc {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-outline-white {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 13px 32px;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(4px);
    transition:
        background var(--transition),
        border-color var(--transition);
}
.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-size: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    backdrop-filter: blur(4px);
    transition: background var(--transition);
}
.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}
.slide-arrow.prev {
    left: 32px;
}
.slide-arrow.next {
    right: 32px;
}

.slide-dots {
    position: absolute;
    z-index: 4;
    bottom: 100px;
    left: 80px;
    display: flex;
    gap: 8px;
}
.dot {
    width: 28px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition:
        background var(--transition),
        width var(--transition);
}
.dot.active {
    background: var(--white);
    width: 48px;
}

.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: rgba(0, 20, 60, 0.7);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 80px;
}
.hero-stat {
    flex: 1;
    text-align: center;
    padding: 4px 24px;
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}
.hero-stat-num {
    font-size: 32px;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ─── FEATURED PROJECTS ───────────────────────────────────── */
.projects-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.project-card {
    background: var(--white);
    border-top: 3px solid transparent;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition:
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}
.project-card:hover {
    border-color: var(--blue-mid);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 51, 102, 0.1);
}
.project-card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.project-card-content {
    padding: 28px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.project-tag {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-mid);
    background: var(--blue-pale);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 18px;
    align-self: flex-start;
}
.project-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--blue-deep);
    margin-bottom: 12px;
    line-height: 1.3;
}
.project-card p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-mid);
    margin-bottom: 24px;
}

/* ─── PILLARS ─────────────────────────────────────────────── */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}
.pillar {
    padding: 40px 28px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.pillar-icon {
    width: 32px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 24px;
}
.pillar h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}
.pillar p {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.btn-card {
    display: inline-block;
    margin-top: auto;
    padding-top: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-mid);
    text-decoration: none;
    border-top: 1px solid var(--gray-light);
    transition:
        color var(--transition),
        letter-spacing var(--transition);
}
.btn-card:hover {
    color: var(--blue-deep);
    letter-spacing: 0.12em;
}

.section-footer {
    display: flex;
    justify-content: center;
    padding: 48px 0 8px;
}

/* ─── COMPLETED CARDS (shared with proyectos) ─────────────── */
.completed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.completed-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--off-white);
    overflow: hidden;
    border-bottom: 3px solid transparent;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}
.completed-card:hover {
    border-color: var(--green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.completed-card-img {
    height: 140px;
    background: linear-gradient(135deg, #2a2a3a, #3a3a5a);
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
    filter: grayscale(40%);
}
.completed-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}
.completed-card-body {
    padding: 22px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.completed-card-line {
    width: 28px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 14px;
    flex-shrink: 0;
}
.completed-cat {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-mid);
    display: block;
    margin-bottom: 6px;
}
.completed-card-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}
.completed-card-body p {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--gray-mid);
    flex: 1;
    margin-bottom: 16px;
}
.completed-card-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--gray-light);
    margin-top: auto;
}
.completed-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gray-mid);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    transition: background var(--transition);
}
.completed-card-status span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-mid);
    transition: color var(--transition);
}
.completed-card:hover .completed-check {
    background: var(--green);
}
.completed-card:hover .completed-card-status span {
    color: var(--blue-mid);
}

/* ─── LINKEDIN SECTION ────────────────────────────────────── */
.linkedin-section {
    position: relative;
    padding: 80px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    overflow: hidden;
}
.linkedin-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/graduacion.jpg") center/cover no-repeat;
    filter: blur(6px) brightness(0.6);
    transform: scale(1.05);
    z-index: 0;
}
.linkedin-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 50, 160, 0.75) 0%,
        rgba(0, 119, 181, 0.7) 20%,
        rgba(176, 141, 87, 0.65) 100%
    );
    z-index: 1;
}
.linkedin-section > * {
    position: relative;
    z-index: 2;
}

.linkedin-section svg {
    color: rgba(255, 255, 255, 0.8);
}
.linkedin-section h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 300;
    color: var(--white);
    line-height: 1.3;
}
.linkedin-section p {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    max-width: 480px;
    line-height: 1.8;
}
.btn-linkedin {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0077b5;
    background: var(--white);
    border: none;
    cursor: pointer;
    padding: 14px 36px;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
    transition:
        background var(--transition),
        transform var(--transition);
}
.btn-linkedin:hover {
    background: var(--blue-mid);
    transform: translateY(-1px);
    color: var(--white);
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .slide-content {
        left: 40px;
        max-width: 520px;
    }
    .hero-stats-bar {
        padding: 20px 40px;
    }
    .slide-dots {
        left: 40px;
    }
    .projects-strip {
        grid-template-columns: 1fr;
    }
    .pillars {
        grid-template-columns: 1fr 1fr;
    }
    .completed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .slide-content {
        left: 24px;
        right: 24px;
        max-width: 100%;
    }
    .slide-content h1 {
        font-size: 28px;
    }
    .hero-desc {
        font-size: 14px;
    }
    .hero-stats-bar {
        padding: 16px 24px;
    }
    .hero-stat {
        padding: 4px 12px;
    }
    .hero-stat-num {
        font-size: 22px;
    }
    .hero-stat-label {
        font-size: 9px;
    }
    .slide-dots {
        left: 24px;
        bottom: 90px;
    }
    .slide-arrow {
        display: none;
    }
    .pillars {
        grid-template-columns: 1fr;
    }
    .completed-grid {
        grid-template-columns: 1fr;
    }
    .linkedin-section {
        padding: 64px 24px;
    }
}
