* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #005187;
    color: white;
}

/* NAVBAR */
/* NAVBAR GENERAL */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0f172a; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* CONTENEDOR */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

/* IZQUIERDA */
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-left img {
    width: 45px;
    height: auto;
}

.nav-tagline {
    font-size: 13px;
    opacity: 0.7;
    white-space: nowrap;
}

/* NAV DERECHA (tu menú) */
nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    position: relative;
    text-decoration: none;
}

/* línea oculta */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: #00bfff; /* celeste */
    transition: width 0.3s ease;
}

/* hover */
nav ul li a:hover::after {
    width: 100%;
}

nav a {
    text-decoration: none;
    color: inherit;
}

.lang-switch span {
    color: #fff; 
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.lang-switch span:hover {
    color: #005187;
    transform: scale(1.1);
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between; /* 🔥 mejor distribución */
    padding: 0 8%; /* 🔥 menos margen lateral */
}
.cv-dropdown {
    position: relative;
    display: inline-block;
}

.cv-options {
    display: none;
    position: absolute;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    top: 110%;
    left: 0;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cv-options a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.cv-options a:hover {
    background: #f0f0f0;
}

/* Mostrar al pasar el mouse */
.cv-dropdown:hover .cv-options {
    display: block;
}

.hero-text {
    max-width: 650px;
    margin-right: auto; /* 🔥 empuja todo a la izquierda */
}

.hero-text > * {
    margin-bottom: 15px;
}

.badge {
    background: #9fc5f8;
    color: #000000;
    padding: 7px 20px;
    font-size: 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.badge img {
    width: 18px;
    height: 18px;
}

.hero h2 {
    font-weight: 300;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: bold;
}

.hero h1 {
    margin-bottom: 25px;
    line-height: 1.2;
    font-size: 40px;
}

.hero p {
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 15px; /* 🔥 espacio entre botones */
    margin-top: 10px;
}

.btn {
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.primary {
    background: #9fc5f8;
    color: #000;
    border: none;
    cursor: pointer;
}

.primary:hover {
    color: #005187;
    transform: scale(1.05);
}

.secondary {
    background: transparent;
    border: 2px solid #9fc5f8;
    color: #9fc5f8;
}

.secondary:hover {
    background: #005187;
    color: #fff;
    transform: scale(1.05);
}

.socials {
    margin-top: 20px;
}

.socials img {
    width: 30px;
    margin-right: 10px;
}

/* IMAGEN */
.hero-img img {
    width: 420px;
    height: 420px;       /* 🔥 IMPORTANTE */
    object-fit: cover;   /* 🔥 evita deformación */
    border-radius: 50%;   
}
/* ===== SOBRE MI ===== */

.about {
    padding: 100px 12%;
}

/* Contenedor principal */
.about-container {
    display: flex;
    align-items: center;
    gap: 125px;
}

/* ===== IMAGEN ===== */
.about-img img {
    width: 340px;
    border-radius: 20px;
    object-fit: cover;
}

/* ===== CONTENIDO ===== */
.about-content {
    max-width: 700px;
}

/* Título */
.about-content h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
}

/* Texto principal */
.about-text {
    border-left: 4px solid #9fc5f8;
    padding-left: 20px;
    line-height: 1.7;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

/* Nombre resaltado */
.highlight {
    font-weight: 700;
}

/* ===== CARDS ===== */
.about-cards {
    display: flex;
    gap: 25px;
    margin-top: 35px;
}

/* Card individual */
.card {
    background: #9fc5f8;
    color: #000;
    padding: 20px;
    border-radius: 15px;
    flex: 1;
    transition: 0.3s;
}

/* Hover elegante */
.card:hover {
    transform: translateY(-6px);
}

/* ===== HEADER CARD ===== */
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.kanban-icon {
    font-size: 70px;
}

/* Icono superior */
.card-header img {
    width: 25px;
}

/* Título card */
.card h3 {
    font-weight: 700;
    font-size: 16px;
}

/* Texto card */
.card p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.card span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    opacity: 0.8; /* 🔥 lo hace más sutil */
    
}

/* ===== INTERESES ===== */
.interests {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

/* Item individual */
.interest-item {
    text-align: center;
}

/* Iconos intereses */
.interest-item img {
    width: 60px;
    margin-bottom: 5px;
    transition: 0.3s;
}

/* Hover iconos */
.interest-item:hover img {
    transform: scale(1.1);
}

/* SECCION HABILIDADES */

/* SECCIÓN */
.skills {
    padding: 100px 10%;
    text-align: center;
}

/* TITULOS */
.skills h2 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 30px;
}

.skills-title {
    margin: 40px 0 20px;
    font-family: 'Poppins', sans-serif;
}

/* 🔵 HARD SKILLS */
.hard-skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px;
}

.skill-card {
    background: #9fc5f8;
    padding: 20px;
    border-radius: 15px;
    width: 160px;
    text-align: center;
    color: black;
}

.skill-card img {
    width: 50px;
    margin-bottom: 10px;
}

.skill-card p {
    font-family: 'Open Sans', sans-serif;
}

/* 🔵 SOFT SKILLS */
.soft-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 75px;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
}

.soft-card {
    background: #9fc5f8;
    padding: 20px;
    border-radius: 15px;
    width: 350px;
    text-align: left;
    color: black;
}

.soft-card i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #0f5c83;
}

.soft-card h4 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 5px;
}

.soft-card p {
    font-family: 'Open Sans', sans-serif;
}

.soft-header i {
    margin-right: 12px; /* 🔥 separa icono del texto */
}

.soft-card, .hard-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.soft-card:hover, .hard-card:hover {
    transform: translateY(-6px); /* 🔥 se levanta */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); /* 🔥 sombra */
}

.skill-card, .hard-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.skill-card:hover, .hard-card:hover {
    transform: translateY(-6px); /* 🔥 se levanta */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); /* 🔥 sombra */
}

.footer {
    background: #0f172a; 
    color: white;
    padding: 50px 10%;
}

.footer-section.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 🔥 alineado a la izquierda */
    gap: 10px;
    padding-top: 0;
}

.footer-logo img {
    max-width: 50px;
    height: auto;
}

.footer-phrase {
    font-size: 14px;
    line-height: 1.5;
    max-width: 250px; /* evita que se haga muy larga */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 30px;
}

.footer-section.contact {
    text-align: left;
    padding-top: 0;
    margin-left: -200px;
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    white-space: nowrap;
}

.footer-section.contact i {
    font-size: 18px;
    color: #38bdf8; 
}

.footer-section {
    max-width: 300px;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

.footer-section p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    margin-bottom: 8px;
    transition: 0.3s;
}

.footer-socials i {
    font-size: 20px;
}

.footer-socials a:hover {
    color: #38bdf8; 
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    font-size: 13px;
}

.footer a {
    color: #38bdf8;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.projects-container {
    display: flex;
    gap: 70px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.project-card h3 {
    text-align: center;
    color: #000;
    margin-top: 15px;
}

.project-card p {
    color: #000;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 15px;
    margin-top: 15px;
}

.section-title {
    text-align: center;
    color: #fff; /* o el color que estés usando */
    margin-bottom: 40px;
}

.project-card {
    width: 400px;
    background: #9fc5f8;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.carousel {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
}

.carousel img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: none;
}

.carousel img.active {
    display: block;
}

a.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== MODAL FONDO ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 150, 255, 0.2);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* cuando se activa */
.modal.active {
    display: flex;
}

/* ===== CONTENIDO DEL MODAL ===== */
.modal-content {
    background: #9fc5f8;
    width: 85%;
    max-width: 900px;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* animación */
@keyframes fadeIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== BOTÓN CERRAR ===== */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #000;
}

/* ===== CARRUSEL ===== */
.modal-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* imagen principal */
.modal-carousel img {
    width: 100%;
    max-width: 650px;
    border-radius: 10px;
}

/* botones */
.modal-carousel button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: none;
    transition: 0.3s;
}

/* hover botones */
.modal-carousel button:hover {
    background: #e0f0ff; /* celestito suave */
}

/* ===== TEXTO ===== */
#modalTitle {
    color: #000;
    margin-bottom: 10px;
}

#modalDesc {
    color: #000;
    font-size: 15px;
    line-height: 1.5;
}

.tech span {
    display: inline-block;
    background: #005187;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    margin: 5px 5px 0 0;
    font-size: 12px;
}

.btn-project {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px auto 0; /* 🔥 centrado */
    width: fit-content;
    padding: 10px 18px;
    background: #fff;
    border-radius: 25px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.project-tags span {
    background: #005187;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.lang-dropdown {
    position: relative;
    cursor: pointer;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    border-radius: 8px;
    display: none;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lang-menu li {
    padding: 8px 12px;
    color: #000;
    cursor: pointer;
}

.lang-menu li:hover {
    background: #f5f5f5;
}

/* mostrar menú */
.lang-dropdown.active .lang-menu {
    display: block;
}
/* ===== CONTACTO ===== */
.contact {
    padding: 60px 10% 40px;
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #9fc5f8;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid #9fc5f8;
    background: transparent;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #38bdf8;
    background: rgba(159, 197, 248, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-message {
    margin-top: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 15px;
    display: inline-block;
}

.form-message.success {
    background: rgba(59, 109, 17, 0.3);
    border: 1px solid #3B6D11;
    color: #97C459;
}

.form-message.error {
    background: rgba(232, 93, 93, 0.2);
    border: 1px solid #E85D5D;
    color: #E85D5D;
}
/* ===== LOGROS ===== */
.certifications {
    padding: 100px 10%;
    text-align: center;
}

/* FILTROS */
.cert-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.cert-filter {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    opacity: 0.6;
}

.cert-filter:hover {
    opacity: 1;
}

.cert-filter.active {
    border-bottom: 2px solid #9fc5f8;
    color: #9fc5f8;
    opacity: 1;
}

/* CONTENEDOR */
.cert-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* TARJETA */
.cert-card {
    background: #9fc5f8;
    border-radius: 15px;
    width: 300px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* IMAGEN */
.cert-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.cert-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.cert-card:hover .cert-img img {
    transform: scale(1.05);
}

/* INFO */
.cert-info {
    padding: 15px;
    text-align: left;
    color: #000;
}

.cert-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* TAGS */
.cert-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.cert-tag.certificado {
    background: #005187;
    color: #fff;
}

.cert-tag.diploma {
    background: #0f172a;
    color: #9fc5f8;
}

/* OCULTAR TARJETAS FILTRADAS */
.cert-card.hidden {
    display: none;
}

/* MODAL */
.cert-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cert-modal.active {
    display: flex;
}

.cert-modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    border-radius: 15px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.cert-modal-content img {
    width: 100%;
    border-radius: 15px;
}

.cert-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
/* HAMBURGUESA - oculto en desktop */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
}
/* ===== RESPONSIVE COMPLETO ===== */

/* TABLET */
@media (max-width: 900px) {

    /* HAMBURGUESA */
.hamburger {
    display: none;
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
        z-index: 1001;
    }

    #mainNav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #0f172a;
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }

    #mainNav.active {
        display: flex;
    }

    #mainNav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    #mainNav ul li a {
        font-size: 20px;
    }
}

    /* NAVBAR */
    .nav-tagline {
        display: none;
    }

    .hero-img {
    order: -1;
    }

    .nav-container {
        padding: 15px 20px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 13px;
    }

    /* HERO */
    .hero {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 80px 8% 60px;
        gap: 40px;
    }

    .hero-text {
        margin-right: 0;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .socials {
        display: flex;
        justify-content: center;
    }

    .hero-img img {
        width: 280px;
        height: 280px;
    }

    /* SOBRE MI */
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-img img {
        width: 250px;
    }

    .about-cards {
        flex-direction: column;
    }

    .about-text {
        border-left: none;
        border-top: 4px solid #9fc5f8;
        padding-left: 0;
        padding-top: 15px;
    }

    /* HABILIDADES */
    .hard-skills {
        gap: 30px;
    }

    .soft-skills {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .soft-card {
        width: 100%;
    }

    /* PROYECTOS */
    .projects-container {
        gap: 30px;
    }

    .project-card {
        width: 100%;
        max-width: 400px;
    }

    /* LOGROS */
    .cert-container {
        gap: 20px;
    }

    .cert-card {
        width: 100%;
        max-width: 400px;
    }

    /* CONTACTO */
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact form {
        width: 100%;
    }

    /* FOOTER */
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-section.contact {
        margin-left: -0px;
    }

    .footer-section {
    margin-bottom: 0;
    padding: 0;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .modal-carousel img {
        max-width: 100%;
    }

    .modal-carousel button {
        font-size: 22px;
        padding: 8px;
    }
}

/* MÓVIL */
@media (max-width: 480px) {

    /* NAVBAR */
    .nav-left img {
        width: 35px;
    }

    nav ul {
        gap: 8px;
    }

    nav ul li a {
        font-size: 12px;
    }

    /* HERO */
    .hero {
        padding: 70px 6% 50px;
        gap: 30px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-img img {
        width: 220px;
        height: 220px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* SOBRE MI */
    .about {
        padding: 60px 6%;
    }

    .about-content h2 {
        font-size: 22px;
    }

    /* HABILIDADES */
    .skills {
        padding: 60px 6%;
    }

    .soft-skills {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-card {
        width: 130px;
    }

    /* PROYECTOS */
    .project-card {
        max-width: 100%;
    }

    /* LOGROS */
    .cert-card {
        max-width: 100%;
    }

    .cert-filters {
        gap: 10px;
    }

    .cert-filter {
        font-size: 14px;
    }

    /* CONTACTO */
    .contact {
        padding: 60px 6% 40px;
    }

    /* FOOTER */
    .footer {
        padding: 30px 8% 20px;
    }

    .footer-section.contact {
    text-align: left;
    padding-top: 0;
    margin-left: -0px;
    }

     .footer-section {
    margin-bottom: 0;
    padding: 0;
    }
}