:root {
    --bg-dark: #0f1016;
    --card-bg: #181a24;
    --accent-pink: #ff2a75;
    --accent-glow: rgba(255, 42, 117, 0.4);
    --text-white: #ffffff;
    --text-gray: #a0a5b5;
    --nav-bg: rgba(24, 26, 36, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}



/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-pink);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-pink);
}

.btn-hire {
    background: var(--accent-pink);
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: 0.3s;
}

.btn-hire:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-pink);
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 150px 8% 80px;
    min-height: 90vh;
}

.sub-title {
    color: var(--accent-pink);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin: 10px 0;
}

.highlight {
    color: var(--accent-pink);
}

.hero-text p {
    color: var(--text-gray);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-primary {
    background: var(--accent-pink);
    color: var(--text-white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.social-icons a {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--accent-pink);
}

.hero-img {
    position: relative;
    width: 350px;
    height: 350px;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.img-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--accent-pink);
    border-radius: 25px;
    filter: blur(25px);
    opacity: 0.6;
    z-index: 1;
}

.tech-bar {
    display: flex;
    justify-content: space-around;
    background: var(--card-bg);
    padding: 20px;
    margin: 0 8%;
    border-radius: 15px;
    color: var(--text-gray);
    font-weight: 600;
}

/* --- GENERAL SECTIONS --- */
.section {
    min-height: 100vh;
    padding: 80px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    scroll-margin-top: 80px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card, .stat-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card {
    text-align: center;
    margin-bottom: 15px;
}

.stat-card h3 {
    color: var(--accent-pink);
    font-size: 1.8rem;
}

/* --- ABOUT SECTION --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    gap: 30px;
    align-items: center;
}

.section-title-left {
    font-size: 2.2rem;
    margin: 10px 0 20px;
}

.about-description {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item h3 {
    color: var(--accent-pink);
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.about-center {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.cyber-shield {
    position: relative;
    z-index: 2;
    font-size: 9rem;
    color: var(--accent-pink);
    filter: drop-shadow(0 0 20px var(--accent-pink));
    animation: float 4s ease-in-out infinite;
}

.cyber-shield-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent-pink);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 1;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 42, 117, 0.15);
    padding: 25px;
    border-radius: 15px;
    transition: 0.3s;
}

.info-card:hover {
    border-color: var(--accent-pink);
    transform: translateX(5px);
}

.info-card h3 {
    color: var(--accent-pink);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.5;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-center {
        margin: 30px 0;
    }
    .about-right {
        text-align: left;
    }
}

/* --- CERTIFICATES SECTION --- */
.certificates-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 5px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.cert-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 42, 117, 0.15);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cert-card:hover {
    border-color: var(--accent-pink);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 42, 117, 0.15);
}

.cert-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.cert-card-header h3 {
    font-size: 1.1rem;
    color: #ffffff;
}

.cert-year {
    color: var(--accent-pink);
    font-weight: 700;
}

.cert-issuer {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 10px 0 15px;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.cert-tags span {
    background: rgba(255, 42, 117, 0.12);
    color: var(--accent-pink);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.cert-view-btn {
    color: var(--accent-pink);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- MODALES CORREGIDAS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #121824;
    border: 1px solid rgba(255, 42, 117, 0.3);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 480px;
    position: relative;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--accent-pink);
}

.modal-header h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.modal-subtitle {
    color: var(--accent-pink);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.modal-date {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 15px 0 20px;
}

.btn-verify {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--accent-pink);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-verify:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px var(--accent-pink);
}

/* --- EDUCATION SECTION --- */
.education-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
}

.education-left {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.tech-stack-icon {
    position: relative;
    z-index: 2;
    font-size: 8rem;
    color: var(--accent-pink);
    filter: drop-shadow(0 0 25px var(--accent-pink));
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-icon {
    position: absolute;
    font-size: 4rem;
    color: #ffffff;
    opacity: 0.8;
}

.tech-stack-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: var(--accent-pink);
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.25;
    z-index: 1;
}

.section-title-left {
    font-size: 2.2rem;
    color: #ffffff;
}

.section-subtitle-left {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 5px 0 25px;
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edu-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 42, 117, 0.15);
    border-radius: 15px;
    padding: 22px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.edu-card:hover {
    border-color: var(--accent-pink);
    transform: translateX(8px);
}

.edu-card.current-edu {
    border-color: var(--accent-pink);
    background: rgba(255, 42, 117, 0.03);
}

.badge-current {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-pink);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.edu-card h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.edu-institution {
    color: var(--accent-pink);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.edu-details {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.edu-details i {
    margin-right: 6px;
    color: var(--accent-pink);
}

.edu-modal-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.edu-bullet-list {
    color: #ffffff;
    font-size: 0.88rem;
    margin-left: 20px;
    margin-bottom: 20px;
}

.edu-bullet-list li {
    margin-bottom: 6px;
}

@media (max-width: 868px) {
    .education-container {
        grid-template-columns: 1fr;
    }
    .education-left {
        min-height: 200px;
    }
    .tech-stack-icon {
        font-size: 6rem;
    }
}

/* --- PROJECTS SECTION --- */
#projects {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.projects-header {
    text-align: center;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 42, 117, 0.15);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent-pink);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 42, 117, 0.15);
}

.project-card h3 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.project-desc-short {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.project-img-wrapper {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.tags {
    margin: 15px 0;
}

.tags span {
    background: rgba(255, 42, 117, 0.15);
    color: var(--accent-pink);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 10px;
    margin-right: 5px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-modal {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-code, .btn-demo {
    background: var(--accent-pink);
    color: #ffffff;
}

.btn-modal:hover {
    opacity: 0.88;
}

.modal-status-tag {
    margin-top: 20px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SKILLS SECTION --- */
.skills-header {
    text-align: center;
    margin-bottom: 30px;
}

.skills-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1050px;
    margin: 0 auto;
    padding: 20px 0;
}

.skills-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skills-center-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.icon-glow {
    font-size: 80px;
    color: var(--accent-pink);
    text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(255, 42, 117, 0.2);
    animation: float 3s ease-in-out infinite;
}

.skill-bar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    backdrop-filter: blur(5px);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #f8f8f2;
}

.skill-percent {
    color: var(--accent-pink);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-pink), #bd93f9);
    border-radius: 10px;
}

.lang-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
}

.lang-level {
    color: var(--accent-pink);
    font-weight: 600;
}

@media (max-width: 768px) {
    .skills-wrapper {
        flex-direction: column;
    }
    .skills-center-icon {
        order: -1;
        margin-bottom: 10px;
    }
}

/* --- VEILLE TECH SECTION --- */
.veille-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.veille-header {
    text-align: center;
    margin-bottom: 35px;
}

.veille-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: center;
    margin-bottom: 30px;
}

.veille-intro-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px;
    backdrop-filter: blur(5px);
}

.veille-intro-card h3 {
    color: #f8f8f2;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.veille-intro-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #a6adc8;
}

.veille-goals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.goal-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #a6adc8;
}

.goal-item span {
    display: block;
    font-weight: bold;
    color: var(--accent-pink);
    margin-bottom: 4px;
}

.veille-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.veille-icon-wrapper .icon-glow {
    font-size: 90px;
    color: var(--accent-pink);
    text-shadow: 0 0 20px var(--accent-glow);
    animation: float 3s ease-in-out infinite;
}

.veille-card-wrapper {
    display: flex;
    justify-content: center;
}

.veille-project-card {
    width: 100%;
    max-width: 650px;
}

.veille-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0f17;
    z-index: 9999;
    overflow-y: auto;
    display: none;
    padding: 40px 20px;
}

.veille-page-overlay.active {
    display: block;
}

.veille-page-content {
    max-width: 850px;
    margin: 0 auto;
    color: #f8f8f2;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s;
}

.btn-back:hover {
    background: var(--accent-pink);
    color: #000;
}

.badge-status {
    background: rgba(255, 42, 117, 0.2);
    color: var(--accent-pink);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.veille-section-block {
    margin: 30px 0;
}

.veille-section-block h2 {
    color: var(--accent-pink);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.method-card, .article-card, .recom-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 10px;
}

.recom-box ul {
    margin-top: 10px;
    padding-left: 20px;
}

.recom-box li {
    margin-bottom: 6px;
}

.veille-download-area {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .veille-top-grid {
        grid-template-columns: 1fr;
    }
    .veille-icon-wrapper {
        order: -1;
        margin-bottom: 10px;
    }
    .veille-goals {
        grid-template-columns: 1fr;
    }
}

/* --- CONTACT SECTION --- */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px;
    backdrop-filter: blur(5px);
    align-items: center;
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 25px;
}

.contact-avatar-wrapper {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid var(--accent-pink);
    box-shadow: 0 0 15px var(--accent-glow);
}

.contact-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info-side h3 {
    font-size: 1.25rem;
    color: #f8f8f2;
    margin-bottom: 2px;
}

.contact-subtitle-role {
    font-size: 0.82rem;
    color: var(--accent-pink);
    margin-bottom: 15px;
}

.contact-details p {
    font-size: 0.85rem;
    color: #a6adc8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-details i {
    color: var(--accent-pink);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--accent-pink);
    color: #000;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a5b5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select option {
    background: #181a24;
    color: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 8px var(--accent-glow);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .contact-card-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-info-side {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 25px;
    }
}

/* --- BARRA DE COMPETENCIAS CON BORDE Y NEÓN --- */
.tech-bar, .skills-bar {
    background: #111218 !important;
    border: 1px solid rgba(255, 42, 117, 0.6) !important;
    box-shadow: 0 0 20px rgba(255, 42, 117, 0.3) !important;
    border-radius: 12px !important;
    padding: 15px 25px !important;
}

.tech-bar .tech-item:nth-child(1) i, .skills-bar div:nth-child(1) i { color: #f05133; filter: drop-shadow(0 0 6px #f05133); }
.tech-bar .tech-item:nth-child(2) i, .skills-bar div:nth-child(2) i { color: #00d2ff; filter: drop-shadow(0 0 6px #00d2ff); }
.tech-bar .tech-item:nth-child(3) i, .skills-bar div:nth-child(3) i { color: #0078d4; filter: drop-shadow(0 0 6px #0078d4); }
.tech-bar .tech-item:nth-child(4) i, .skills-bar div:nth-child(4) i { color: #f29111; filter: drop-shadow(0 0 6px #f29111); }
.tech-bar .tech-item:nth-child(5) i, .skills-bar div:nth-child(5) i { color: #3776ab; filter: drop-shadow(0 0 6px #3776ab); }

.tech-bar i, .skills-bar i {
    font-size: 1.2rem;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.tech-bar div:hover i, .skills-bar div:hover i {
    transform: scale(1.2);
}

/* --- CURSOR DE MÁQUINA DE ESCRIBIR PARA EL TÍTULO --- */
.typewriter-cursor::after {
    content: '|';
    color: #ff2a75;
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero, .hero-section, .hero-container {
    padding-bottom: 10px !important;
    margin-bottom: 0px !important;
}

.tech-bar, .skills-bar {
    margin-top: 4px !important;
}

.fade-in-up, .slide-in-left {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.fade-in-up {
    transform: translateY(40px);
}

.slide-in-left {
    transform: translateX(-80px);
}

.fade-in-up.appear, .slide-in-left.appear {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* ============================================= */
/* ====   ADAPTATION MOBILE / RESPONSIVE     ==== */
/* ============================================= */

/* --- SELECTOR DE IDIOMAS FR / ES / EN --- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px;
    margin-right: 10px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.25s;
    letter-spacing: 1px;
}

.lang-btn:hover {
    color: var(--text-white);
}

.lang-btn.active {
    background: var(--accent-pink);
    color: var(--text-white);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --- MENU HAMBURGUESA (oculto en escritorio) --- */
.hamburger {
    display: none;
    font-size: 1.6rem;
    color: var(--text-white);
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
}

/* --- TABLET (<=992px) --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 130px 6% 60px;
        gap: 40px;
        min-height: auto;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-img {
        width: 280px;
        height: 280px;
    }
    .tech-bar {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        text-align: center;
    }
    .education-container {
        gap: 25px;
    }
}

/* --- MOVIL GRANDE (<=768px) --- */
@media (max-width: 768px) {
    .navbar {
        padding: 18px 6%;
    }

    /* Activamos la hamburguesa y ocultamos el botón de contacto para dar espacio */
    .hamburger {
        display: block;
    }
    .navbar .btn-hire {
        display: none;
    }
    .lang-switcher {
        margin-right: 6px;
    }
    .lang-btn {
        font-size: 0.65rem;
        padding: 4px 7px;
    }

    /* Menu lateral deslizante */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
        margin: 0;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        font-size: 1rem;
    }

    /* Overlay oscuro detrás del menu abierto */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }
    .nav-overlay.active {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero {
        padding: 110px 6% 50px;
    }

    .section {
        padding: 60px 6%;
        min-height: auto;
    }
    .section-title,
    .section-title-left {
        font-size: 1.7rem;
        text-align: center;
    }
    .section-subtitle-left {
        text-align: center;
    }

    .about-container {
        gap: 20px;
    }
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .projects-header,
    .certificates-header,
    .skills-header,
    .veille-header,
    .contact-header {
        text-align: center;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .contact-card-wrapper {
        padding: 25px;
    }

    .education-list {
        gap: 15px;
    }

    #projects {
        padding: 60px 6%;
    }
}

/* --- MOVIL PEQUEÑO (<=480px) --- */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-img {
        width: 220px;
        height: 220px;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
    .cert-card-header {
        flex-direction: column;
        gap: 5px;
    }
    .modal-content {
        padding: 20px;
        width: 92%;
    }
    .cyber-shield,
    .tech-stack-icon {
        font-size: 5.5rem;
    }
    .icon-glow {
        font-size: 55px;
    }
    .veille-icon-wrapper .icon-glow {
        font-size: 65px;
    }
    .logo {
        font-size: 1.2rem;
    }
    .contact-avatar-wrapper {
        width: 80px;
        height: 80px;
    }
}