/* ==========================================================================
   PORTFOLIO STYLES - ALEXIS SANCHEZ
   Estética Premium Dark Mode, Glassmorphism y Micro-animaciones
   ========================================================================== */

/* Variables de Color e Identidad para el Portafolio */
:root {
    --portfolio-bg: #070b19;
    --portfolio-bg-light: #0d1527;
    --portfolio-card-bg: rgba(20, 30, 55, 0.4);
    --portfolio-card-border: rgba(255, 255, 255, 0.08);
    --portfolio-text-main: #f8fafc;
    --portfolio-text-muted: #94a3b8;
    --portfolio-accent-blue: #3b82f6;
    --portfolio-accent-teal: #10b981;
    --portfolio-accent-purple: #8b5cf6;
    --portfolio-accent-orange: #f97316;
    --portfolio-gradient-text: linear-gradient(135deg, #60a5fa 0%, #34d399 50%, #c084fc 100%);
    --portfolio-glow-blue: 0 0 20px rgba(59, 130, 246, 0.25);
    --portfolio-glow-teal: 0 0 20px rgba(16, 185, 129, 0.25);
    --portfolio-glow-purple: 0 0 20px rgba(139, 92, 246, 0.25);
}

/* Adaptación del Navbar Existente al Portafolio (Dark Mode Overrides) */
body.portfolio-page {
    background-color: var(--portfolio-bg);
    color: var(--portfolio-text-main);
    padding-top: 80px;
    overflow-x: hidden;
}

body.portfolio-page p {
    color: var(--portfolio-text-muted);
}

body.portfolio-page .navbar {
    background: rgba(7, 11, 25, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

body.portfolio-page .nav-link {
    color: #cbd5e1 !important;
    text-shadow: none !important;
}

body.portfolio-page .nav-link::after {
    background: var(--portfolio-accent-blue) !important;
}

body.portfolio-page .nav-link:hover,
body.portfolio-page .nav-link.active {
    color: var(--portfolio-text-main) !important;
}

body.portfolio-page .navbar-scrolled {
    background: rgba(5, 8, 18, 0.95) !important;
}

body.portfolio-page .brand-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(59, 130, 246, 0.3));
}

body.portfolio-page .nav-toggle-icon {
    background: #cbd5e1 !important;
}

/* ==========================================================================
   SECCIONES Y CONTENEDORES
   ========================================================================== */

.portfolio-section {
    padding: 100px 0;
    position: relative;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

.section-about::before {
    top: 10%;
    left: 5%;
    background: var(--portfolio-accent-blue);
}

.section-skills::before {
    bottom: 10%;
    right: 5%;
    background: var(--portfolio-accent-teal);
}

.section-projects::before {
    top: 20%;
    right: 10%;
    background: var(--portfolio-accent-purple);
}

.section-contact::before {
    bottom: 0;
    left: 30%;
    background: var(--portfolio-accent-orange);
}

.portfolio-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.portfolio-section-header {
    text-align: center;
    margin-bottom: 70px;
}

.portfolio-section-title {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.portfolio-section-subtitle {
    font-size: 1.15rem;
    color: var(--portfolio-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.portfolio-hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
    background: radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.8) 0%, rgba(7, 11, 25, 1) 90%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-pretitle {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--portfolio-accent-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* .hero-pretitle::before {
    content: '';
    width: 25px;
    height: 2px;
    background-color: var(--portfolio-accent-blue);
} */

.hero-title-main {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    font-family: var(--font-heading);
    margin: 0;
}

.hero-name-gradient {
    background: var(--portfolio-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(59, 130, 246, 0.15));
}

.hero-tagline-container {
    height: 40px;
    display: flex;
    align-items: center;
}

.hero-tagline {
    font-size: 1.75rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 25px;
    background-color: var(--portfolio-accent-blue);
    margin-left: 5px;
    animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {

    from,
    to {
        background-color: transparent
    }

    50% {
        background-color: var(--portfolio-accent-blue);
    }
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--portfolio-text-muted);
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.portfolio-btn-primary {
    background: linear-gradient(135deg, var(--portfolio-accent-blue) 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: var(--portfolio-glow-blue);
}

.portfolio-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.45);
}

.portfolio-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.portfolio-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.portfolio-btn-whatsapp {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: var(--portfolio-glow-teal);
}

.portfolio-btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.45);
}

/* Imagen Hero y Badges Flotantes */
.hero-image-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile-card-tilt {
    position: relative;
    width: 320px;
    height: 420px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--portfolio-card-border);
    backdrop-filter: blur(20px);
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    overflow: hidden;
}

.profile-card-tilt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.profile-card-tilt:hover {
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.15), 0 0 40px rgba(59, 130, 246, 0.1);
}

.profile-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.profile-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(7, 11, 25, 0.8) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.profile-img-portfolio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.profile-img-portfolio.active {
    opacity: 1;
    transform: scale(1);
}

/* Indicadores del Carrusel */
.profile-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--portfolio-accent-blue);
    width: 20px;
    border-radius: 4px;
    box-shadow: var(--portfolio-glow-blue);
}

/* Badges Debajo de la Imagen */
.profile-badges-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.profile-badge {
    background: rgba(15, 23, 42, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-badge:hover {
    transform: translateY(-3px);
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.profile-badge.badge-laravel {
    border-left: 4px solid #ff2d20;
}

.profile-badge.badge-vue {
    border-left: 4px solid #42b883;
}

.profile-badge.badge-exp {
    border-left: 4px solid var(--portfolio-accent-blue);
}

.profile-badge .badge-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.profile-badge.badge-laravel .badge-icon {
    color: #ff2d20;
}

.profile-badge.badge-vue .badge-icon {
    color: #42b883;
}

.profile-badge.badge-exp .badge-icon {
    color: var(--portfolio-accent-blue);
}

@keyframes float-animation {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ==========================================================================
   SOBRE MI / HISTORIA
   ========================================================================== */

.about-timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.about-bio-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-paragraph-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #e2e8f0 !important;
    font-weight: 500;
}

.about-bio-panel p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-portfolio-card {
    background: rgba(20, 30, 55, 0.9);
    border: 1px solid var(--portfolio-card-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, background-color 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.stat-portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(20, 30, 55, 0.95);
}

.stat-number-portfolio {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--portfolio-accent-blue);
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.stat-label-portfolio {
    font-size: 0.85rem;
    color: var(--portfolio-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline */
.about-timeline-panel {
    position: relative;
    padding-left: 30px;
}

.about-timeline-panel::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--portfolio-accent-blue), var(--portfolio-accent-teal), transparent);
}

.timeline-event-card {
    position: relative;
    margin-bottom: 40px;
}

.timeline-event-card:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--portfolio-bg);
    border: 3px solid var(--portfolio-accent-blue);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-event-card:hover .timeline-marker {
    background-color: var(--portfolio-accent-blue);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--portfolio-accent-blue);
}

.timeline-year {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--portfolio-accent-blue);
    margin-bottom: 8px;
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.timeline-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   SKILLS / HABILIDADES
   ========================================================================== */

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

.skills-category-card {
    background: rgba(20, 30, 55, 0.9);
    border: 1px solid var(--portfolio-card-border);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.skills-category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.skills-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.skills-category-icon {
    font-size: 1.6rem;
    color: var(--portfolio-accent-teal);
}

.skills-category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
}

.skill-name {
    color: #e2e8f0;
}

.skill-percent {
    color: var(--portfolio-accent-teal);
}

.skill-bar-outer {
    height: 8px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-inner {
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    /* Anima con JS */
    background: linear-gradient(90deg, var(--portfolio-accent-blue) 0%, var(--portfolio-accent-teal) 100%);
    border-radius: 10px;
    transition: transform 1.5s cubic-bezier(0.1, 0.7, 0.1, 1);
    will-change: transform;
}

/* ==========================================================================
   PROYECTOS / SHOWCASE
   ========================================================================== */

.projects-filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn-portfolio {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--portfolio-text-muted);
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn-portfolio:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.filter-btn-portfolio.active {
    background: var(--portfolio-accent-blue);
    color: #ffffff;
    border-color: var(--portfolio-accent-blue);
    box-shadow: var(--portfolio-glow-blue);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Project Card */
.project-portfolio-card {
    background: rgba(20, 30, 55, 0.9);
    border: 1px solid var(--portfolio-card-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.project-portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Auxiliares de Filtrado */
.project-portfolio-card.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.project-portfolio-card.is-hidden {
    display: none !important;
}

.project-media {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.project-portfolio-card:hover .project-media-img {
    transform: scale(1.04);
}

.project-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 11, 25, 0.9) 0%, transparent 100%);
}

.project-status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--portfolio-accent-teal);
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
}

.project-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--portfolio-accent-teal);
    display: inline-block;
    box-shadow: 0 0 8px var(--portfolio-accent-teal);
}

.project-content-area {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 50px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link-btn {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.project-link-btn:hover {
    color: var(--portfolio-accent-blue);
}

.project-link-btn-primary {
    color: var(--portfolio-accent-blue);
}

.project-link-btn-primary:hover {
    color: #60a5fa;
}

/* ==========================================================================
   FILOSOFIA DE DESARROLLO
   ========================================================================== */

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.philosophy-card {
    background: rgba(20, 30, 55, 0.9);
    border: 1px solid var(--portfolio-card-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.philosophy-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    color: var(--portfolio-accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.philosophy-card:hover .philosophy-icon-box {
    background: var(--portfolio-accent-purple);
    color: #ffffff;
    box-shadow: var(--portfolio-glow-purple);
    transform: scale(1.05);
}

.philosophy-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.philosophy-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-layout-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-intro-para {
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-detail-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-detail-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--portfolio-accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.contact-detail-label {
    font-size: 0.85rem;
    color: var(--portfolio-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.contact-detail-value:hover {
    color: var(--portfolio-accent-blue);
}

.social-links-portfolio {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-portfolio-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-portfolio-btn:hover {
    background: var(--portfolio-accent-blue);
    border-color: var(--portfolio-accent-blue);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--portfolio-glow-blue);
}

.social-portfolio-btn.github:hover {
    background: #333333;
    border-color: #333333;
    box-shadow: 0 0 15px rgba(51, 51, 51, 0.4);
}

.social-portfolio-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 0 15px rgba(0, 119, 181, 0.4);
}

.social-portfolio-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

/* Formulario */
.glass-contact-form {
    background: rgba(20, 30, 55, 0.9);
    border: 1px solid var(--portfolio-card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.glass-form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glass-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.glass-form-input {
    background: rgba(7, 11, 25, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 20px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.glass-form-input:focus {
    outline: none;
    border-color: var(--portfolio-accent-blue);
    background: rgba(7, 11, 25, 0.6);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.glass-form-input::placeholder {
    color: #64748b;
}

.glass-form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 500;
    display: none;
}

.glass-form-group.has-error .error-message {
    display: block;
}

.portfolio-btn-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    margin-top: 10px;
    font-size: 1rem;
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-text-content {
        align-items: center;
    }

    .hero-pretitle {
        justify-content: center;
    }

    .hero-description {
        margin: 0 auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .about-timeline-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

@media (max-width: 768px) {
    .portfolio-section {
        padding: 70px 0;
    }

    .portfolio-section-title {
        font-size: 2.2rem;
    }

    .hero-title-main {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.4rem;
    }

    .profile-card-tilt {
        width: 280px;
        height: 370px;
    }

    .floating-badge {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .badge-laravel {
        left: -20px;
        top: 20px;
    }

    .badge-node {
        right: -20px;
        bottom: 60px;
    }

    .badge-exp {
        left: -10px;
        bottom: 10px;
    }

    .about-stats-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

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

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

    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .glass-contact-form {
        padding: 25px;
    }

    .projects-filter-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-btn-portfolio {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   PORTFOLIO NAVBAR SPECIAL
   ========================================================================== */
.portfolio-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(7, 11, 25, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
}

.portfolio-navbar.scrolled {
    height: 70px;
    background: rgba(5, 8, 18, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-nav-container {
    max-width: 1500px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-nav-brand {
    display: flex;
    align-items: center;
}

.portfolio-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.portfolio-brand-link .logo-image {
    width: 60px;
    transition: transform 0.3s ease;
}

.portfolio-brand-link:hover .logo-image {
    transform: scale(1.05);
}

.portfolio-brand-link .logo-monogram {
    font-family: monospace;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--portfolio-accent-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.portfolio-brand-link .logo-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--portfolio-text-main);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-nav-menu {
    display: flex;
    align-items: center;
}

.portfolio-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.portfolio-nav-link {
    color: var(--portfolio-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.portfolio-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--portfolio-accent-blue);
    transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: var(--portfolio-glow-blue);
}

.portfolio-nav-link:hover {
    color: var(--portfolio-text-main);
}

.portfolio-nav-link:hover::after,
.portfolio-nav-link.active::after {
    width: 100%;
}

.portfolio-nav-link.active {
    color: var(--portfolio-text-main);
}

.portfolio-nav-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.portfolio-nav-link.back-to-site {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.portfolio-nav-link.back-to-site:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--portfolio-text-main);
    transform: translateX(-3px);
}

.portfolio-nav-link.back-to-site::after {
    display: none;
}

.portfolio-nav-link.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.portfolio-nav-link.lang-toggle-btn i {
    color: var(--portfolio-accent-blue);
    font-size: 0.9rem;
    transition: transform 0.5s ease;
}

.portfolio-nav-link.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--portfolio-accent-blue);
    color: var(--portfolio-text-main);
}

/* .portfolio-nav-link.lang-toggle-btn:hover i {
    transform: rotate(360deg);
} */

.portfolio-nav-link.lang-toggle-btn::after {
    display: none;
}

/* Mobile Nav Toggle */
.portfolio-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.portfolio-toggle-line {
    width: 100%;
    height: 2px;
    background-color: var(--portfolio-text-main);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   PORTFOLIO FOOTER SPECIAL
   ========================================================================== */
.portfolio-footer {
    background: radial-gradient(circle at top, rgba(13, 21, 39, 0.8) 0%, rgba(7, 11, 25, 1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.portfolio-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.portfolio-footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.portfolio-footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-footer-brand .logo-monogram {
    font-family: monospace;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--portfolio-accent-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.portfolio-footer-brand .logo-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--portfolio-text-main);
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--portfolio-text-muted);
}

.portfolio-footer-socials {
    display: flex;
    gap: 12px;
}

.portfolio-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--portfolio-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-social-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.portfolio-social-link.github:hover {
    background: #333333;
    border-color: #333333;
    box-shadow: 0 0 15px rgba(51, 51, 51, 0.4);
}

.portfolio-social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 0 15px rgba(0, 119, 181, 0.4);
}

.portfolio-social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.portfolio-footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    position: relative;
    padding-bottom: 10px;
}

.portfolio-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--portfolio-accent-blue);
    border-radius: 2px;
}

.portfolio-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portfolio-footer-links a {
    color: var(--portfolio-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.portfolio-footer-links a:hover {
    color: var(--portfolio-accent-blue);
    transform: translateX(5px);
}

.portfolio-footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.portfolio-footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--portfolio-text-muted);
}

.portfolio-footer-contact-list li i {
    color: var(--portfolio-accent-blue);
    width: 16px;
    font-size: 1rem;
}

.portfolio-footer-contact-list li a {
    color: var(--portfolio-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.portfolio-footer-contact-list li a:hover {
    color: var(--portfolio-accent-blue);
}

.portfolio-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.portfolio-copyright {
    font-size: 0.85rem;
    color: var(--portfolio-text-muted);
    margin: 0;
}

.portfolio-credit {
    font-size: 0.85rem;
    color: var(--portfolio-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
}

/* Floating Elements for Portfolio */
.portfolio-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 99;
    backdrop-filter: blur(10px);
}

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

.portfolio-back-to-top:hover {
    background: var(--portfolio-accent-blue);
    border-color: var(--portfolio-accent-blue);
    box-shadow: var(--portfolio-glow-blue);
    transform: translateY(-3px);
}

.portfolio-whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 90px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 99;
    text-decoration: none;
    font-size: 1.3rem;
}

.portfolio-whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@media (max-width: 1024px) {
    .portfolio-nav-list {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .portfolio-nav-toggle {
        display: flex;
    }

    .portfolio-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(7, 11, 25, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        align-items: start;
    }

    .portfolio-nav-menu.active {
        right: 0;
    }

    .portfolio-nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .portfolio-nav-separator {
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.08);
    }

    /* Hamburger Active State animations */
    .portfolio-nav-toggle.active .portfolio-toggle-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .portfolio-nav-toggle.active .portfolio-toggle-line:nth-child(2) {
        opacity: 0;
    }

    .portfolio-nav-toggle.active .portfolio-toggle-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .portfolio-footer {
        padding: 50px 0 30px;
    }

    .portfolio-footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .portfolio-footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .portfolio-whatsapp-float {
        right: 30px;
        bottom: 130px;
    }
}