@media (min-width: 769px) {
    .menu-button,
    .menu-button *,
    .menu-button i,
    .menu-button .bx,
    .menu-button .bx-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
}
@media (min-width: 769px) {
    .menu-button {
        display: none !important;
    }
}
/* Mostrar menú hamburguesa solo en móvil y ocultar menú normal */
@media (max-width: 768px) {
    .menu-button {
        display: block !important;
        margin-left: auto;
        order: 2;
    }
    .navbar {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: rgba(12, 17, 39, 0.98);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 1.5rem 1.5rem;
        gap: 0.5rem;
        align-items: flex-start;
        overflow-y: auto;
        z-index: 999;
        animation: slideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    .navbar.active {
        display: flex;
    }
}

@media (min-width: 769px) {
    .menu-button {
        display: none !important;
    }
    .navbar {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
        align-items: center;
        gap: 2.5rem;
        border: none;
    }
}
/* ============================================
   GLASSMORPHISM LIQUID GLASS CSS
   Color Palette: Modern Blue
   ============================================ */

/* ROOT VARIABLES */
:root {
    --primary-blue: #0066ff;
    --primary-light: #0080ff;
    --primary-dark: #0052cc;
    --secondary-blue: #00d9ff;
    --accent-blue: #3399ff;
    --dark-bg: #0D1B28;
    --dark-card: #0D1B28;
    --glass-light: rgba(255, 255, 255, 0.1);
    --glass-lighter: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b0b9d4;
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}



/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-light);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-blue);
}

/* ============================================
   GLASS COMPONENTS
   ============================================ */

.glass-card, .glass-panel, .glass-button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 40px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.glass-panel {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.glass-button {
    padding: 12px 28px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.glass-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.glass-button:hover::before {
    left: 100%;
}

.glass-button:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

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

.header {
    position: sticky;
    width: 100%;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-bottom: -2rem;
}

.barra-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.barra-menu > a {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
    display: block;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.navbar {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.navbar a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-blue));
    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.activeitemnav::after {
    width: 100%;
}

.navbar a.activeitemnav {
    color: var(--primary-light);
}

/* Botón hamburguesa oculto por defecto en desktop */
.menu-button {
    display: none !important;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.menu-button:active {
    transform: scale(0.95);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

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

.home {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 0;
    overflow: hidden;
    width: 100%;
   
}

.home-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 4rem 4rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.home-text {
    flex: 1;
    max-width: 600px;
}

.jose {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.realizador {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.home-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.habilidades-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0 0 0;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
}

.hab-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: alias;
}

.hab-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.hab-item i {
    font-size: 1rem;
    color: var(--secondary-blue);
    transition: all 0.3s ease;
}

.hab-item span {
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--text-primary);
}

.hab-item:hover i {
    color: var(--primary-light);
    transform: scale(1.2);
}

.btnstrabajo {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.home-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding: 2rem 0;
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    perspective: 1000px;
}

.home-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 15px 40px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1.5rem;
    position: relative;
    transform-style: preserve-3d;
}

.home-social a::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: transparent;
    border-radius: 50%;
    z-index: -1;
    transform: translateZ(-15px);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.home-social a:hover {
    background: var(--primary-light);
    color: var(--dark-bg);
    border-color: var(--primary-light);
    transform: translateY(-12px) rotateX(15deg) rotateZ(5deg) scale(1.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20BA63 100%);
    border: none !important;
    position: fixed;
    bottom: 3rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 50;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-whatsapp:hover {
    transform: scale(1.15) translateY(-4px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* Skills Section */
.habilidades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.hab:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.hab i {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
    display: block;
}

.hab h3 {
    font-size: 1rem;
    color: var(--text-primary);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    margin-bottom: 5rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-blue));
    border-radius: 2px;
}

/* ============================================
   CARDS & GRID
   ============================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1));
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--dark-bg);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Poppins', inherit;
    font-size: 0.95rem;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.25), 0 0 30px rgba(255, 255, 255, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
    min-height: 140px;
    font-family: 'Poppins', inherit;
}

/* ============================================
   CONTACT FORM STYLES
   ============================================ */

.contact form {
    max-width: 900px;
    margin: 0 auto;
}

.contact .heading {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.contact .heading span {
    color: var(--secondary-blue);
    display: inline-block;
}

.input-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-field input {
    width: 100%;
}

.input-field .focus {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-blue));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.input-field input:focus ~ .focus {
    width: 100%;
}

.textarea-field {
    position: relative;
    margin-bottom: 2rem;
}

.textarea-field textarea {
    width: 100%;
    padding: 18px;
}

.textarea-field .focus {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-blue));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.textarea-field textarea:focus ~ .focus {
    width: 100%;
}

.btn-box.btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.contact .btn {
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.contact .btn:hover::before {
    left: 100%;
}

.contact .btn:hover {
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
}

.contact .btn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}


textarea {
    resize: vertical;
    min-height: 120px;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
    margin-top: clamp(2rem, 4vw, 3.5rem);
    position: relative;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    animation: fadeInUp 0.8s ease-out;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1) rotate(5deg);
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 250px;
    font-weight: 300;
}

.footer-section h4 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-section ul li {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li i {
    color: var(--secondary-blue);
    font-size: 1.1rem;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 400;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-blue));
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--primary-light);
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-blue) 100%);
    border-color: var(--primary-light);
    color: var(--dark-bg);
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info li {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
}

.contact-info i {
    color: var(--secondary-blue);
    font-size: 1.2rem;
    min-width: 24px;
}

.contact-info a,
.contact-info span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
    margin: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 300;
    line-height: 1.6;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-legal-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--primary-light);
}

.footer-legal-link:hover::after {
    width: 100%;
}

.footer-separator {
    color: var(--border-color);
    opacity: 0.5;
}

.footer-iconTop {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-light);
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.footer-iconTop:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-blue) 100%);
    border-color: var(--primary-light);
    color: var(--dark-bg);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.4);
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.hidden { display: none; }
.visible { display: block; }

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}



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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    }
}

/* ============================================
   SLIDER / CAROUSEL INFINITO
   ============================================ */

.slider {
    width: 100%;
    padding: 1rem 5rem;
    overflow: hidden;
    border: none;
    position: relative;
}

.slider::before,
.slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 250px;
    z-index: 2;
    pointer-events: none;
}

.slider::before {
    left: 0;
    background: linear-gradient(to right, 
        rgba(13, 27, 40, 1) 0%, 
        rgba(13, 27, 40, 0.8) 30%,
        rgba(13, 27, 40, 0.4) 60%,
        transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.slider::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(13, 27, 40, 1) 0%, 
        rgba(13, 27, 40, 0.8) 30%,
        rgba(13, 27, 40, 0.4) 60%,
        transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.slider .heading {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.slider .heading span {
    color: var(--primary-light);
}

.slide-track {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
    width: fit-content;
    will-change: transform;
}


.marca {
    width: 15rem;
    height: auto;
    padding: 0.5rem;
}

.marca:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease-in-out;
}

.marca img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.9);
    transition: filter 0.3s ease;
}

.marca:hover img {
    filter: grayscale(0%) brightness(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .slider {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .slider::before,
    .slider::after {
        width: 80px;
    }

    .slider .heading {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .slide-track {
        gap: 1.5rem;
        animation: scroll 20s linear infinite;
    }

  

    
}

/* ============================================
   SOFTWARE SECTION
   ============================================ */

.software {
    width: 100%;
    padding: 4rem 2rem;
    margin: 3rem 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}





.software .heading {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.software .heading span {
    color: var(--secondary-blue);
    display: inline-block;
}

.software-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.contenedorsoft {
    display: flex;
    gap: 0.1rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}



.program {
    --glow: #ffffff; /* color por defecto */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border-radius: 25px;
}

/* Halo glass blur */
.program::before {
    content: '';
    position: absolute;
    inset: -30%;
    background: radial-gradient(
        circle at center,
        var(--glow) 0%,
        transparent 65%
    );
    border-radius: 50%;
    opacity: 0;
    filter: blur(25px);
    transition: opacity 0.35s ease;
    z-index: 0;
}

/* SVG encima del glow */
.program svg {
    position: relative;
    z-index: 1;
    width: 10rem;
    height: 10rem;
    transition: transform 0.3s ease;
}

/* Hover */
.program:hover {
    transform: translateY(-7px);
}

.program:hover::before {
    opacity: 0.35;
}



/* IMPORTANTÍSIMO: hover siempre del div */
.program svg,
.program svg * {
    pointer-events: none;
}



/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    z-index: 9999;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--primary-light);
}

.cookie-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-link {
    color: var(--secondary-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: var(--primary-light);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.cookie-btn.accept:hover {
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cookie-btn.decline {
    background: transparent;
    border: 1.5px solid var(--primary-light);
    color: var(--primary-light);
}

.cookie-btn.decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
    transform: translateY(-2px);
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .navbar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background: rgba(12, 17, 39, 0.7);
        backdrop-filter: blur(50px) saturate(200%);
        -webkit-backdrop-filter: blur(50px) saturate(200%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0 1.5rem;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        z-index: 9999;
        animation: slideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .navbar.active {
        display: flex;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar a {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
        position: relative;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar a:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.2);
        padding-left: 20px;
    }

    .navbar a.activeitemnav {
        background: rgba(0, 128, 255, 0.15);
        border-color: rgba(0, 128, 255, 0.4);
        color: var(--primary-light);
    }
    

    .menu-button {
        display: block !important;
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
        z-index: 10000;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.5rem;
        border-radius: 8px;
    }

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

    main {
        padding: 2rem 1rem;
    }

    .home {
        min-height: 80vh;
        padding: 2rem 1rem;
    }

    .home-content {
        flex-direction: row;
        padding: 2rem 1rem;
    }

    .home-text {
        max-width: 50vw;
        flex-basis: 50%;
        text-align: left;
        margin-bottom: 2rem;
    }

    .jose {
        font-size: 2.5rem;
    }

    .realizador {
        font-size: 1.3rem;
    }

    .habilidades-hero {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .hab-item {
        padding: 1rem;
        flex-direction: row;
        gap: 1rem;
    }

    .hab-item i {
        font-size: 1.3rem;
    }

   

    .btn {
        padding: 10px 20px;
        font-size: 0.75rem;
    }

    .home-social {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .home-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .software {
        padding: 3rem 1.5rem;
    }

    .software .heading {
        font-size: 2rem;
    }

    .software-subtitle {
        font-size: 0.9rem;
    }

    .contenedorsoft {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }

   

   
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .header {
        padding: 1rem;
    }

    .home {
        min-height: 70vh;
    }

    .home-background {
        background-attachment: scroll;
    }

    .jose {
        font-size: 1.8rem;
    }

    .realizador {
        font-size: 1rem;
    }

    .home-description {
        font-size: 0.95rem;
    }

    .habilidades-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .hab-item {
        padding: 1rem;
        flex-direction: row;
        gap: 1rem;
    }

    .hab-item i {
        font-size: 1.3rem;
    }

    .btnstrabajo {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.75rem;
    }

    .home-social {
        flex-direction: row;
        justify-content: center;
    }

    .home-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .barra-menu {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }

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

    .card-grid {
        gap: 1rem;
    }

    main {
        padding: 1rem;
    }

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


    .input-box {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact .heading {
        font-size: 1.5rem;
    }

    .contact .btn {
        padding: 12px 30px;
        font-size: 0.85rem;
    }

    .btn-box.btns {
        flex-direction: column;
    }

    .cookie-banner {
        padding: 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .cookie-text h3 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
        padding: 12px 16px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: calc(100vh - 220px);
    margin: 0 auto;
    margin-top: 80px;
    padding: 0;
    width: 100%;
}

.about h2.heading {
    text-align: center;
    font-size: 5rem;
    margin-bottom: 3rem;
}

.aboutflex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    gap: 30px;
    flex: 1;
}

.about-img {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

.about-img img {
    width: 400px;
    border: 3px solid var(--primary-light);
    object-fit: cover;
    border-radius: 50px;
    margin-bottom: -50px;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 60%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 60%);
}

.about-img h3 {
    font-size: 20px;
    z-index: 1;
    padding: 10px;
    border-radius: 10px;
    background: rgba(197, 197, 197, 0.363);
}

.about-content {
    flex: 1;
}

.about-content p {
    font-size: 16px;
    width: 100%;
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   PORTFOLIO PAGE
   ============================================ */

.portfolio-page {
    padding: clamp(3.5rem, 6vw, 5rem) 1.5rem clamp(4.5rem, 7vw, 6.5rem);
    box-sizing: border-box;
}

.portfolio-page--root {
    background: transparent;
}

.portfolio-page--detail {
    display: block;
    padding-bottom: clamp(5rem, 8vw, 7rem);
}

.content-portfoliomain {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 4rem);
    width: min(1200px, 100%);
    margin: 0 auto;
    box-sizing: border-box;
}

.content-description {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.content-description h1 {
    font-size: clamp(3rem, 6vw, 4.6rem);
    color: var(--text-primary);
    text-align: left;
    font-weight: 800;
    letter-spacing: -1px;
}

.content-description h1 span {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-description p {
    font-size: clamp(1.15rem, 2.5vw, 1.6rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 55ch;
}

.btnsportfolio {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.btn-portfolio {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-blue) 100%);
    border-radius: 10px;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-portfolio:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(255, 255, 255, 0.5);
}

.btn-portfolio:active {
    transform: translateY(-2px) scale(1.02);
}

.verde {
    background: linear-gradient(135deg, #0dbb41 0%, #1af760 100%);
}

.verde:hover {
    box-shadow: 0 16px 40px rgba(13, 187, 65, 0.5);
}

.portfolio-grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-auto-rows: clamp(260px, 30vw, 360px);
    grid-auto-flow: dense;
}

.itemportfolio {
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.itemportfolio:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 60px rgba(255, 255, 255, 0.25), 0 0 40px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.itemportfolio::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.itemportfolio:hover::before {
    opacity: 1;
}

.itemportfolio h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    color: var(--text-primary);
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    text-align: center;
    z-index: 3;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.4s ease;
}

.itemportfolio:hover h3 {
    transform: translateY(-8px);
}

.itemportfolio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.itemportfolio:hover img {
    transform: scale(1.08);
}

.content-portfolio {
    width: min(1100px, 100%);
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.portfolio-page--detail .content-portfolio {
    justify-content: flex-start;
}

.portfolio-detail {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.back-button {
    position: relative;
    padding: 12px 24px;
    background: var(--dark-card);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: bold;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-button::before {
    content: "volver";
    position: absolute;
    padding: 10px 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark-card);
    border-radius: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.back-button span {
    display: inline-block;
    transition: all 0.3s ease;
}

.back-button:hover span {
    opacity: 0;
    transform: translateX(-10px);
}

/* ============================================
   PORTFOLIO PREMIUM ENHANCEMENTS
   ============================================ */

/* Mejoras de animación para items */
@keyframes portfolioItemEntry {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.itemportfolio {
    animation: portfolioItemEntry 0.6s ease-out backwards;
}

.itemportfolio:nth-child(1) { animation-delay: 0.1s; }
.itemportfolio:nth-child(2) { animation-delay: 0.15s; }
.itemportfolio:nth-child(3) { animation-delay: 0.2s; }
.itemportfolio:nth-child(4) { animation-delay: 0.25s; }
.itemportfolio:nth-child(5) { animation-delay: 0.3s; }
.itemportfolio:nth-child(6) { animation-delay: 0.35s; }

/* Mejora del titánic del portafolio */
.content-description h1 {
    animation: fadeInDown 0.8s ease-out;
}

.content-description p {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.btnsportfolio {
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

/* Efectos adicionales para mejor UX */
.itemportfolio::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1) 0%, transparent 80%);
    opacity: 0;
    z-index: 4;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.itemportfolio:hover::after {
    opacity: 1;
}

/* Mejor contraste en el gradient del titulo */
.itemportfolio h3 {
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.8) 30%,
        rgba(0, 0, 0, 0.4) 60%, 
        transparent 100%);
}

/* Mejora de botones en portafolio */
.btn-portfolio {
    position: relative;
    overflow: hidden;
}

.btn-portfolio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-portfolio:active::before {
    width: 300px;
    height: 300px;
}

/* Mejorar espacio en portfolio grid */
.portfolio-grid {
    margin-top: 2rem;
}

.back-button:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(10px);
}

.back-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.containerbackbutton {
    margin-top: 90px;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.fullscreen-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.nav-button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    pointer-events: auto;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    pointer-events: auto;
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ============================================
   PORTAFOLIO WEB
   ============================================ */

.portafolioweb {
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.portafolioweb-content {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.portafolioweb-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    animation: fadeInDown 0.8s ease-out;
}

.portafolioweb-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.portafolioweb-header h1 span {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portafolioweb-header p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.8;
}

.proyectoswebgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.proyecto {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    animation: portfolioItemEntry 0.6s ease-out backwards;
}

.proyecto:nth-child(1) { animation-delay: 0.1s; }
.proyecto:nth-child(2) { animation-delay: 0.15s; }
.proyecto:nth-child(3) { animation-delay: 0.2s; }
.proyecto:nth-child(4) { animation-delay: 0.25s; }

.proyecto:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.proyecto img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 1;
}

.proyecto:hover img {
    transform: scale(1.1);
}

.proyecto-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    transition: all 0.4s ease;
}

.proyecto:hover .proyecto-overlay {
    padding: 2.5rem;
}

.proyecto-overlay h2 {
    color: var(--text-primary);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.proyecto-overlay i {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--secondary-blue);
    transition: transform 0.3s ease;
}

.proyecto:hover .proyecto-overlay i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .about h2.heading {
        font-size: 4rem;
        margin-bottom: 20px;
    }

    .aboutflex {
        flex-direction: column;
        gap: 20px;
    }

    .about-img img {
        width: 200px;
        margin-bottom: -20px;
    }

    .about-img h3 {
        font-size: 16px;
        background: rgb(100, 100, 100);
        margin-bottom: 10px;
    }

    .about-content p {
        font-size: 14px;
        width: 90%;
        text-align: justify;
        margin: 0 auto;
        margin-bottom: 10px;
    }

    .content-description {
        align-items: center;
    }

    .content-description h1,
    .content-description p {
        text-align: center;
        margin: 0 auto;
    }

    .content-description p {
        max-width: 100%;
    }

    .btnsportfolio {
        justify-content: center;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-gap: 15px;
    }
}

@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-gap: 10px;
    }

    .footer {
        padding: 1.5rem 1rem;
        margin-top: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .contact-info {
        align-items: center;
        justify-content: center;
    }

    .footer-bottom {
        gap: 1rem;
    }

    .footer-iconTop {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .footer-legal {
        gap: 0.8rem;
    }
}

@media (min-width: 1024px) {
    .portfolio-page--root {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: clamp(2.5rem, 6vh, 3.5rem) clamp(2rem, 5vw, 3rem);
    }

    .portfolio-page--root .content-portfoliomain {
        grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
        height: min(82vh, 640px);
    }

    .portfolio-page--root .content-description {
        justify-content: center;
    }

    .portfolio-page--root .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        grid-auto-rows: unset;
        height: 100%;
    }

    .portfolio-page--root .itemportfolio {
        height: 100%;
    }

    .portfolio-page--root .itemportfolio img {
        height: 100%;
    }

    .portfolio-page--detail {
        padding: clamp(4rem, 6vw, 5.5rem) clamp(2rem, 5vw, 3rem) clamp(5rem, 7vw, 6.5rem);
    }

    .portfolio-page--detail .portfolio-detail {
        padding: 0;
    }
}

/* ============================================
   BLOG
   ============================================ */

.blog, #blog {
    min-height: 100vh;
    padding: 10rem 2rem 2rem;
}

.blog h1, #blog h1 {
    color: var(--text-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 3rem;
    text-align: center;
}

.blog h3, #blog h3 {
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-entries {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-entry {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.blog-entry:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.blog-entry img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-entry:hover img {
    transform: scale(1.05);
}

.entry-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.entry-content h3 {
    color: var(--primary-light);
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.entry-content .entry-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: auto;
    text-align: right;
}

/* ============================================
   BLOG POST
   ============================================ */

#blog-post {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 10rem 2rem 2rem;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

#blog-post .pnotfound {
    font-size: 4rem;
    color: var(--text-primary);
}

.sadnotfound {
    font-size: 7rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.8s ease;
}

.sadnotfound:hover {
    color: var(--primary-light);
}

a.anotfound {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

a.anotfound:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.5);
}

#blog-post h1 {
    margin-top: 2rem;
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    color: var(--primary-light);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#blog-post img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin: 2rem auto;
    border: 2px solid var(--primary-light);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
    display: block;
}

#blog-post p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

#blog-post div[data-content] {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    width: 100%;
}

#blog-post div[data-content] h2 {
    color: var(--primary-light);
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

#blog-post div[data-content] h3 {
    color: var(--secondary-blue);
    font-size: 1.6rem;
    margin: 1.5rem 0 1rem;
}

#blog-post div[data-content] p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

#blog-post div[data-content] a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

#blog-post div[data-content] a:hover {
    color: var(--secondary-blue);
    border-bottom-color: var(--secondary-blue);
}

.post-date {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: right;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

#blog-post div[data-content] ul,
#blog-post div[data-content] ol {
    margin: 1.5rem 0 1.5rem 2rem;
    color: var(--text-secondary);
}

#blog-post div[data-content] li {
    margin-bottom: 0.5rem;
}

#blog-post div[data-content] blockquote {
    border-left: 4px solid var(--primary-light);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 8px;
}

#blog-post div[data-content] pre {
    background: var(--dark-card);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

#blog-post div[data-content] code {
    font-family: 'Courier New', monospace;
    background: var(--dark-card);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--secondary-blue);
}

.containernotfound {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
        margin-top: 5rem;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: clamp(1.5rem, 3vw, 2rem);
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-bottom {
        gap: 1rem;
    }

    .footer-legal {
        gap: 0.8rem;
    }

    .footer-legal-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .blog, #blog {
        padding: 8rem 1rem 2rem;
    }

    .blog-entries {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    #blog-post {
        padding: 8rem 1rem 2rem;
    }

    #blog-post h1 {
        font-size: 2rem;
    }

    #blog-post div[data-content] {
        padding: 1rem;
    }

    #blog-post div[data-content] h2 {
        font-size: 1.6rem;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --dark-bg: #f5f7fa;
        --dark-card: #ffffff;
        --glass-light: rgba(0, 0, 0, 0.05);
        --glass-lighter: rgba(0, 0, 0, 0.02);
        --text-primary: #1a1a1a;
        --text-secondary: #666666;
        --border-color: rgba(0, 0, 0, 0.1);
    }
}
