@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Work+Sans:wght@100;300;400;600;800&display=swap');

:root {
    --bg-primary: #0F2027;
    --bg-secondary: #1a1f24;
    --bg-tertiary: #252A2E;
    --bg-header: rgba(22, 45, 54, 0.95);
    --bg-header-hover: rgba(30, 60, 72, 0.98);
    --text-primary: #ffffff;
    --text-secondary: #dde2e4;
    --text-muted: #c9d3d0;
    --accent: #1CB698;
    --accent-secondary: #2C5364;
    --border-color: #1CB698;
    --border-light: #ffffff;
    --overlay-bg: rgba(44, 83, 100, 0.8);
    --banner-bg: #050b0e;
    --shadow: rgba(0, 0, 0, 0.3);
    --skill-bar-bg: #131517;
}

[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8ecf0;
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-header-hover: rgba(240, 245, 250, 0.98);
    --text-primary: #1a1f24;
    --text-secondary: #4a5568;
    --text-muted: #5a6578;
    --accent: #0d9488;
    --accent-secondary: #94a3b8;
    --border-color: #0d9488;
    --border-light: #cbd5e1;
    --overlay-bg: rgba(255, 255, 255, 0.85);
    --banner-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --skill-bar-bg: #e2e8f0;
}

* {
    box-sizing: border-box;
    font-family: 'work Sans';
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg-primary), var(--accent-secondary));
    background-attachment: fixed;
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* MENU */
.contenedor-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    padding-top: 0;
}

.contenedor-header header {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    margin-top: 10px;
    background-color: var(--bg-header);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px var(--shadow);
    transition: all 0.3s ease;
}

.contenedor-header header:hover {
    border-color: var(--border-light);
    background-color: var(--bg-header-hover);
}

.contenedor-header header .logo a {
    font-family: 'Righteous';
    font-size: 36px;
    color: var(--text-primary);
    text-decoration: none;
}

.contenedor-header header ul {
    display: flex;
    list-style: none;
}

.contenedor-header header nav ul li a {
    text-align: none;
    font-family: 'Righteous', Times, serif;
    color: var(--text-secondary);
    margin: 0 10px;
    padding: 3px;
    transition: .5s;
    text-decoration: none;
    font-size: 14px;
}

.contenedor-header header nav ul a:hover {
    color: var(--accent);
}

.nav-responsive {
    background-color: var(--accent-secondary);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

/* SECCION HERO SLIDER */

#hero1 {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-primary);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Slide Video */
.slide-video {
    align-items: flex-end;
    padding-bottom: 20px;
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

/* Slide Image - Premium Split Layout */
.slide-image {
    display: flex;
    align-items: stretch;
    background: none;
}

.hero-split-left {
    width: 50%;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-split-right {
    width: 50%;
    height: 100%;
    background-color: transparent;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-editorial {
    display: flex;
    align-items: center;
    padding-left: 15%;
    width: 100%;
    animation: editorialFadeIn 1s ease-out 0.4s both;
}

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

.hero-accent-line {
    width: 2px;
    height: 280px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    flex-shrink: 0;
    margin-right: 32px;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 380px;
}

.welcome-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 4px 12px;
    border-left: 2px solid var(--accent);
}

.hero-text-content .hi-text {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1;
}

.hero-text-content .main-name {
    font-family: 'Inter', sans-serif;
    font-size: 120px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 0.85;
    letter-spacing: -4px;
    margin-bottom: 20px;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 320px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-editorial .cv-button-container.desktop-only {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    box-shadow: none;
    backdrop-filter: none;
    margin: 0;
}

.hero-editorial .cv-button-container button {
    background: transparent;
    border: 1.5px solid var(--accent);
    padding: 12px 24px;
    font-size: 13px;
    color: var(--text-primary);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-editorial .cv-button-container button i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.hero-editorial .cv-button-container button:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28, 182, 152, 0.35);
}

.hero-editorial .cv-button-container button:hover i {
    transform: translateY(2px);
}

.hero-social-row {
    display: flex;
    gap: 8px;
}

.hero-social-row a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-social-row a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(28, 182, 152, 0.3);
}

.hero-arch-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-color: #0a4e4c;
    border-radius: 50%;
    z-index: 1;
}

.hero-split-right img {
    position: relative;
    z-index: 2;
    height: 88%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: bottom center;
    margin-bottom: 0;
}

.capa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:#1CB698;
    opacity: 0.5;
    mix-blend-mode: overlay;
    z-index: 2;
}

/* Media queries para la sección hero */
@media screen and (max-width: 980px) {
    #hero1 {
        min-height: 100vh;
        align-items: stretch;
        padding-bottom: 0;
    }
    
    video {
        object-position: center center;
    }

    .slide-image {
        flex-direction: column;
        position: relative;
    }

    .hero-split-right {
        width: 100%;
        height: auto;
        min-height: 55vh;
        position: relative;
        bottom: auto;
        z-index: 1;
        padding: 100px 0 0;
        order: 1;
    }

    .hero-split-left {
        width: 100%;
        height: auto;
        min-height: 45vh;
        justify-content: center;
        align-items: center;
        padding: 20px 20px 40px;
        z-index: 3;
        order: 2;
    }

    .hero-editorial {
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
    }

    .hero-accent-line {
        display: none;
    }

    .hero-text-content {
        max-width: 90%;
        align-items: center;
        text-align: center;
    }

    .welcome-tag {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .hero-text-content .hi-text {
        font-size: 24px;
    }

    .hero-text-content .main-name {
        font-size: 80px;
        letter-spacing: -3px;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 14px;
        max-width: 300px;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .hero-arch-bg {
        width: 280px;
        height: 280px;
        top: 55%;
    }

    .hero-split-right img {
        height: 90%;
        max-height: 480px;
    }
}

@media screen and (max-width: 480px) {
    #hero1 {
        min-height: 100vh;
    }

    .hero-split-right {
        min-height: 50vh;
        padding: 80px 0 0;
    }

    .hero-split-left {
        min-height: 50vh;
        padding: 15px 16px 30px;
    }

    .hero-text-content .hi-text {
        font-size: 20px;
    }

    .hero-text-content .main-name {
        font-size: 64px;
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 13px;
        max-width: 260px;
    }

    .hero-editorial .cv-button-container button {
        padding: 10px 20px;
        font-size: 12px;
    }

    .hero-social-row a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .hero-arch-bg {
        width: 240px;
        height: 240px;
        top: 55%;
    }

    .hero-split-right img {
        height: 85%;
        max-height: 400px;
    }
}

/* SECCION PORTAFOLIO VIDEO */

.portfovideo {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
}

.portfovideo video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

.portfovideo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.portfovideo-content {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.portfovideo-phrase {
    font-family: 'Righteous', sans-serif;
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    margin: 0;
    animation: fadeUp 0.8s ease 0.3s both;
}

.portfovideo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: fadeUp 0.8s ease 0.5s both;
}

.portfovideo-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28, 182, 152, 0.3);
}

@media screen and (max-width: 768px) {
    .portfovideo {
        height: 80vh;
    }

    .portfovideo video {
        object-fit: cover;
        object-position: 50% 30%;
    }

    .portfovideo-content {
        bottom: 40px;
    }

    .portfovideo-phrase {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .portfovideo-btn {
        font-size: 12px;
        padding: 8px 20px;
    }
}

@media screen and (max-width: 480px) {
    .portfovideo {
        height: 70vh;
    }

    .portfovideo video {
        object-position: 50% 25%;
    }

    .portfovideo-content {
        bottom: 30px;
    }

    .portfovideo-phrase {
        font-size: 14px;
        letter-spacing: 2px;
    }
}

/* VIDEO MODAL */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.video-modal.active {
    display: block;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.video-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    z-index: 2;
}

.video-modal-label {
    color: #fff;
    font-family: 'Righteous', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.video-modal-btn-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-modal-btn-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.video-modal-video-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(100% - 100px);
    transition: all 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.video-modal-video-wrapper.landscape {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
}

.video-modal-video-wrapper.portrait {
    aspect-ratio: 9 / 16;
    max-height: 80%;
    width: auto;
}

.video-modal-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 12px;
    z-index: 2;
}

.video-modal-control-btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    padding: 8px 18px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.video-modal-control-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* SECCION INICIO */
.inicio {
    background: linear-gradient(to top, rgba(156, 164, 168, 0.8), rgb(35, 77, 95)),
        url(../assets/images/backgrounds/FondoGX.jpeg); 
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.inicio .contenido-banner {
    position: relative;
    padding: 44px 32px 32px;
    background: var(--banner-bg);
    backdrop-filter: blur(12px);
    max-width: 380px;
    width: 90%;
    margin: auto;
    text-align: center;
    border-radius: 32px;
    box-shadow: 0 20px 60px var(--shadow);
    border: 1px solid rgba(255,255,255,0.06);
    z-index: 1;
    animation: cardEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-glow {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.inicio .contenido-banner .contenedor-img {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.img-wrapper {
    position: relative;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.img-wrapper img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 1;
    border: none;
    margin: 0;
}

.img-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    z-index: 0;
    animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 0.15; }
}

.name-title {
    font-size: 28px;
    font-family: 'Righteous', sans-serif;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: 1px;
    animation: fadeUp 0.6s ease 0.2s both;
}

.role-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto 6px;
    animation: fadeUp 0.6s ease 0.35s both;
}

.inicio .contenido-banner .redes {
    margin-top: 18px;
    animation: fadeUp 0.6s ease 0.5s both;
}

.inicio .contenido-banner .redes a {
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    font-size: 17px;
    transition: all 0.3s ease;
    line-height: normal;
}

.inicio .contenido-banner .redes a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(28, 182, 152, 0.3);
}

.inicio-cv-wrapper {
    margin-top: 22px;
    animation: fadeUp 0.6s ease 0.65s both;
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(28, 182, 152, 0.25);
    border: none;
    cursor: pointer;
}

.cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(28, 182, 152, 0.4);
}

.cv-btn i {
    font-size: 14px;
}

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

.sobremi {
    background: transparent;
    color: var(--text-primary);
    padding: 50px 20px;
}

.sobremi .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.sobremi h2 {
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.sobremi .contenido-seccion p {
    font: 18px;
    line-height: 22px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.sobremi .contenido-seccion p span {
    color: var(--accent);
    font-weight: bolder;
}

.sobremi .fila {
    display: flex;
    gap: 50px;
}

.sobremi .fila .col {
    width: 50%;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 15px;
    box-shadow: 0 0 20px var(--shadow);
}

.sobremi .fila .col h3 {
    font-size: 28px;
    font-family: 'Righteous';
    margin-bottom: 25px;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.sobremi .fila .col ul {
    list-style: none;
    margin-top: 20px;
}

.sobremi .fila .col ul li {
    margin: 15px 0;
    padding: 10px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    transition: transform 0.3s ease;
    color: var(--text-primary);
}

.sobremi .fila .col ul li:hover {
    transform: translateX(10px);
}

.sobremi .fila .col ul li strong {
    display: inline-block;
    color: var(--accent);
    width: 130px;
    font-weight: bold;
}

.sobremi .fila .col ul li span {
    background-color: var(--accent-secondary);
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
    margin-left: 10px;
    color: var(--text-primary);
}

.sobremi .fila .col .contenedor-intereses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.sobremi .fila .col .contenedor-intereses .intereses {
    height: 110px;
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px var(--shadow);
}

.sobremi .fila .col .contenedor-intereses .intereses:hover {
    background-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(28, 182, 152, 0.4);
}

.sobremi .fila .col .contenedor-intereses .intereses i {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.sobremi .fila .col .contenedor-intereses .intereses span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sobremi .fila .col .contenedor-intereses .intereses:hover i {
    color: var(--text-primary);
    transform: scale(1.1);
}

.sobremi button {
    cursor: pointer;
    background-color: transparent;
    border: 2px solid var(--text-primary);
    width: fit-content;
    display: block;
    margin: 20px auto;
    padding: 10px 22px;
    font-size: 16px;
    color: var(--text-primary);
    position: relative;
    z-index: 10;
}

.sobremi button .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-secondary);
    z-index: .1;
    transition: 1s;
}

.sobremi button:hover .overlay {
    width: 100%;
}

/* SECCION S K I L L S */

.skills {
    background: transparent;
    color: var(--text-primary);
    padding: 50px 20px;
}

.skills .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.skills h2 {
    font-size: 38px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}
.skills h3 {
    font-size: 20px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
    color: var(--text-primary);
}

.skills .fila {
    display: flex;
}

.skills .fila .col {
    width: 50%;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.skills .fila .col.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.skills .fila .col:nth-child(1).animate {
    animation-delay: 0.2s;
}

.skills .fila .col:nth-child(2).animate {
    animation-delay: 0.4s;
}

.skills .skill {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
}

.skills .skill.animate {
    animation: slideInRight 0.5s ease forwards;
}

.skills .skill:nth-child(1).animate { animation-delay: 0.3s; }
.skills .skill:nth-child(2).animate { animation-delay: 0.4s; }
.skills .skill:nth-child(3).animate { animation-delay: 0.5s; }
.skills .skill:nth-child(4).animate { animation-delay: 0.6s; }
.skills .skill:nth-child(5).animate { animation-delay: 0.7s; }
.skills .skill:nth-child(6).animate { animation-delay: 0.8s; }

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

.skills .skill> span{
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.skills .skill .barra-skill {
    height: 8px;
    width: 80%;
    background-color: var(--skill-bar-bg);
    position: relative;
    margin-bottom: 30px;
}

.skills .skill .progreso {
    background-color: var(--accent);
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
}

.skills .skill .barra-skill span {
    position: absolute;
    height: 40px;
    width: 40px;
    background-color: var(--accent);
    color: var(--text-primary);
    border-radius: 50px;
    line-height: 40px;
    text-align: center;
    top: -17px;
    right: -15px;
    font-size: 14px;
}

/* Estas clases se agregaran dinamicamente mediante javascript */
.skills .skill .javascript {
    width: 0%;
    animation: 2s javascript forwards;
}

@keyframes javascript {
    0% {
        width: 0%;
    }

    100% {
        width: 85%;
    }
}

.skills .skill .htmlcss {
    width: 0%;
    animation: 2s htmlcss forwards;
}

@keyframes htmlcss {
    0% {
        width: 0%;
    }

    100% {
        width: 95%;
    }
}

.skills .skill .photoshop {
    width: 0%;
    animation: 2s photoshop forwards;
}

@keyframes photoshop {
    0% {
        width: 0%;
    }

    100% {
        width: 85%;
    }
}

.skills .skill .canva {
    width: 0%;
    animation: 2s canva forwards;
}

@keyframes canva {
    0% {
        width: 0%;
    }

    100% {
        width: 90%;
    }
}

.skills .skill .lightroom {
    width: 0%;
    animation: 2s lightroom forwards;
}

@keyframes lightroom {
    0% {
        width: 0%;
    }

    100% {
        width: 98%;
    }
}

.skills .skill .office {
    width: 0%;
    animation: 2s office forwards;
}

@keyframes office {
    0% {
        width: 0%;
    }

    100% {
        width: 80%;
    }
}

/* Prefesional Skills */

.skills .skill .comunicacion {
    width: 0%;
    animation: 2s comunicacion forwards;
}

@keyframes comunicacion {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.skills .skill .lider {
    width: 0%;
    animation: 2s lider forwards;
}

@keyframes lider {
    0% {
        width: 0%;
    }

    100% {
        width: 85%;
    }
}

.skills .skill .atencion {
    width: 0%;
    animation: 2s atencion forwards;
}

@keyframes atencion {
    0% {
        width: 0%;
    }

    100% {
        width: 90%;
    }
}

.skills .skill .trabajoteam {
    width: 0%;
    animation: 2s trabajoteam forwards;
}

@keyframes trabajoteam {
    0% {
        width: 0%;
    }

    100% {
        width: 90%;
    }
}

.skills .skill .creatividad {
    width: 0%;
    animation: 2s creatividad forwards;
}

@keyframes creatividad {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.skills .skill .dedicacion {
    width: 0%;
    animation: 2s dedicacion forwards;
}

@keyframes dedicacion {
    0% {
        width: 0%;
    }

    100% {
        width: 78%;
    }
}

/* SECCION STACK TECNOLOGICO */
.stack {
    background: transparent;
    color: var(--text-primary);
    padding: 50px 20px;
}

.stack .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.stack h2 {
    font-size: 38px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.stack h3 {
    font-size: 24px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
    color: var(--accent);
}

.stack .fila {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.stack .fila .col {
    width: 32%;
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px var(--shadow);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.stack .fila .col.animate {
    opacity: 1;
    transform: translateY(0);
}

.contenedor-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.stack-item {
    background-color: var(--bg-tertiary);
    padding: 20px 10px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stack-item i {
    font-size: 35px;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.stack-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.stack-tabs {
    margin-top: 30px;
}

.stack-tab-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent-secondary);
    color: var(--text-primary);
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Righteous';
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(28, 182, 152, 0.4);
}

.tab-panel {
    display: none;
    animation: fadeInTab 0.5s ease-in-out;
}

.tab-panel.active {
    display: block;
}

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

.stack-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    justify-content: center;
    justify-items: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

@media screen and (max-width: 600px) {
    .stack-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .mini-stack-item {
        width: 100%;
        max-width: 140px;
    }
}

.mini-stack-item {
    background-color: var(--bg-secondary);
    padding: 20px 10px;
    width: 120px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--bg-tertiary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mini-stack-item i {
    font-size: 28px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.mini-stack-item span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.mini-stack-item:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.05);
    border-color: var(--accent);
}

.mini-stack-item:hover i {
    transform: rotate(5deg);
}

/* SEECION CURRICULUM  */

.curriculum {
    background: transparent;
    color: var(--text-primary);
    padding: 30px 20px;
}

.curriculum .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.curriculum h2 {
    font-size: 38px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.curriculum .fila {
    display: flex;
    justify-content: space-between;
}

.curriculum .fila .col {
    width: 49%;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.curriculum .fila .col.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.curriculum .fila .izquierda.animate {
    animation-delay: 0.2s;
}

.curriculum .fila .derecha.animate {
    animation-delay: 0.4s;
}

.curriculum .fila .item {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
}

.curriculum .fila .item.animate {
    animation: slideInRight 0.5s ease forwards;
}

.curriculum .fila .izquierda .item:nth-child(1).animate { animation-delay: 0.3s; }
.curriculum .fila .izquierda .item:nth-child(2).animate { animation-delay: 0.4s; }
.curriculum .fila .izquierda .item:nth-child(3).animate { animation-delay: 0.5s; }

.curriculum .fila .derecha .item:nth-child(1).animate { animation-delay: 0.3s; }
.curriculum .fila .derecha .item:nth-child(2).animate { animation-delay: 0.4s; }
.curriculum .fila .derecha .item:nth-child(3).animate { animation-delay: 0.5s; }

.curriculum .fila .item .conectori,
.curriculum .fila .item .conectord {
    opacity: 0;
    transition: all 0.5s ease;
}

.curriculum .fila .item.animate .conectori,
.curriculum .fila .item.animate .conectord {
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.curriculum .fila .izquierda{
    border-right: 1px solid var(--border-light);
}

.curriculum .fila .derecha{
    border-left: 1px solid var(--border-light);
}

.curriculum .fila .item{
    padding: 25px;
    margin-bottom: 30px;
    background-color: var(--bg-secondary);
    position: relative;
    box-shadow: 0 4px 15px var(--shadow);
}

.curriculum .fila .item h4{
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.curriculum .fila .item .casa{
    color: var(--accent);
    font-size: 18px;
    font-weight: bold;
    display: block;
}

.curriculum .fila .item .fecha{
    display: block;
    color: var(--accent);
    margin-bottom: 10px;
}

.curriculum .fila .item p{
    line-height: 24px;
    color: var(--text-secondary);
}

.curriculum .fila .izq{
    border-right: 2px solid var(--accent);
    margin-right: 18px; 
}

.curriculum .fila .der{
    border-left: 2px solid var(--accent);
    margin-left: 20px; 
}

.curriculum .fila .item .conectori{
    height: 2px;
    background-color: var(--accent);
    width: 45px;
    position: absolute;
    top: 50%;
    right: -45px;
    z-index: 5;
}

.curriculum .fila .item .conectori .circuloi{
    display: block;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: var(--accent);
    float: right;
    position: relative;
    bottom: 4px;
}

.curriculum .fila .item .conectord{
    height: 2px;
    background-color: var(--accent);
    width: 45px;
    position: absolute;
    top: 50%;
    left: -45px;
    z-index: 5;
}

.curriculum .fila .item .conectord .circulod{
    display: block;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: var(--accent);
    float: left;
    position: relative;
    bottom: 4px;
}

/* SEECION PORTAFOLIO */

.portafolio{
    background: transparent;
    color: var(--text-primary);
    padding: 30px 20px;
}

.portafolio .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.portafolio h2 {
    font-size: 38px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}   

.portafolio .galeria{
    display: flex;
    flex-wrap:wrap ;
    justify-content: center;
}

.portafolio .galeria .proyecto {
    position: relative;
    max-width: 340px;
    height: fit-content;
    margin: 10px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.portafolio .galeria .proyecto.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.portafolio .galeria .proyecto.animate:nth-child(1) { animation-delay: 0.1s; }
.portafolio .galeria .proyecto.animate:nth-child(2) { animation-delay: 0.2s; }
.portafolio .galeria .proyecto.animate:nth-child(3) { animation-delay: 0.3s; }
.portafolio .galeria .proyecto.animate:nth-child(4) { animation-delay: 0.4s; }
.portafolio .galeria .proyecto.animate:nth-child(5) { animation-delay: 0.5s; }
.portafolio .galeria .proyecto.animate:nth-child(6) { animation-delay: 0.6s; }
.portafolio .galeria .proyecto.animate:nth-child(7) { animation-delay: 0.7s; }
.portafolio .galeria .proyecto.animate:nth-child(8) { animation-delay: 0.8s; }
.portafolio .galeria .proyecto.animate:nth-child(9) { animation-delay: 0.9s; }
.portafolio .galeria .proyecto.animate:nth-child(10) { animation-delay: 1.0s; }
.portafolio .galeria .proyecto.animate:nth-child(11) { animation-delay: 1.1s; }
.portafolio .galeria .proyecto.animate:nth-child(12) { animation-delay: 1.2s; }
.portafolio .galeria .proyecto.animate:nth-child(13) { animation-delay: 1.3s; }
.portafolio .galeria .proyecto.animate:nth-child(14) { animation-delay: 1.4s; }

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

.portafolio .galeria .proyecto a,
.portafolio .galeria .proyecto span{
    color: var(--accent);
    font-family: 'Righteous', sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.portafolio .galeria .proyecto a:hover,
.portafolio .galeria .proyecto span:hover{
    transform: translateX(5px);
}

.portafolio .galeria .proyecto a:hover::after,
.portafolio .galeria .proyecto span:hover::after{
    margin-left: 5px;
}

.portafolio .galeria .proyecto img{
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.portafolio .galeria .proyecto:hover img {
    transform: scale(1.05);
}

.portafolio .galeria .proyecto .overlay{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: var(--overlay-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s ease;
    font-size: 18px;
    letter-spacing: 3px;
    opacity: 0;
    transform: scale(0.9);
}

.portafolio .galeria .proyecto .overlay h3{
    color: var(--text-primary);
    margin-bottom: 20px;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.portafolio .galeria .proyecto .overlay:hover{
    opacity: 1;
    transform: scale(1);
}

.portafolio .galeria .proyecto .overlay:hover h3{
    margin-bottom: 0px;
    transform: translateY(0);
}

/* SECCION CONTACTO */

.contacto{
    background-image: url(../assets/images/backgrounds/contact_bg.png);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 50px;
}

.contacto .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}

.contacto h2{
    font-size: 38px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.contacto .fila{
    display: flex;
}

.contacto .col{
    width: 50%;
    padding: 10px;
    position: relative;
}

.contacto .col input, .contacto .col textarea{
    display: block;
    width: 100%;
    padding: 18px;
    border: none;
    margin-bottom: 20px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 18px;
}

.contacto button{
    cursor: pointer;
    background-color: transparent;
    border: 2px solid var(--text-primary);
    width: fit-content;
    display: block;
    margin: 20px auto;
    padding: 10px 22px;
    font-size: 16px;
    color: var(--text-primary);
    position: relative;
    z-index: 10;
}

.contacto button .overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent);
    z-index: -1;
    transition: 1s;
}

.contacto button:hover .overlay{
    width: 100%;
}

.contacto .col img{
    width: 100%;
    height: 70%;
}   

.contacto .col .info{
    position: absolute;
    top: 35%;
    background-color: var(--bg-tertiary);
    padding: 20px;
    max-width: 350px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contacto .col .info ul{
    list-style: none;
}

.contacto .col .info ul li{
    margin-bottom: 22px;
    color: var(--text-primary);
}

.contacto .col .info ul li i{
    color: var(--accent-secondary);
    display: inline-block;
    margin-right: 20px;
}

/* SECCION FOOTER */

footer{
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 50px 0 30px 0;
    text-align: center;
    position: relative;
    width: 100%;
}

footer .redes{
    margin-bottom: 20px;
}

footer .redes a{
    color: var(--text-primary);
    display: inline-block;
    text-decoration: none;
    border: 1px solid var(--text-primary);
    border-radius: 100%;
    width: 42px;
    height: 42px;
    line-height: 42px;
    margin: 20px 5.5px;
    font-size: 20px;
    transition: .3s;
}

footer .redes a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

footer .arriba{
    display: block;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: var(--text-primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -25px;
    border-radius: 50%;
    line-height: 50px;
    font-size: 18px;
}

/* SECCION RESPONSIVE  */
@media screen and (max-width:980px){
    nav{
        position: absolute;
        right: 20px;
        top: 85px;
        background-color: var(--bg-header);
        width: 220px;
        border-radius: 15px;
        border: 1.5px solid var(--accent);
        backdrop-filter: blur(15px);
        box-shadow: 0 15px 35px var(--shadow);
        
        clip-path: circle(0% at 100% 0%);
        transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        opacity: 0;
        visibility: hidden;
        z-index: 1000;
    }
    
    .nav-responsive{
        display: block;
        transition: all 0.3s ease;
    }

    .nav-responsive:active {
        transform: scale(0.9);
    }

    nav.responsive{
        display: block;
        clip-path: circle(150% at 100% 0%);
        opacity: 1;
        visibility: visible;
    }

    nav ul{
        display: block !important;
        padding: 15px 0;
    }

    nav ul li{
        padding: 0;
        margin: 0;
    }

    nav ul li a{
        display: block;
        padding: 12px 25px;
        margin: 5px 15px !important;
        border-radius: 10px;
        background: transparent;
        transition: all 0.3s ease;
        border-bottom: none !important;
        font-size: 15px !important;
        color: var(--text-secondary) !important;
    }

    nav ul li a:hover {
        background: rgba(28, 182, 152, 0.15);
        color: var(--accent) !important;
        transform: translateX(10px);
    }
}
@media screen and (max-width:700px) {
    .inicio {
        height: auto;
        padding: 100px 0;
    }

    .inicio .contenido-banner {
        max-width: 90%;
    }

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

    .sobremi h2 {
        font-size: 36px;
    }

    .sobremi .fila .col {
        width: 100%;
        padding: 15px;
    }

    .sobremi .fila .col .contenedor-intereses {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .skills .fila {
        display: block;
    }

    .skills .fila .col {
        width: 100%;
        margin-bottom: 30px;
        padding: 0;
        animation-delay: 0.2s !important;
    }

    .skills .skill .barra-skill {
        width: 100%;
    }

    .curriculum .fila{
        display: block;
    }
    .curriculum .fila .col{
        width: 100%;
        margin-bottom: 30px;
        padding: 0;
    }
    .curriculum .fila .derecha{
        margin-left: 0;
        border-left: none;
    }
    .curriculum .fila .izquierda{
        border-right: none;
    }

    .portafolio .galeria{
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .portafolio .galeria .proyecto {
        max-width: 100%;
        margin: 0;
        animation-delay: 0.2s !important;
    }

    .stack .fila .col {
        width: 100%;
    }

    /* Mejora Certificaciones Responsive */
    .certifications h2 {
        font-size: 32px;
    }

    .cert-slider {
        flex-direction: column; /* Botones abajo en pantallas muy pequeñas */
        gap: 20px;
    }

    .cert-track {
        max-width: 100%;
        width: 85vw; /* Más fluido en diferentes tamaños de móvil */
        gap: 15px;
        overflow-x: auto; /* Permitir scroll táctil */
        scroll-snap-type: x mandatory; /* Efecto imán al deslizar */
    }

    .cert-card {
        min-width: 85vw; /* Cada card ocupa el ancho del track */
        scroll-snap-align: center;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }

    .cert-btn {
        margin: 0 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .cert-track::-webkit-scrollbar {
        display: none; /* Ocultar scrollbar pero permitir swipe */
    }
}

/* Clases para control de visibilidad */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}


.cv-button-container button {
    cursor: pointer;
    background-color: #0d4a46;
    border: 2px solid #0d4a46;
    padding: 10px 22px; 
    font-size: 16px; 
    color: #ffffff;
    position: relative;
    z-index: 10;
    border-radius: 8px; 
    transition: all 0.3s ease;
}

.cv-button-container button:hover {
    background-color: #125d58;
    border-color: #125d58;
}

.cv-button-container button .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #1CB698; 
    z-index: -1;
    transition: 1s;
    border-radius: 6px;
}

.cv-button-container button:hover .overlay {
    width: 100%;
}

.cv-button-container button i {
    margin-left: 10px;
}


.slide-video .cv-button-container.desktop-only {
    position: absolute;
    bottom: 10%; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; 
    text-align: center;
    width: auto; 
    max-width: none;
    margin: 0;
    backdrop-filter: blur(5px); 
    box-shadow: 0 4px 15px var(--shadow); 
}

.slide-video .cv-button-container.desktop-only button {
    padding: 15px 30px; 
    font-size: 18px; 
}

.slide-video .cv-button-container.desktop-only button:hover {
    transform: translateY(-5px); 
    box-shadow: 0 6px 20px var(--shadow); 
}


#sobremi .cv-button-container.mobile-only {
    text-align: center;
    margin: 20px auto; 
    width: fit-content; 
    display: block; 
    position: static; 
    bottom: auto;
    left: auto;
    right: auto;
    transform: none; 
    z-index: auto;
}


@media screen and (max-width: 980px) {
    
    #hero1 .cv-button-container.desktop-only {
        display: none;
    }

    
    #sobremi .cv-button-container.mobile-only {
        display: block;
    }

    
    #hero1 {
        position: relative;
        
        padding-bottom: 20px; 
    }

    
    #sobremi .contenido-seccion {
        padding-top: 20px; 
    }
}

/* ================= CERTIFICATIONS ================= */

.certifications {
    background: transparent;
    padding: 60px 20px;
    color: var(--text-primary);
}

.certifications h2 {
    font-size: 38px;
    font-family: 'Righteous';
    text-align: center;
    margin-bottom: 40px;
}

.cert-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-track {
    display: flex;
    gap: 30px;
    max-width: calc(280px * 3 + 30px * 2);
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.cert-card {
    min-width: 280px;
    background-color: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px var(--shadow);
}

.cert-card img {
    width: 100%;
    display: block;
}

.cert-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(28,182,152,0.4);
}

.cert-btn {
    background-color: rgba(28, 182, 152, 0.25);
    border: none;
    color: var(--accent);
    font-size: 22px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 15px;
}

.cert-btn:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.cert-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 300;
}

.cert-modal iframe {
    width: 90%;
    height: 90%;
    border-radius: 10px;
    background: #fff;
}

.cert-modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

@media screen and (max-width: 900px) {
    .cert-track {
        max-width: 280px;
    }
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

/* Tooltip (Mensaje flotante) */
.tooltip-whatsapp {
    position: absolute;
    right: 75px;
    background-color: #1c2d36;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.whatsapp-btn:hover .tooltip-whatsapp {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

/* Animación de pulso */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ajuste para móviles */
@media screen and (max-width: 480px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 30px;
        bottom: 80px;
        right: 20px;
    }
    .tooltip-whatsapp {
        display: none;
    }
}

/* --- BOTÓN FLOTANTE CAMBIO DE TEMA --- */
.theme-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background-color: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 15px var(--shadow);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow);
}

.theme-btn i {
    transition: transform 0.3s ease;
}

.theme-btn:active i {
    transform: rotate(360deg);
}

@media screen and (max-width: 480px) {
    .theme-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 25px;
        left: 20px;
    }
}

/* --- BOTÓN FLOTANTE CAMBIO DE IDIOMA (ESCRITORIO) --- */
.lang-btn {
    position: fixed;
    bottom: 95px;
    left: 30px;
    width: 55px;
    height: 55px;
    background-color: var(--bg-secondary);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 4px 15px var(--shadow);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    transform: scale(1.1);
    background-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 6px 20px var(--shadow);
}

.lang-btn .lang-text {
    font-family: 'Righteous', sans-serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

.lang-btn:hover .lang-text {
    color: var(--text-primary);
}

/* Ocultar botón flotante en móvil */
@media screen and (max-width: 980px) {
    .lang-btn {
        display: none;
    }
}

/* --- SELECTOR DE IDIOMA EN MENÚ MÓVIL --- */
.mobile-lang-selector {
    display: none;
    padding: 15px 25px;
    border-bottom: 1px solid var(--accent);
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Righteous', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.mobile-lang-btn:hover,
.mobile-lang-btn:active {
    background-color: var(--accent);
    color: var(--text-primary);
}

.mobile-lang-btn i {
    font-size: 18px;
}

/* Mostrar selector solo en móvil */
@media screen and (max-width: 980px) {
    .mobile-lang-selector {
        display: block;
    }
}

/* ================= MOBILE VIDEOS & LAYOUT REORDER (max-width: 768px) ================= */
@media screen and (max-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
    }
    
    #hero1 {
        order: 1;
        min-height: auto !important;
        height: auto !important;
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        position: relative !important;
        overflow: visible !important;
        margin-top: 75px !important; /* Space below fixed header */
        display: block !important;
        background-color: var(--bg-primary);
    }
    
    #hero1 .hero-slider {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 16 / 9 !important;
    }
    
    #hero1 .slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
    }
    
    #hero1 video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        z-index: 1 !important;
    }

    #portfovideo {
        order: 2;
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        position: relative !important;
        overflow: hidden !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        background-color: var(--bg-primary);
    }

    #portfovideo video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        z-index: 1 !important;
    }

    .portfovideo-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 2 !important;
    }

    .portfovideo-content {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        z-index: 3 !important;
        width: 90% !important;
        padding: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .portfovideo-phrase {
        font-size: 13px !important;
        letter-spacing: 2px !important;
        margin-bottom: 0 !important;
    }

    .portfovideo-btn {
        font-size: 11px !important;
        padding: 6px 16px !important;
    }

    #inicio {
        order: 3;
    }

    #portafolio { order: 4; }
    #sobremi { order: 5; }
    #skills { order: 6; }
    #stack { order: 7; }
    #certifications { order: 8; }
    footer { order: 9; }
}

/* Specific smaller screen adjustments (max-width: 480px) */
@media screen and (max-width: 480px) {
    #hero1 {
        margin-top: 68px !important; /* slightly smaller header offset */
    }
}
