* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --bg-main: linear-gradient(135deg, rgba(10, 15, 25, 0.96), rgb(19, 27, 39));
    --bg-dark: rgb(14, 17, 23);
    --bg-card: linear-gradient(135deg, rgba(10, 15, 25, 0.92), rgba(19, 27, 39, 0.96));
    --accent: rgb(0, 81, 90);
    --accent-soft: rgba(0, 81, 90, 0.35);
    --accent-bright: #49d5e2;
    --text-main: #ffffff;
    --text-soft: #9fb2c9;
    --text-body: #eef4fb;
    --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.18);
    --shadow-strong: 0 20px 42px rgba(0, 0, 0, 0.28);
    --radius-md: 16px;
    --radius-lg: 24px;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: min(1150px, 94%);
    margin: 0 auto;
}

/* ===== HEADER ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10, 15, 25, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 124, 138, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-main);
    min-width: 0;
}

.brand-logo {
    width: 78px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    padding: 6px;
    border: 1px solid rgba(0, 124, 138, 0.22);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    justify-content: center;
}

.brand-text strong {
    font-size: 1rem;
    color: var(--text-main);
    text-align: left;
}

.brand-text span {
    font-size: 0.8rem;
    color: var(--text-soft);
    text-align: left;
}

.main-nav {
    justify-self: center;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 28px;
    list-style: none;
}

.menu a {
    color: #dbe4f0;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: 0.25s ease;
    text-transform: capitalize;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent-bright);
    transition: width 0.25s ease;
}

.menu a:hover,
.menu a.active {
    color: var(--text-main);
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-actions .btn {
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(0, 124, 138, 0.28);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@keyframes menuFadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Estilos Iconos RRSS*/
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(73, 213, 226, 0.2);
    background: rgba(0, 81, 90, 0.14);
    transition: 0.25s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(0, 81, 90, 0.24);
}

.social-icon {
    width: 20px;
    height: 20px;
    display: block;
}
/* ===== BOTONES ===== */

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 124, 138, 0.5);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(0, 124, 138, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 81, 90, 0.95), rgba(0, 124, 138, 0.92));
    color: var(--text-main);
    border: 1px solid rgba(73, 213, 226, 0.28);
    box-shadow: 0 10px 24px rgba(0, 81, 90, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 98, 110, 1), rgba(0, 138, 154, 0.98));
    color: var(--text-main);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
    border: 1px solid rgba(0, 81, 90, 0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text-main);
}

/* ===== HERO ===== */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 124, 138, 0.14), transparent 26%),
        radial-gradient(circle at 85% 75%, rgba(73, 213, 226, 0.10), transparent 24%),
        linear-gradient(180deg, rgb(11, 14, 20) 0%, rgb(14, 17, 23) 100%);
    border-bottom: 1px solid rgb(0, 53, 59);
    color: var(--text-main);
    padding: 95px 0 80px 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.22), rgba(19, 27, 39, 0.06));
    pointer-events: none;
}

.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
}

.hero-glow-1 {
    width: 280px;
    height: 280px;
    background: rgba(0, 124, 138, 0.22);
    top: -60px;
    left: -60px;
}

.hero-glow-2 {
    width: 260px;
    height: 260px;
    background: rgba(73, 213, 226, 0.14);
    right: -80px;
    bottom: -60px;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.95fr 1.35fr;
    gap: 70px;
    align-items: center;
}

.profile-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(0, 81, 90, 0.55);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    color: var(--text-main);
    padding: 22px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    animation: fadeLeftSoft 0.9s ease both;
}

.profile-card::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(73, 213, 226, 0.22) 0%, rgba(0, 124, 138, 0.10) 35%, transparent 70%);
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

.profile-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 18%);
    pointer-events: none;
    z-index: 0;
}

.profile-card > * {
    position: relative;
    z-index: 1;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.34);
}

.profile-image {
    width: 100%;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.26);
}

.hero-name-block {
    margin-top: 18px;
    text-align: center;
}

.eyebrow,
.section-tag {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 14px;
    text-align: center;
}

.hero h1,
.page-hero h1 {
    font-size: 2.25rem;
    line-height: 1.1;
    margin: 10px 0 8px 0;
    text-align: center;
    color: var(--text-main);
}

.hero-subtitle {
    text-align: center;
    color: var(--text-soft);
    font-size: 1rem;
    margin: 0;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeRightSoft 1s ease both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #9fdce2;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-kicker-line {
    display: inline-block;
    width: 38px;
    height: 2px;
    background: var(--accent-bright);
    border-radius: 999px;
}

.roles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.roles span {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(0, 81, 90, 0.45);
    padding: 9px 14px;
    border-radius: 999px;
    color: #eef6ff;
    font-size: 0.9rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.roles span:hover {
    transform: translateY(-2px);
    border-color: rgba(73, 213, 226, 0.45);
    background: rgba(255,255,255,0.09);
}

.roles span:nth-child(1) {
    animation: fadeUpSoft 0.7s ease both;
    animation-delay: 0.15s;
}

.roles span:nth-child(2) {
    animation: fadeUpSoft 0.7s ease both;
    animation-delay: 0.25s;
}

.roles span:nth-child(3) {
    animation: fadeUpSoft 0.7s ease both;
    animation-delay: 0.35s;
}

.lead {
    font-size: 1.05rem;
    margin-bottom: 16px;
    text-align: justify;
    color: var(--text-body);
    line-height: 1.75;
}
.lead-head {
    font-size: 1.05rem;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text-body);
    line-height: 1.75;
    padding: 0px 120px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.highlight-box {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(0, 81, 90, 0.35);
    border-radius: 20px;
    padding: 18px 18px 16px 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.highlight-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(73, 213, 226, 0.08), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.highlight-box:hover {
    transform: translateY(-4px);
    border-color: rgba(73, 213, 226, 0.45);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.highlight-box:hover::before {
    left: 120%;
}

.highlight-box strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.highlight-box span {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== SECCIONES GENERALES ===== */

.hero-card,
.panel,
.card,
.content-block {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    margin-top: 10px;
    margin-bottom: 45px;
}

.hero-card {
    color: #1f2937;
    padding: 28px;
}

.section,
.page-hero {
    padding: 70px 0;
}

.page-hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(/static/img/back-web-key.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.grid-2,
.skills-grid,
.cards {
    display: grid;
    gap: 22px;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.skills-grid {
    grid-template-columns: repeat(2, 1fr);
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.panel,
.card,
.content-block {
    padding: 26px;
}

.section-header,
.content-block h2 {
    margin-bottom: 22px;
    color: var(--text-main);
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item h3,
.card h3,
.panel h3 {
    margin-bottom: 8px;
    color: #0f172a;
}

.simple-list {
    padding-left: 18px;
}

.simple-list li {
    margin-bottom: 8px;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter {
    background: #e6eef8;
    color: #145da0;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.filter.active {
    background: #145da0;
    color: var(--text-main);
}

.thumb-placeholder {
    height: 140px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #0d3b66;
    margin-bottom: 16px;
}

.site-footer {
    background: var(--bg-dark);
    color: #dbe4f0;
    text-align: center;
    align-items: center;
    padding: 14px 0;
    margin-top: 30px;
    font-size: 13px;
}

.profile-info {
    padding: 24px;
}

.profile-info h3 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.profile-info p {
    margin: 0;
}

.img-casa-estudio {
    width: 180px;
}

/* ===== TIMELINE EXPERIENCIA ===== */

.timeline-pro {
    display: grid;
    gap: 24px;
    position: relative;
}

.timeline-pro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: stretch;
}


.timeline-pro-year {
    display: block;
    text-align: center;
}

.timeline-pro-year img {
    width: 180px;
    padding: 7px 4px;
    display: block;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.76);
    border-radius: 8px;
}
.cursos img {
    width: 110px;
    padding: 7px 4px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.timeline-pro-year span,
.timeline-pro-content span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 58px;
    height: 28px;
    border-radius: 10%;
    background: #172341;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
}

.timeline-pro-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-pro-logo img {
    max-width: 110px;
    max-height: 75px;
    width: auto;
    height: auto;
    object-fit: contain;
}


.timeline-period {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 700;
}

.timeline-pro-content p:last-child {
    margin-bottom: 0;
    text-align: justify;
}

.timeline-pro-content .descripcion {
    font-size: 13px;
    text-align: left;
    color: #000000;
}

/* ===== MIS HABILIDADES ===== */

.skills-showcase {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-top: 28px;
    align-items: start;
}

.skills-nav {
    display: grid;
    gap: 14px;
}

.skill-tab {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(18, 24, 34, 0.96), rgba(24, 33, 47, 0.95));
    border: 1px solid rgba(0, 81, 90, 0.65);
    border-radius: 16px;
    padding: 18px 20px;
    color: #dbe4f0;
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: var(--shadow-soft);
}

.skill-tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(73, 213, 226, 0.08), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.skill-tab:hover {
    transform: translateY(-2px);
    border-color: rgb(0, 124, 138);
    background: linear-gradient(135deg, rgba(21, 30, 43, 0.98), rgba(28, 39, 55, 0.98));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.skill-tab:hover::before {
    left: 120%;
}

.skill-tab.active {
    border-color: rgb(0, 140, 156);
    background: linear-gradient(135deg, rgba(0, 81, 90, 0.28), rgba(18, 24, 34, 0.98));
    box-shadow: 0 14px 30px rgba(0, 81, 90, 0.2);
}

.skill-tab.active::before {
    left: 120%;
}

.skill-tab-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.skill-tab small {
    color: #9db0c9;
    font-size: 0.84rem;
}

.skills-panels {
    position: relative;
}

.skill-panel {
    display: none;
    background: linear-gradient(135deg, rgba(14, 17, 23, 0.98), rgba(20, 27, 39, 0.98));
    border: 1px solid rgba(0, 81, 90, 0.65);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
    min-height: 100%;
}

.skill-panel.active {
    display: block;
    animation: fadePanel 0.25s ease;
}

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

.skill-panel-header {
    margin-bottom: 22px;
}

.skill-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 81, 90, 0.24);
    border: 1px solid rgba(0, 140, 156, 0.35);
    color: #8ee7f0;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.skill-panel-header h3 {
    font-size: 1.55rem;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 10px;
}

.skill-panel-header p {
    color: #afc0d5;
    max-width: 720px;
}

.skill-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.skill-point {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 81, 90, 0.3);
    border-radius: 16px;
    padding: 16px 18px;
    color: #e7eef8;
    position: relative;
    min-height: 100%;
}

.skill-point::before {
    content: "●";
    color: var(--accent-bright);
    font-size: 0.95rem;
    margin-right: 8px;
}

/* ===== ANIMACIONES ===== */

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

@keyframes fadeLeftSoft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRightSoft {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.highlight-box:nth-child(1) {
    animation: fadeUpSoft 0.8s ease both;
    animation-delay: 0.35s;
}

.highlight-box:nth-child(2) {
    animation: fadeUpSoft 0.8s ease both;
    animation-delay: 0.45s;
}

.highlight-box:nth-child(3) {
    animation: fadeUpSoft 0.8s ease both;
    animation-delay: 0.55s;
}
/* ===== EXPERIENCIA PAGE ===== */

.page-hero-experience {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
        url(/static/img/background-developer.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(0, 81, 90, 0.45);
}

.page-hero-experience .container {
    max-width: 900px;
    text-align: center;
}

.page-hero-experience .lead {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: #dbe7f3;
}

.experience-section {
    padding-top: 80px;
}

.experience-block {
    position: relative;
    background: linear-gradient(135deg, rgba(14, 17, 23, 0.98), rgba(20, 27, 39, 0.98));
    border: 1px solid rgba(0, 81, 90, 0.28);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.block-heading {
    margin-bottom: 28px;
}

.block-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 81, 90, 0.2);
    border: 1px solid rgba(73, 213, 226, 0.18);
    color: #8ee7f0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.block-heading h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: #ffffff;
}

.block-heading p {
    color: #aab8c8;
    max-width: 820px;
}

.timeline-pro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.timeline-pro-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 81, 90, 0.2);
    border-left: 4px solid rgba(73, 213, 226, 0.55);
    border-radius: 20px;
    padding: 22px;
    min-height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-pro-item:hover {
    transform: translateY(-3px);
    border-color: rgba(73, 213, 226, 0.38);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.timeline-pro-item-compact {
    grid-template-columns: 110px 1fr;
}

.timeline-pro-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.timeline-pro-year span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(23, 35, 65, 0.95);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.timeline-pro-year img {
    max-width: 140px;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

.timeline-pro-content h3 {
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 500;
}

.timeline-pro-content h4 {
    margin-bottom: 8px;
    color: #79a6aa;
    font-size: 13px;
    font-weight: 500;
}

.timeline-period {
    margin-bottom: 10px;
    color: #95a7bc;
    font-size: 0.9rem;
    font-weight: 700;
}

.timeline-pro-content .descripcion,
.timeline-pro-content p:last-child {
    margin-bottom: 0;
    color: #dce7f2;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.65;
}
/* ===== PORTAFOLIO PAGE ===== */

.page-hero-portfolio {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
        url(/static/img/background-developer.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(0, 81, 90, 0.45);
}

.page-hero-portfolio .container {
    max-width: 900px;
    text-align: center;
}

.page-hero-portfolio .lead {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: #dbe7f3;
}

.portfolio-section {
    padding-top: 80px;
}

.portfolio-intro-block {
    position: relative;
    background: linear-gradient(135deg, rgba(14, 17, 23, 0.98), rgba(20, 27, 39, 0.98));
    border: 1px solid rgba(0, 81, 90, 0.28);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.portfolio-grid-pro {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 10px;
}

.portfolio-card-pro {
    background: linear-gradient(135deg, rgba(14, 17, 23, 0.98), rgba(20, 27, 39, 0.98));
    border: 1px solid rgba(0, 81, 90, 0.25);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.portfolio-card-pro:hover {
    transform: translateY(-6px);
    border-color: rgba(73, 213, 226, 0.35);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
}

.portfolio-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.portfolio-card-pro:hover .portfolio-card-image img {
    transform: scale(1.04);
}

.portfolio-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 12, 18, 0.36), rgba(8, 12, 18, 0.04));
    pointer-events: none;
}

.portfolio-card-body {
    padding: 22px;
}

.portfolio-card-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 14px;
}

.portfolio-tag-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 81, 90, 0.2);
    border: 1px solid rgba(73, 213, 226, 0.18);
    color: #8ee7f0;
    font-size: 0.82rem;
    font-weight: 700;
}

.portfolio-card-body h3 {
    font-size: 1.12rem;
    line-height: 1.35;
    color: #ffffff;
    margin-bottom: 10px;
}

.portfolio-card-body p {
    color: #c6d4e3;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.portfolio-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.portfolio-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color:#49d5e2;
    font-size: 0.88rem;
}
.portfolio-status a{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color:#49d5e2;
    font-size: 0.88rem;
}

.portfolio-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #49d5e2;
    box-shadow: 0 0 12px rgba(73, 213, 226, 0.55);
}
.link-empresa a{
    color: #49d5e2;
}
/* ===== CONTACTO PAGE ===== */

.page-hero-contacto {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
        url(/static/img/background-developer.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(0, 81, 90, 0.45);
}

.page-hero-contacto .container {
    max-width: 900px;
    text-align: center;
}

.page-hero-contacto .lead {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: #dbe7f3;
}

.contacto-section {
    padding-top: 80px;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.contacto-info,
.contacto-form-wrap {
    background: linear-gradient(135deg, rgba(14, 17, 23, 0.98), rgba(20, 27, 39, 0.98));
    border: 1px solid rgba(0, 81, 90, 0.28);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.contacto-items {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.contacto-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0, 81, 90, 0.24);
    border-radius: 16px;
    padding: 18px;
}

.contacto-item h3 {
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 1rem;
}

.contacto-item p {
    color: #c7d4e3;
}

.contacto-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.contacto-redes a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #8ee7f0;
    border: 1px solid rgba(73, 213, 226, 0.2);
    background: rgba(0, 81, 90, 0.14);
    transition: 0.25s ease;
}

.contacto-redes a:hover {
    transform: translateY(-2px);
    background: rgba(0, 81, 90, 0.24);
}

.contacto-form {
    display: grid;
    gap: 18px;
    margin-top: 10px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    color: #dfe8f2;
    font-weight: 700;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0, 81, 90, 0.28);
    border-radius: 14px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(73, 213, 226, 0.45);
    box-shadow: 0 0 0 3px rgba(73, 213, 226, 0.08);
}

.flash-messages {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.flash-message {
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.flash-message.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #a7f3d0;
}

.flash-message.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fecaca;
}
/* ===== BOTÓN TO TOP ===== */

.to-top-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(73, 213, 226, 0.28);
    border-radius: 50%;
    background: rgba(10, 15, 25, 0.9);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    z-index: 300;
}

.to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top-btn:hover {
    background: rgba(0, 81, 90, 0.95);
    border-color: rgba(73, 213, 226, 0.45);
    transform: translateY(-3px);
}

.to-top-btn:active {
    transform: translateY(-1px);
}
/* ===== ERROR 404 ===== */

.page-hero-404 {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url(/static/img/back-web-key.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(0, 81, 90, 0.45);
}

.error-section {
    padding-top: 80px;
}

.error-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(14, 17, 23, 0.98), rgba(20, 27, 39, 0.98));
    border: 1px solid rgba(0, 81, 90, 0.28);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    padding: 42px 30px;
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: #49d5e2;
    margin-bottom: 18px;
    text-shadow: 0 0 20px rgba(73, 213, 226, 0.18);
}

.error-card h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 14px;
}

.error-card p {
    color: #c7d4e3;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto 24px auto;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
