﻿body {
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Righteous";
    line-height: 1.6;
}

/*MENU*/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(20px, 2vw, 80px);
    height: clamp(64px, 3vw, 100px);
    background: rgba(30, 35, 38, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(206, 122, 49, 0.25);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

    nav.scrolled {
        background: rgba(30, 35, 38, 0.92);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

/* LOGO */
.nav-logo {
    font-family: "Righteous";
    font-size: clamp(20px, 1vw, 50px);
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

    .nav-logo:hover {
        color: #ce7a31;
    }

/* LINKS */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

    nav ul li a {
        color: rgba(255, 255, 255, 0.75);
        text-decoration: none;
        font-family: "Righteous";
        font-size: clamp(13px, 0.9vw, 28px);
        font-weight: bold;
        letter-spacing: 0.5px;
        padding: clamp(4px, 0.3vw, 12px) clamp(10px, 0.9vw, 26px);
        border-radius: 6px;
        transition: color 0.3s ease, background 0.3s ease;
        display: block;
    }

        nav ul li a:hover {
            color: #fff;
            background: rgba(206, 122, 49, 0.15);
        }

        nav ul li a.activo {
            color: #ce7a31;
            background: rgba(206, 122, 49, 0.1);
        }

/* HAMBURGUESA */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    z-index: 1002;
    flex-shrink: 0;
}

    .menu-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.35s ease, opacity 0.3s ease, background 0.3s ease;
        transform-origin: center;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background: #ce7a31;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background: #ce7a31;
    }

/* ============================================
   RESPONSIVE — MENÚ MÓVIL
   ============================================ */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 72%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 4px;
        background: rgba(22, 27, 30, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(206, 122, 49, 0.2);
        padding: 80px 32px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
    }

        nav ul.active {
            right: 0;
        }

        nav ul li {
            width: 100%;
            opacity: 0;
            transform: translateX(24px);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        nav ul.active li {
            opacity: 1;
            transform: translateX(0);
        }

            nav ul.active li:nth-child(1) {
                transition-delay: 0.08s;
            }

            nav ul.active li:nth-child(2) {
                transition-delay: 0.13s;
            }

            nav ul.active li:nth-child(3) {
                transition-delay: 0.18s;
            }

            nav ul.active li:nth-child(4) {
                transition-delay: 0.23s;
            }

            nav ul.active li:nth-child(5) {
                transition-delay: 0.28s;
            }

            nav ul.active li:nth-child(6) {
                transition-delay: 0.33s;
            }

        nav ul li a {
            font-size: 18px;
            padding: 12px 16px;
            border-radius: 8px;
            width: 100%;
            color: rgba(255, 255, 255, 0.8);
            border-left: 2px solid transparent;
            transition: all 0.25s ease;
        }

            nav ul li a:hover {
                color: #fff;
                background: rgba(206, 122, 49, 0.12);
                border-left-color: #ce7a31;
                padding-left: 20px;
            }

        nav ul::before {
            content: '';
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: -1;
        }

        nav ul.active::before {
            opacity: 1;
            visibility: visible;
        }
}

@media (max-width: 480px) {
    nav ul {
        width: 80%;
        max-width: 280px;
        padding: 80px 24px;
    }

        nav ul li a {
            font-size: 17px;
        }
}

/*SECCION INICIO*/

.inicio {
    position: relative;
    background: linear-gradient(to top, rgba(30,35,38,.95), rgba(30,35,38,1)), url("img/fondo1.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#particulas-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.inicio-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(206, 122, 49, 0.2);
    border-radius: 12px;
    padding: clamp(36px, 3vw, 556px) clamp(40px, 4vw, 620px);
    max-width: clamp(350px, 30vw, 1900px);
    width: 90%;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 1.5vw, 120px);
    animation: fadeInUp 0.9s ease-out;
    backdrop-filter: blur(6px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .inicio-card:hover {
        border-color: rgba(206, 122, 49, 0.5);
        box-shadow: 0 12px 30px rgba(206, 122, 49, 0.12);
    }

.inicio-img-wrapper {
    width: clamp(120px, 12vw, 620px);
    height: clamp(120px, 12vw, 620px);
    border-radius: 50%;
    border: 3px solid #ce7a31;
    overflow: hidden;
    flex-shrink: 0;
    animation: scaleIn 0.7s ease-out 0.2s backwards;
    transition: box-shadow 0.3s ease;
}

.inicio-card:hover .inicio-img-wrapper {
    box-shadow: 0 0 0 5px rgba(206, 122, 49, 0.2);
}

.inicio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inicio-card h1 {
    font-size: clamp(28px, 3vw, 78px);
    font-family: "Righteous";
    font-weight: bold;
    margin: 0;
    animation: fadeIn 0.6s ease-out 0.5s backwards;
}

.inicio-card h2 {
    font-size: clamp(14px, 1.3vw, 50px);
    font-weight: normal;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    letter-spacing: 1px;
    font-family: "Righteous";
    animation: fadeIn 0.6s ease-out 0.7s backwards;
}

.inicio-separador {
    width: 40px;
    height: 2px;
    background: #ce7a31;
    border-radius: 2px;
    margin: 2px 0;
    animation: fadeIn 0.6s ease-out 0.8s backwards;
}

.inicio-redes {
    display: flex;
    gap: 12px;
    animation: fadeIn 0.6s ease-out 0.9s backwards;
    margin-top: 4px;
}

.inicio-red-btn {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid rgba(206, 122, 49, 0.5);
    border-radius: 50%;
    width: clamp(42px, 3vw, 74px);
    height: clamp(42px, 3vw, 74px);
    font-size: clamp(16px, 1.5vw, 42px);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

    .inicio-red-btn:hover {
        background-color: #ce7a31;
        border-color: #ce7a31;
        transform: translateY(-3px);
    }

@media (max-width: 768px) {
    .inicio-card {
        padding: 36px 32px 32px;
    }

        .inicio-card h1 {
            font-size: 30px;
        }

        .inicio-card h2 {
            font-size: 15px;
        }

    .inicio-img-wrapper {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .inicio-card {
        padding: 30px 22px 28px;
        gap: 12px;
    }

        .inicio-card h1 {
            font-size: 26px;
        }

        .inicio-card h2 {
            font-size: 14px;
        }

    .inicio-img-wrapper {
        width: 105px;
        height: 105px;
    }

    .inicio-red-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* SOBRE MI */

.sobremi {
    background: linear-gradient(to top, rgba(30,35,38,.8), rgba(30,35,38,1)), url("img/fondo2.jpg");
    background-size: cover;
    min-height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px 60px;
}

.sobremi-card {
    position: relative;
    max-width: clamp(600px, 45vw, 1600px);
    width: 90%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(206, 122, 49, 0.2);
    border-radius: 12px;
    padding: clamp(40px, 2vw, 202px) clamp(44px, 3vw, 218px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(18px, 2vw, 92px);
    text-align: center;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .sobremi-card:hover {
        border-color: rgba(206, 122, 49, 0.5);
        box-shadow: 0 12px 30px rgba(206, 122, 49, 0.1);
    }

.sobremi-deco-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ce7a31;
    border-radius: 0 0 4px 4px;
}

.sobremi-card h2 {
    font-size: clamp(32px, 3.0vw, 76px);
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
}

.sobremi-card p {
    font-size: clamp(14px, 1.0vw, 50px);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.9;
    font-family: "Righteous";
    margin: 0;
}

.sobremi-redes {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(206, 122, 49, 0.15);
    width: 100%;
    justify-content: center;
}

.sobremi-red-btn {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid rgba(206, 122, 49, 0.5);
    border-radius: 50%;
    width: clamp(42px, 3vw, 78px);
    height: clamp(42px, 3vw, 78px);
    font-size: clamp(16px, 1.5vw, 44px);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

    .sobremi-red-btn:hover {
        background-color: #ce7a31;
        border-color: #ce7a31;
        transform: translateY(-3px);
    }

.sobremi-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: clamp(10px, 0.5vw, 36px) clamp(24px, 2.0vw, 60px);
    border: 2px solid #ce7a31;
    border-radius: 8px;
    color: #ce7a31;
    font-size: clamp(13px, 0.8vw, 38px);
    font-weight: bold;
    font-family: "Righteous";
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

    .sobremi-cv-btn .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background-color: #ce7a31;
        z-index: -1;
        transition: width 0.4s ease;
    }

    .sobremi-cv-btn:hover .overlay {
        width: 100%;
    }
    .sobremi-cv-btn:hover {
        color: #fff;
    }

    .sobremi-cv-btn i {
        position: relative;
        z-index: 2;
        transition: transform 0.3s ease;
    }

    .sobremi-cv-btn:hover i {
        transform: translateY(3px);
    }

@media (max-width: 768px) {
    .sobremi {
        padding: 80px 20px 50px;
    }

    .sobremi-card {
        padding: 44px 32px 36px;
        gap: 20px;
    }

        .sobremi-card h2 {
            font-size: 28px;
        }

        .sobremi-card p {
            font-size: 14px;
        }
}

@media (max-width: 480px) {
    .sobremi-card {
        padding: 36px 22px 28px;
        gap: 18px;
    }

        .sobremi-card h2 {
            font-size: 26px;
        }

        .sobremi-card p {
            font-size: 13px;
            line-height: 1.8;
        }

    .sobremi-red-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/*APTITUDES*/

.aptitudes {
    background: linear-gradient(to top, rgba(30,35,38,.8), rgba(30,35,38,1)), url("img/fondo5.jpg");
    background-size: cover;
    min-height: 100vh;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(60px, 3vw, 160px) clamp(20px, 1vw, 100px);
}

    .aptitudes h1 {
        font-size: clamp(28px, 3vw, 78px);
        font-weight: bold;
        margin-bottom: clamp(30px, 3vw, 80px);
        letter-spacing: 2px;
    }

.aptitudes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 4vw, 50px);
    max-width: clamp(900px, 65vw, 1800px);
    width: 100%;
}

.aptitud-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(206, 122, 49, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

    .aptitud-card:hover {
        transform: translateY(-6px);
        border-color: #ce7a31;
        box-shadow: 0 12px 30px rgba(206, 122, 49, 0.2);
    }

.aptitud-preview {
    height: clamp(120px, 8vw, 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: filter 0.3s ease;
}

    .aptitud-preview::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.15);
        transition: background 0.3s ease;
    }

.aptitud-card:hover .aptitud-preview::after {
    background: rgba(0,0,0,0.05);
}

.aptitud-preview--cpp {
    background: linear-gradient(135deg, #0d1b2e 0%, #003b6f 100%);
}

.aptitud-preview--csharp {
    background: linear-gradient(135deg, #1a0a2e 0%, #68217a 100%);
}

.aptitud-preview--sql {
    background: linear-gradient(135deg, #1a0505 0%, #7b1313 100%);
}

.aptitud-preview--web {
    background: linear-gradient(135deg, #1a1200 0%, #6b4f00 100%);
}

.aptitud-preview--bootstrap {
    background: linear-gradient(135deg, #1a0a3e 0%, #7952b3 100%);
}

.aptitud-preview--git {
    background: linear-gradient(135deg, #1a0a00 0%, #8c3a00 100%);
}

.aptitud-logo {
    width: clamp(60px, 5vw, 140px);
    height: clamp(60px, 5vw, 140px);
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.aptitud-card:hover .aptitud-logo {
    transform: scale(1.12);
    filter: drop-shadow(0 8px 20px rgba(206, 122, 49, 0.35));
}

.aptitud-logo-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.aptitud-logo-sm {
    width: clamp(40px, 3.5vw, 100px);
    height: clamp(40px, 3.5vw, 100px);
    object-fit: contain;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.aptitud-card:hover .aptitud-logo-sm {
    transform: scale(1.12);
    filter: drop-shadow(0 8px 20px rgba(206, 122, 49, 0.35));
}

.aptitud-info {
    padding: clamp(12px, 1.0vw, 32px) clamp(14px, 1.2vw, 36px);
}

    .aptitud-info h3 {
        font-size: clamp(16px, 1.0vw, 40px);
        font-weight: bold;
        margin-bottom: 7px;
        color: #fff;
        line-height: 1.3;
    }

    .aptitud-info p {
        font-size: clamp(13px, 0.9vw, 28px);
        color: rgba(255, 255, 255, 0.6);
        line-height: 1.6;
        margin-bottom: 12px;
        font-weight: normal;
        font-family: "Righteous";
    }

/* TAGS */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(10px, 0.8vw, 20px);
    font-weight: bold;
    padding: clamp(3px, 0.3vw, 8px) clamp(8px, 0.7vw, 18px);
    border-radius: 20px;
    font-family: "Righteous";
    letter-spacing: 0.3px;
}

    .tag img {
        width: clamp(12px, 1vw, 26px);
        height: clamp(12px, 1vw, 26px);
        object-fit: contain;
    }

.tag-csharp {
    background: rgba(104,33,122,0.3);
    border: 1px solid #68217a;
    color: #c586c0;
}

.tag-net {
    background: rgba(81,43,212,0.3);
    border: 1px solid #512bd4;
    color: #a78bfa;
}

.tag-sql {
    background: rgba(204,52,45,0.3);
    border: 1px solid #cc342d;
    color: #f87171;
}

.tag-cpp {
    background: rgba(0,89,179,0.3);
    border: 1px solid #0059b3;
    color: #60a5fa;
}

.tag-bootstrap {
    background: rgba(121,82,179,0.3);
    border: 1px solid #7952b3;
    color: #c4b5fd;
}

.tag-ef {
    background: rgba(81,43,212,0.3);
    border: 1px solid #512bd4;
    color: #a78bfa;
}

.tag-html {
    background: rgba(228,77,38,0.25);
    border: 1px solid #e44d26;
    color: #f97316;
}

.tag-css {
    background: rgba(38,77,228,0.25);
    border: 1px solid #264de4;
    color: #60a5fa;
}

.tag-js {
    background: rgba(240,219,79,0.15);
    border: 1px solid #f0db4f;
    color: #fde68a;
}

.tag-git {
    background: rgba(240,80,50,0.2);
    border: 1px solid #f05032;
    color: #fca5a5;
}

.tag-github {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.3);
    color: #e2e8f0;
}

@media (max-width: 900px) {
    .aptitudes-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 680px;
    }
}

@media (max-width: 768px) {
    .aptitudes {
        padding: 80px 20px 50px;
    }

        .aptitudes h1 {
            font-size: 32px;
            margin-bottom: 35px;
        }

    .aptitud-preview {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .aptitudes-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .aptitud-preview {
        height: 130px;
    }

    .aptitud-logo {
        width: 65px;
        height: 65px;
    }

    .aptitud-logo-sm {
        width: 44px;
        height: 44px;
    }

    .aptitud-info h3 {
        font-size: 15px;
    }
}

/*CURSOS*/

.cursos {
    background: linear-gradient(to top, rgba(30,35,38,.8), rgba(30,35,38,1)), url("img/fondo6.jpg");
    background-size: cover;
    min-height: 100vh;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(60px, 3vw, 160px) clamp(20px, 1vw, 100px);
}

    .cursos h1 {
        font-size: clamp(28px, 3vw, 78px);
        font-weight: bold;
        margin-bottom: clamp(30px, 3vw, 80px);
        letter-spacing: 2px;
    }

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 3vw, 50px);
    max-width: clamp(600px, 65vw, 1900px);
    width: 100%;
}

.curso-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(206, 122, 49, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative;
}

    .curso-card:hover {
        transform: translateY(-6px);
        border-color: #ce7a31;
        box-shadow: 0 12px 30px rgba(206, 122, 49, 0.2);
    }

.curso-card--en-proceso {
    border-color: rgba(206, 122, 49, 0.5);
}

.curso-en-proceso-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(206, 122, 49, 0.15);
    border: 1px solid #ce7a31;
    color: #ce7a31;
    font-size: clamp(11px, 0.9vw, 22px);
    font-weight: bold;
    font-family: "Righteous";
    padding: clamp(4px, 0.4vw, 10px) clamp(10px, 0.9vw, 24px);
    border-radius: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.curso-preview {
    position: relative;
    overflow: hidden;
    height: clamp(160px, 13vw, 360px);
}

.curso-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.curso-card:hover .curso-img {
    transform: scale(1.04);
    filter: brightness(0.6);
}

.curso-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.curso-card:hover .curso-overlay {
    opacity: 1;
}

.curso-overlay-txt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: clamp(8px, 0.8vw, 20px) clamp(16px, 1.5vw, 40px);
    border: 2px solid #ce7a31;
    color: #fff;
    font-size: clamp(14px, 0.8vw, 32px);
    font-weight: bold;
    border-radius: 6px;
    background: rgba(0,0,0,0.5);
    font-family: "Righteous";
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
    text-decoration: none;
}

.curso-card:hover .curso-overlay-txt:hover {
    background: #ce7a31;
}

.curso-info {
    padding: clamp(14px, 0.9vw, 32px) clamp(16px, 1.0vw, 36px);
}

    .curso-info h3 {
        font-size: clamp(15px, 1.1vw, 34px);
        font-weight: bold;
        margin-bottom: 8px;
        color: #fff;
        line-height: 1.3;
    }

.curso-subtitulo {
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
}

.curso-info p {
    font-size: clamp(13px, 0.9vw, 28px);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: clamp(10px, 0.9vw, 26px);
    font-weight: normal;
    font-family: "Righteous";
}

@media (max-width: 900px) {
    .cursos-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

@media (max-width: 768px) {
    .cursos {
        padding: 80px 20px 50px;
    }

        .cursos h1 {
            font-size: 32px;
            margin-bottom: 35px;
        }
}

@media (max-width: 480px) {
    .curso-preview {
        height: 170px;
    }

    .curso-info h3 {
        font-size: 16px;
    }
}

/* ============================================
   PROYECTOS
   ============================================ */

.proyectos {
    background: linear-gradient(to top, rgba(30,35,38,.8), rgba(30,35,38,1)), url("img/fondo7.jpg");
    background-size: cover;
    min-height: 100vh;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(60px, 3vw, 160px) clamp(20px, 1vw, 100px);
}

    .proyectos h1 {
        font-size: clamp(28px, 3vw, 78px);
        font-weight: bold;
        margin-bottom: clamp(30px, 3vw, 80px);
        letter-spacing: 2px;
    }

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: clamp(600px, 65vw, 1900px);
    width: 100%;
}

.proyecto-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(206, 122, 49, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

    .proyecto-card:hover {
        transform: translateY(-6px);
        border-color: #ce7a31;
        box-shadow: 0 12px 30px rgba(206, 122, 49, 0.2);
    }

.proyecto-preview {
    position: relative;
    overflow: hidden;
    height: clamp(180px, 15vw, 420px);
}

.proyecto-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
    display: block;
}

.proyecto-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.proyecto-card:hover .proyecto-img {
    opacity: 0;
}

.proyecto-card:hover .proyecto-video {
    opacity: 1;
}

.proyecto-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.proyecto-card:hover .proyecto-overlay {
    opacity: 1;
}

.proyecto-links {
    display: flex;
    gap: 12px;
}

.proyecto-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: clamp(6px, 0.6vw, 16px) clamp(14px, 1.3vw, 34px);
    border: 2px solid #ce7a31;
    color: #fff;
    text-decoration: none;
    font-size: clamp(14px, 1.0vw, 32px);
    font-weight: bold;
    border-radius: 6px;
    background: rgba(0,0,0,0.5);
    transition: background 0.3s ease;
    font-family: "Righteous";
    backdrop-filter: blur(4px);
}

    .proyecto-btn:hover {
        background: #ce7a31;
    }

.proyecto-info {
    padding: clamp(14px, 1.2vw, 36px) clamp(16px, 1.4vw, 40px);
}

    .proyecto-info h3 {
        font-size: clamp(15px, 1.1vw, 34px);
        font-weight: bold;
        margin-bottom: 8px;
        color: #fff;
        line-height: 1.3;
    }

    .proyecto-info p {
        font-size: clamp(13px, 0.9vw, 28px);
        color: rgba(255, 255, 255, 0.6);
        line-height: 1.6;
        margin-bottom: clamp(10px, 0.9vw, 26px);
        font-weight: normal;
    }

.proyecto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(10px, 0.7vw, 16px);
    font-weight: bold;
    padding: clamp(3px, 0.3vw, 7px) clamp(8px, 0.7vw, 14px);
    border-radius: 20px;
    font-family: "Righteous";
    letter-spacing: 0.3px;
}

    .tag img {
        width: clamp(12px, 1vw, 24px);
        height: clamp(12px, 1vw, 24px);
        object-fit: contain;
    }

@media (max-width: 900px) {
    .proyectos-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

@media (max-width: 768px) {
    .proyectos {
        padding: 80px 20px 50px;
    }

        .proyectos h1 {
            font-size: 32px;
            margin-bottom: 35px;
        }
}

@media (max-width: 480px) {
    .proyecto-preview {
        height: 190px;
    }

    .proyecto-info h3 {
        font-size: 16px;
    }
}

/*CONTACTO*/

.contacto {
    background: linear-gradient(to top, rgba(30,35,38,.8), rgba(30,35,38,1)), url("img/contacto.jpg");
    background-size: cover;
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(60px, 4vw, 160px) clamp(20px, 2vw, 100px);
    text-align: center;
}

    .contacto h1 {
        font-size: clamp(28px, 3vw, 78px);
        font-weight: bold;
        margin-bottom: clamp(8px, 0.8vw, 20px);
        letter-spacing: 2px;
    }

    .contacto > p,
    .contenido-contacto > p {
        font-size: clamp(13px, 1.1vw, 34px);
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: clamp(24px, 0.8vw, 54px);
        font-family: "Righteous";
    }

.contenido-contacto {
    width: 100%;
    max-width: clamp(480px, 48vw, 1300px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(206, 122, 49, 0.2);
    border-radius: 12px;
    padding: clamp(28px, 2.5vw, 72px) clamp(32px, 3vw, 86px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 0.9vw, 24px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .contenido-contacto:hover {
        border-color: rgba(206, 122, 49, 0.5);
        box-shadow: 0 12px 30px rgba(206, 122, 49, 0.1);
    }

    .contacto input[type="text"],
    .contacto input[type="email"],
    .contacto textarea,
    .contacto .txtCuadro,
    .contenido-contacto input,
    .contenido-contacto textarea {
        width: 100%;
        padding: clamp(10px, 0.9vw, 24px) clamp(12px, 1.1vw, 30px);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(206, 122, 49, 0.3);
        border-radius: 8px;
        color: #fff;
        font-size: clamp(13px, 1vw, 28px);
        font-family: "Righteous";
        outline: none;
        transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
        display: block;
        box-sizing: border-box;
    }

        .contacto input[type="text"]:focus,
        .contacto input[type="email"]:focus,
        .contacto textarea:focus,
        .contacto .txtCuadro:focus,
        .contenido-contacto input:focus,
        .contenido-contacto textarea:focus {
            border-color: #ce7a31;
            background: rgba(206, 122, 49, 0.07);
            box-shadow: 0 0 0 3px rgba(206, 122, 49, 0.12);
        }

        .contacto input::placeholder,
        .contacto textarea::placeholder,
        .contenido-contacto input::placeholder,
        .contenido-contacto textarea::placeholder {
            color: rgba(255, 255, 255, 0.3);
            font-family: "Righteous";
        }

.txtCuadro {
    resize: none;
    height: clamp(110px, 9vw, 240px);
}

.contacto .mensaje-validaciones {
    text-align: left;
    color: #f87171;
    font-size: clamp(14px, 1vw, 32px);
    font-family: "Righteous";
    margin: -4px 0 0 0;
    width: 100%;
    line-height: 1.6;
}

.mensaje-validaciones span {
    display: block !important;
    margin-bottom: 2px;
}

.contacto .btnEnviar {
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #ce7a31;
    border-radius: 8px;
    width: fit-content;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(11px, 1vw, 28px) clamp(28px, 3vw, 80px);
    font-size: clamp(14px, 1vw, 32px);
    font-weight: bold;
    font-family: "Righteous";
    color: #fff;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: 4px;
    z-index: 1;
}

    .contacto .btnEnviar .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background-color: #ce7a31;
        z-index: -1;
        transition: width 0.4s ease;
    }

    .contacto .btnEnviar:hover .overlay {
        width: 100%;
    }

    .contacto .btnEnviar i {
        position: relative;
        z-index: 2;
        transition: transform 0.3s ease;
    }

    .contacto .btnEnviar:hover i {
        transform: translateX(4px);
    }

    .contacto .btnEnviar span:not(.overlay) {
        position: relative;
        z-index: 2;
    }

#spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    font-size: clamp(13px, 1vw, 26px);
    color: #ce7a31;
    font-family: "Righteous";
}

.lblMensaje {
    display: block;
    font-size: clamp(13px, 1vw, 26px);
    font-weight: bold;
    font-family: "Righteous";
    text-align: center;
    padding: 8px 0;
    min-height: 24px;
}

.lblMensaje--ok {
    color: #4ade80;
}

.lblMensaje--error {
    color: #f87171;
}

@media (max-width: 768px) {
    .contacto {
        padding: 80px 20px 50px;
    }

        .contacto h1 {
            font-size: 32px;
            margin-bottom: 10px;
        }

        .contacto > p,
        .contenido-contacto > p {
            font-size: 13px;
            margin-bottom: 30px;
            padding: 0 10px;
        }

    .contenido-contacto {
        padding: 28px 24px 24px;
    }
}

@media (max-width: 480px) {
    .contacto {
        padding: 80px 16px 50px;
    }

    .contenido-contacto {
        padding: 24px 18px 20px;
        gap: 10px;
    }

    .contacto h1 {
        font-size: 28px;
    }

    .txtCuadro {
        height: 120px;
    }

    .contacto .btnEnviar {
        font-size: 14px;
        padding: 12px 24px;
    }
}

/*FOOTER*/

footer {
    background: rgba(22, 27, 30, 0.98);
    border-top: 1px solid rgba(206, 122, 49, 0.2);
    color: #fff;
    padding: clamp(30px, 1vw, 80px) clamp(20px, 2vw, 100px) clamp(16px, 0.8vw, 48px);
}

.footer-inner {
    max-width: clamp(600px, 35vw, 1900px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(18px, 1vw, 52px);
}

.footer-logo {
    font-family: "Righteous";
    font-size: clamp(18px, 1.8vw, 46px);
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

    .footer-logo:hover {
        color: #ce7a31;
    }

.footer-redes {
    display: flex;
    gap: 12px;
}

.footer-red-btn {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid rgba(206, 122, 49, 0.4);
    border-radius: 50%;
    width: clamp(38px, 3vw, 76px);
    height: clamp(38px, 3vw, 76px);
    font-size: clamp(15px, 1.4vw, 36px);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

    .footer-red-btn:hover {
        background-color: #ce7a31;
        border-color: #ce7a31;
        transform: translateY(-3px);
    }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

    .footer-nav a {
        color: rgba(255, 255, 255, 0.45);
        text-decoration: none;
        font-family: "Righteous";
        font-size: clamp(11px, 0.9vw, 24px);
        padding: clamp(4px, 0.4vw, 10px) clamp(8px, 0.8vw, 22px);
        border-radius: 6px;
        transition: color 0.3s ease, background 0.3s ease;
    }

        .footer-nav a:hover {
            color: #fff;
            background: rgba(206, 122, 49, 0.12);
        }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

    .footer-bottom p {
        font-family: "Righteous";
        font-size: clamp(10px, 0.8vw, 20px);
        color: rgba(255, 255, 255, 0.3);
        margin: 0;
    }

.footer-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 2.5vw, 64px);
    height: clamp(32px, 2.5vw, 64px);
    border: 2px solid rgba(206, 122, 49, 0.4);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(13px, 1.2vw, 30px);
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

    .footer-top-btn:hover {
        background: #ce7a31;
        border-color: #ce7a31;
        color: #fff;
        transform: translateY(-3px);
    }

@media (max-width: 768px) {
    footer {
        padding: 40px 24px 24px;
    }

    .footer-inner {
        gap: 22px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 36px 16px 20px;
    }

    .footer-logo {
        font-size: 19px;
    }

    .footer-nav a {
        font-size: 12px;
        padding: 5px 10px;
    }

    .footer-bottom p {
        font-size: 11px;
    }
}

/* ============================================
   RESPONSIVE GENERAL TABLETS
   ============================================ */
@media (max-width: 768px) {
    .inicio,
    .sobremi,
    .aptitudes,
    .cursos,
    .proyectos,
    .contacto {
        padding-top: 70px;
    }

    .aptitudes {
        height: auto;
        min-height: 100vh;
        padding: 90px 20px 40px 20px;
    }

        .aptitudes h1 {
            margin-bottom: 40px;
        }

    .contenido-contacto {
        width: 90%;
    }

    .contacto input, .contacto textarea {
        width: 100%;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* ============================================
   BOTÓN IDIOMA
   ============================================ */
.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    color: rgba(255, 255, 255, 0.75);
    font-family: "Righteous";
    font-size: clamp(13px, 0.9vw, 28px);
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: clamp(4px, 0.3vw, 12px) clamp(10px, 0.9vw, 26px);
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
    outline: none;
}

    .lang-btn:hover {
        color: #fff;
        background: rgba(206, 122, 49, 0.15); 
    }

    .lang-btn:active {
        color: #ce7a31;
        background: rgba(206, 122, 49, 0.1);
    }

    .lang-btn.active {
        color: #ce7a31;
        border-color: rgba(206, 122, 49, 0.3);
    }

@media (max-width: 768px) {
    .lang-btn {
        font-size: 16px;
        padding: 6px 12px;
    }
}

/* ============================================
   MODO CLARO (LIGHT MODE)
   ============================================ */

/* Estilo del nuevo botón */
.theme-btn {
    background: transparent;
    border: 2px solid transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(14px, 1vw, 24px);
    padding: clamp(4px, 0.3vw, 12px) clamp(8px, 0.8vw, 16px);
    cursor: pointer;
    transition: color 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .theme-btn:hover {
        color: #fff;
    }

/* --- OVERRIDES DEL MODO CLARO (PALETA PASTEL CÁLIDA) --- */

/* Textos base (Gris cálido en lugar de negro puro) */
body.light-mode {
    color: #3a3532;
}

    /* Menú de navegación (Crema translúcido) */
    body.light-mode nav {
        background: rgba(253, 246, 238, 0.85);
        border-bottom: 1px solid rgba(206, 122, 49, 0.2);
    }

        body.light-mode nav.scrolled {
            background: rgba(253, 246, 238, 0.98);
            box-shadow: 0 4px 20px rgba(206, 122, 49, 0.08);
        }

    body.light-mode .nav-logo {
        color: #2c2724;
    }

    body.light-mode nav ul li a {
        color: #5c544d;
    }

        body.light-mode nav ul li a:hover {
            color: #2c2724;
            background: rgba(206, 122, 49, 0.1);
        }

        body.light-mode nav ul li a.activo {
            color: #ce7a31;
            background: rgba(206, 122, 49, 0.15);
        }

    body.light-mode .menu-toggle span {
        background: #2c2724;
    }

    body.light-mode .theme-btn, body.light-mode .lang-btn {
        color: #5c544d;
    }

        body.light-mode .theme-btn:hover, body.light-mode .lang-btn:hover {
            color: #ce7a31;
        }

@media (max-width: 768px) {
    body.light-mode nav ul {
        background: rgba(253, 246, 238, 0.97);
        border-left: 1px solid rgba(206, 122, 49, 0.2);
    }

        body.light-mode nav ul li a {
            color: #5c544d;
        }

            body.light-mode nav ul li a:hover {
                color: #ce7a31;
            }
}

/* Fondos de secciones (Tonos arena y durazno muy suaves) */
body.light-mode .inicio {
    background: linear-gradient(to top, rgba(253, 246, 238, 0.95), rgba(253, 246, 238, 1)), url("img/fondo1.jpg");
    background-size: cover;
}

body.light-mode .sobremi {
    background: linear-gradient(to top, rgba(250, 242, 235, 0.92), rgba(250, 242, 235, 1)), url("img/fondo2.jpg");
    background-size: cover;
}

body.light-mode .aptitudes {
    background: linear-gradient(to top, rgba(250, 242, 235, 0.92), rgba(250, 242, 235, 1)), url("img/fondo5.jpg");
    background-size: cover;
}

body.light-mode .cursos {
    background: linear-gradient(to top, rgba(250, 242, 235, 0.92), rgba(250, 242, 235, 1)), url("img/fondo6.jpg");
    background-size: cover;
}

body.light-mode .proyectos {
    background: linear-gradient(to top, rgba(250, 242, 235, 0.92), rgba(250, 242, 235, 1)), url("img/fondo7.jpg");
    background-size: cover;
}

body.light-mode .contacto {
    background: linear-gradient(to top, rgba(253, 246, 238, 0.95), rgba(253, 246, 238, 1)), url("img/contacto.jpg");
    background-size: cover;
}

/* Tarjetas y contenedores (Blanco roto cálido) */
body.light-mode .inicio-card,
body.light-mode .sobremi-card,
body.light-mode .aptitud-card,
body.light-mode .curso-card,
body.light-mode .proyecto-card,
body.light-mode .contenido-contacto {
    background: rgba(255, 252, 248, 0.85);
    box-shadow: 0 8px 32px rgba(206, 122, 49, 0.05);
    border: 1px solid rgba(206, 122, 49, 0.2);
}

    /* Títulos oscuros y definidos */
    body.light-mode .inicio-card h1,
    body.light-mode .sobremi-card h2,
    body.light-mode .aptitudes h1,
    body.light-mode .cursos h1,
    body.light-mode .proyectos h1,
    body.light-mode .contacto h1,
    body.light-mode .aptitud-info h3,
    body.light-mode .curso-info h3,
    body.light-mode .proyecto-info h3 {
        color: #2c2724;
    }

    /* Párrafos y subtítulos suaves */
    body.light-mode .inicio-card h2,
    body.light-mode .sobremi-card p,
    body.light-mode .aptitud-info p,
    body.light-mode .curso-info p,
    body.light-mode .proyecto-info p,
    body.light-mode .contacto > p,
    body.light-mode .contenido-contacto > p,
    body.light-mode .curso-subtitulo {
        color: #5c544d;
    }

    /* Inputs y Formulario de Contacto */
    body.light-mode .contacto input[type="text"],
    body.light-mode .contacto input[type="email"],
    body.light-mode .contacto textarea,
    body.light-mode .contenido-contacto input,
    body.light-mode .contenido-contacto textarea {
        background: rgba(255, 255, 255, 0.6);
        color: #2c2724;
        border: 1px solid rgba(206, 122, 49, 0.3);
    }

        body.light-mode .contacto input::placeholder,
        body.light-mode .contacto textarea::placeholder {
            color: #a39b95;
        }

body.light-mode .contacto .btnEnviar {
    color: #ce7a31;
    background: transparent;
}

    body.light-mode .contacto .btnEnviar:hover {
        color: #fff;
    }

/* Redes sociales */
body.light-mode .inicio-red-btn,
body.light-mode .sobremi-red-btn,
body.light-mode .footer-red-btn {
    color: #ce7a31;
    border-color: rgba(206, 122, 49, 0.4);
}

    body.light-mode .inicio-red-btn:hover,
    body.light-mode .sobremi-red-btn:hover,
    body.light-mode .footer-red-btn:hover {
        color: #fff;
        background-color: #ce7a31;
        border-color: #ce7a31;
    }

/* Footer (Crema sólido) */
body.light-mode footer {
    background: #fdf6ee;
    border-top: 1px solid rgba(206, 122, 49, 0.2);
    color: #2c2724;
}

body.light-mode .footer-logo {
    color: #2c2724;
}

body.light-mode .footer-nav a {
    color: #5c544d;
}

    body.light-mode .footer-nav a:hover {
        color: #2c2724;
    }

body.light-mode .footer-bottom p {
    color: #8a7f78;
}

body.light-mode .footer-top-btn {
    color: #ce7a31;
    border-color: rgba(206, 122, 49, 0.3);
}

    body.light-mode .footer-top-btn:hover {
        color: #fff;
        background: #ce7a31;
        border-color: #ce7a31;
    }