@import url("https://use.fontawesome.com/releases/v6.4.0/css/all.css");
@import url("https://fonts.googleapis.com/css?family=Poppins");

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: #ffffff;
    color: #333333;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 20px;
    background-color: #333;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease-in-out;
}

.logo img:hover {
    transform: scale(1.2);
}

.logo-text {
    color: lightgray;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
    text-align: center;
    border-radius: 15px;
    padding: 5px 10px;
    font-family: 'Overwave', cursive;
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 13%;
    transform: translate(-50%, -50%);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1100;
}

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.navigation ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation ul li {
    margin: 0 10px;
}

.navigation a {
    text-decoration: none;
    color: #3283ec;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.navigation a:hover {
    transform: scale(1.2);
    color: #00bcd4;
}

.navigation .icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #3283ec;
    transition: transform 0.3s ease, color 0.3s ease;
}

.navigation a:hover .icon {
    transform: scale(1.2);
    color: #00bcd4;
}

.navigation .text {
    font-size: 14px;
    opacity: 1;
    margin-top: 5px;
    position: relative;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navigation .icon {
    position: relative;
    display: block;
    line-height: 75px;
    font-size: 24px;
    text-align: center;
    transition: 0.5s;
    margin-bottom: 5px;
}

li .active a.icon {
    transform: translateY(-35px);
}

.navigation .text {
    position: absolute;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: 0.5s;
    opacity: 0;
    transform: translateY(20px);
    color: #3283ec;
    transition: opacity 0.3s ease;
}

.navigation a:hover .text {
    opacity: 1;
    transform: translateY(0);
}

li.active a.text {
    opacity: 1;
    transform: translateY(10px);
}

.indicator {
    position: absolute;
    top: -50px;
    width: 70px;
    height: 70px;
    background: blue;
    box-sizing: border-box;
    border-radius: 50%;
    border: 6px solid #222327;
    transition: 0.5s;
}

.indicator::before,
.indicator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: transparent;
}

.indicator::before {
    left: -22px;
    border-top-right-radius: 20px;
    box-shadow: 1px -10px 0 0 #222327;
}

.indicator::after {
    right: -22px;
    border-top-left-radius: 20px;
    box-shadow: -1px -10px 0 0 #222327;
}

li.active .indicator {
    --x: 0;
    transform: translateX(var(--x));
}

li:nth-child(2).active ~ .indicator {
    --x: 70px;
}

li:nth-child(3).active ~ .indicator {
    --x: 140px;
}

li:nth-child(4).active ~ .indicator {
    --x: 210px;
}

li:nth-child(5).active ~ .indicator {
    --x: 280px;
}

.tooltip {
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navigation a:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-10px);
}

.logo-text {
    color: lightgray;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
    text-align: center;
    border-radius: 15px;
    padding: 5px 10px;
    font-family: 'Overwave', cursive;
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 13%;
    transform: translate(-50%, -50%);
}

.language-menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.language-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    border-radius: 5px;
    z-index: 1000;
    text-align: center;
}

.language-dropdown li {
    margin: 0;
}

.language-dropdown a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    transition: color 0.3s, background 0.3s;
}

.language-menu:hover .language-dropdown {
    display: block;
}

.language-dropdown a:hover {
    background-color: #444;
}

.language-dropdown a.language-es:hover {
    color: #c60b1e;
    background: linear-gradient(to right, #c60b1e, #ffc400);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.language-dropdown a[href="/en"]:hover {
    color: #00247d;
    background: linear-gradient(to right, #00247d, #ffffff, #cf142b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.language-dropdown a[href="/pt"]:hover {
    color: #006600;
    background: linear-gradient(to right, #006600, #ffcc00, #ff0000);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.language-toggle {
    text-decoration: none;
    font-family: 'Hey Comic', cursive;
    font-size: 20px;
    color: white;
    transition: color 0.3s;
    cursor: pointer;
}

.language-toggle:hover {
    animation: flag-colors 3s infinite;
}

@keyframes flag-colors {
    0% {
        color: #c60b1e;
        background: linear-gradient(to right, #c60b1e, #ffc400);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    33% {
        color: #00247d;
        background: linear-gradient(to right, #00247d, #ffffff, #cf142b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    66% {
        color: #006600;
        background: linear-gradient(to right, #006600, #ffcc00, #ff0000);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    100% {
        color: #c60b1e;
        background: linear-gradient(to right, #c60b1e, #ffc400);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.image-container {
    position: relative;
    width: 100%;
    display: block;
    text-align: center;
}

#animated-text {
    position: static;
    animation: none;
}

@keyframes move-left {
    0% {
        left: 100%;
    }
    40% {
        left: 50%;
        transform: translateX(-50%);
    }
    60% {
        left: 50%;
        transform: translateX(-50%);
    }
    100% {
        left: -100%;
    }
}

.custom-button {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, #0573e7, #01abee);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.custom-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transform: skewX(-25deg);
    transition: all 0.5s ease;
    z-index: -1;
}

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

.custom-button:hover {
    background: linear-gradient(90deg, #71b5f5, #3093fd);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.custom-button:active {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

.theme-toggle i {
    display: inline-block;
    vertical-align: middle;
}

.theme-toggle:hover {
    color: #00bcd4;
}

.theme-toggle {
    background: none;
    border: none;
    color: #3283ec;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    color: #00bcd4;
}

.theme-toggle .icon {
    font-size: 24px;
}

.theme-toggle .tooltip {
    font-size: 14px;
    color: #ffffff;
    background-color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    top: 50px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover .tooltip {
    opacity: 1;
}

.navigation li {
    margin: 0 25px;
    position: relative;
}

.navigation ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .header {
    background-color: #1e1e1e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

body.dark-mode .navigation a {
    color: #ffffff;
}

body.dark-mode .navigation a:hover {
    color: #00bcd4;
}

body.dark-mode .theme-toggle {
    color: #f1c40f;
}

body.dark-mode .sobre-mi,
body.dark-mode .info-box,
body.dark-mode .proyectos,
body.dark-mode .contacto-card {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
    color: #ffffff; /* Texto blanco */
    border: 2px solid #007bff; /* Borde azul */
}

body.dark-mode .sobre-mi-mobile {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
    color: #ffffff; /* Texto blanco */
    border: 2px solid #007bff; /* Borde azul */
    padding: 1rem; /* Espaciado interno */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Sombra */
}

body.dark-mode .sobre-mi-mobile p {
    color: #ffffff; /* Asegura que los párrafos tengan texto blanco */
}

.sobre-mi,
.info-box,
.proyectos,
.contacto-card {
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco */
    color: #333333; /* Texto negro */
    border: 2px solid rgba(221, 221, 221, 0.2); /* Borde gris */
}

.photo-outside {
    width: 180px; 
    height: 180px;
    border-radius: 50%; 
    border: 3px solid #007bff; 
    overflow: hidden; 
    display: flex; 
    justify-content: center;
    align-items: center;
    margin: 0 auto; 
}


.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

body.dark-mode .photo-outside {
    background-color: inherit; 
}

@media (max-width: 880px) {
    .menu-toggle {
        display: block;
    }

    .navigation {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 40px;
        left: 0;
        width: 100%;
        height: 50vh;
        overflow-y: auto;
        background-color: #333;
        border-bottom-left-radius: 50px;
        border-bottom-right-radius: 50px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .navigation.active {
        display: flex;
    }

    .navigation ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .navigation li {
        margin: 15px 0;
    }

    .animated-text-container,
    .custom-button,
    .logo-text {
        display: none;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .theme-toggle {
        margin: 0;
    }

    .navigation .text {
        opacity: 1;
        transform: translateY(0);
        position: static;
        transition: none;
    }

    .navigation a:hover .text {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1400px) {
    .logo-text {
        display: none;
    }
}

@media (max-width: 768px) {
    #slider {
        width: 95vw !important;
        height: 45vw !important;
        min-width: 0;
        min-height: 0;
        max-width: 98vw;
        max-height: 60vw;
        position: relative;
        background: #000;
        border-radius: 10px;
    }
    #slider img {
        width: 95vw !important;
        height: 45vw !important;
        max-width: 98vw;
        max-height: 60vw;
        left: 0 !important;
        top: 0 !important;
        border-radius: 10px;
        position: absolute;
        object-fit: contain;
    }
    .slider-header h2 {
        font-size: 2rem !important;
    }
    .slider-buttons {
        margin-top: 10px !important;
        position: static !important;
        display: flex !important;
        justify-content: center;
        gap: 10px;
    }
    .slider-buttons button {
        width: 16px;
        height: 16px;
        margin: 0 2px;
    }
}

@media (max-width: 768px) {
    .certificates-modern .carousel-track-container {
        overflow: hidden;
        width: 100vw;
        max-width: 100vw;
        margin: 0 auto;
    }
    .certificates-modern .carousel-track {
        display: flex;
        transition: transform 0.5s;
        gap: 0;
    }
    .certificates-modern .carousel-slide {
        flex: 0 0 100vw;
        max-width: 100vw;
        min-width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    .certificates-modern .carousel-slide img {
        width: 90vw;
        max-width: 320px;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        margin: 0 auto;
    }
    .certificates-modern .carousel-indicators {
        gap: 0.3rem;
        margin-top: 0.5rem;
        justify-content: center;
        display: flex;
    }
    .certificates-modern .indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #bbb;
        border: none;
        margin: 0 2px;
        padding: 0;
    }
    .certificates-modern .indicator.active {
        background: #3283ec;
    }
}

@media (max-width: 768px) {
    #certificados-movil {
        display: block;
        width: 100vw;
        margin: 0 auto;
    }
    .certificados-movil .certificado-img-container {
        width: 90vw;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
    }
    .certificados-movil img {
        width: 90vw;
        max-width: 320px;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        margin: 0 auto;
        display: block;
    }
    .certificados-movil .certificados-indicadores {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .certificados-movil .cert-indicador {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #bbb;
        border: none;
        padding: 0;
    }
    .certificados-movil .cert-indicador.active {
        background: #3283ec;
    }
    /* Oculta el carrusel grande en móvil */
    .certificates-modern {
        display: none !important;
    }
}

.certificados-movil {
    display: none;
}

.image-container {
    position: relative;
    text-align: center;
}

.background-image {
    width: 100%;
    height: auto;
}

.progressive-title {
    font-family: sans-serif; 
    font-weight: 800;
    position: absolute;
    top: 37%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1rem, 4vw, 2.5rem);
    font-weight: bold;
    color: #ffffff;
    text-shadow: 7px 7px 17px rgb(0, 70, 175);
    white-space: nowrap;
}


@media (max-width: 100px) {
    .progressive-title {
        display: none;
    }
}

.sobre-mi {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1); /* Fondo blanco con 10% de opacidad */
    backdrop-filter: blur(10px); /* Efecto de desenfoque */
    border: 2px solid rgba(221, 221, 221, 0.2); /* Borde con transparencia */
    margin: 2rem auto;
    max-width: 1200px;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1.5s ease-in-out;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px 80px 20px 80px;
    position: relative;
    left: -190px;
}

.sobre-mi:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.sobre-mi-mobile {
    display: none;
}

@media (max-width: 1600px) {
    .sobre-mi {
        display: none;
        left: 0;
    }

    .sobre-mi-mobile {
        display: block;
        padding: 1rem;
        background-color: #f0f0f0;
        border-radius: 10px;
        margin: 2rem auto;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        font-family: Arial, sans-serif;
        max-width: 1000px;
        text-align: left;
    }

    .sobre-mi-mobile h2 {
        font-size: 1.8rem;
        color: #007bff;
        margin-bottom: 1rem;
        margin-left: 1rem;
    }

    .sobre-mi-mobile p {
        font-size: 1rem;
        color: #333;
        line-height: 1.5;
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

.image-container + .sobre-mi-mobile {
    margin-top: 2rem;
}

.sobre-mi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.sobre-mi-header h2 {
    text-align: left;
    color: #007bff;
    font-size: 4rem;
    margin: 0;
}

.sobre-mi-logo {
    max-width: 50px;
    height: auto;
}

.sobre-mi-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.sobre-mi-text {
    flex: 1 1 100%;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.sobre-mi-text strong {
    font-weight: bold;
}

.sobre-mi-photo {
    flex: 0 0 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-left: 2rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .sobre-mi-content {
        flex-direction: column;
    }

    .sobre-mi-photo {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .sobre-mi-photo {
        display: none;
    }
}

@media (max-width: 768px) {
    .sobre-mi .sobre-mi-photo {
        display: none !important;
        margin-left: 0;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    section.sobre-mi .sobre-mi-photo {
        display: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    .sobre-mi {
        background-color: #555;
        color: #f9f9f9;
        border: 2px solid #444;
        box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    }

    .sobre-mi-header h2 {
        color: #4dabf7;
    }

    .sobre-mi-text {
        color: #ddd;
    }
}

@media (max-width: 768px) {
    .sobre-mi-header {
        flex-direction: column;
        text-align: center;
    }

    .sobre-mi-logo {
        display: none;
    }
}

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

.photo-outside {
    position: absolute;
    top: 1055px;
    right: 190px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    z-index: 10;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .photo-outside {
        top: 200px;
        right: 20px;
        width: 100px;
        height: 100px;
    }
}

.info-box {
    position: absolute;
    top: 1255px;
    right: 90px;
    width: 300px;
    height: auto;
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1); /* Fondo blanco con 10% de opacidad */
    backdrop-filter: blur(10px); /* Efecto de desenfoque */
    border: 2px solid rgba(221, 221, 221, 0.2); /* Borde con transparencia */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    overflow: hidden;
    z-index: 10;
    animation: fadeInBox 1.5s ease-in-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

body.dark-mode .info-box {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro con 50% de opacidad */
    color: #ffffff; /* Texto blanco */
    border: 2px solid #007bff; /* Borde azul */
}

.info-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.info-box h2 {
    text-align: center;
    color: #007bff;
    font-size: 2rem;
    margin: 6px;
}



@media (max-width: 1780px) {
    .info-box {
        display: none;
    }

    .photo-outside {
        display: none;
    }
}

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

.skills-slider {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    max-width: 100%;
    position: relative;
    height: 80px;
}

.skills-slider-track {
    display: flex;
    animation: scroll-skills 25s linear infinite;
    width: max-content;
}

.skill-icon {
    width: 38px;
    height: 38px;
    margin: 0 12px;
    object-fit: contain;
    transition: transform 0.2s;
}

.skill-icon:hover {
    transform: scale(1.15);
}

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

.proyectos-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
}

.proyecto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #007bff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0.4s ease;
    position: relative;
}

.proyecto-item:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.proyectos-content:hover .proyecto-item:not(:hover) {
    transform: scale(0.9);
    opacity: 0.6;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.custom-button-alt {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(45deg, #0573e7, #01abee);
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-button-alt:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.custom-button-alt:active {
    transform: translateY(1px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .contact-actions {
        display: none;
    }
}

.proyectos {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1); /* Fondo blanco con 10% de opacidad */
    backdrop-filter: blur(10px); /* Efecto de desenfoque */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

body.dark-mode .proyectos {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro con 50% de opacidad */
    color: #ffffff00; /* Texto blanco */
    border: 2px solid #007bff; /* Borde claro */
}

.proyectos-header h2 {
    text-align: center;
    color: #007bff;
    font-size: 3rem;
    margin: 10;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.proyectos-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.proyecto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    text-align: center;
    background-color: #ffffffd7;
    border: 1px solid #ddddddbb;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyecto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.proyecto-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, z-index 0.3s ease;
    cursor: pointer;
}

.proyecto-description {
    margin-bottom: 1rem;
    color: #333;
}

body.dark-mode .proyecto-description {
    color: #ffffff; /* Texto blanco en modo oscuro */
}

.proyectos-header h2 {
    text-align: center;
    color: #007bff;
    font-size: 4rem;
    margin: 0;
    font-weight: 900;
}

.proyectos {
    padding: 2rem;
    background-color: #eeee;
}

.proyectos {
    padding: 2rem;
    background-color: #eeee;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.proyecto-description {
    color: #000;
}

body.dark-mode .proyecto-description {
    color: #000;
}

.contacto {
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #007bff, #01abee);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-top: 2rem;
}

.contacto-header h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.contacto-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #f0f0f0;
}

.contacto-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contacto-card {
    background: #ffffff; /* Fondo blanco */
    color: #333333; /* Texto negro */
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .contacto-card {
    background: #ffffff; /* Fondo blanco en modo oscuro */
    color: #333333; /* Texto negro en modo oscuro */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Borde gris claro */
}

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

.contacto-icon {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.contacto-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.contacto-card p {
    font-size: 0.85rem;
    margin: 0;
    
}

.contacto-card a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    
}

.contacto-card a:hover {
    text-decoration: underline;
}

.contacto-card p a {
    word-wrap: break-word;
    display: inline-block;
    text-align: center;
}

@media (max-width: 768px) {
    .contacto {
        padding: 1rem 0.5rem;
    }

    .contacto-header h2 {
        font-size: 1.5rem;
    }

    .contacto-subtitle {
        font-size: 0.8rem;
    }

    .contacto-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contacto-card {
        width: 90%;
        padding: 0.8rem;
    }

    .contacto-icon {
        font-size: 1.5rem;
    }

    .contacto-card h3 {
        font-size: 1rem;
    }

    .contacto-card p {
        font-size: 0.8rem;
    }
}

body.dark-mode .sobre-mi {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro con 50% de opacidad */
    color: #ffffff; /* Texto blanco */
    border: 2px solid #007bff; /* Borde azul */
}

body.dark-mode .sobre-mi-text {
    color: #ffffff; /* Texto blanco */
}
.paint-item {
    text-align: left;
    padding-left: 2rem; /* Opcional: añade un relleno interno */
    padding-right: 2rem; /* Opcional: añade un relleno interno */
}

.habilidades-mobile {
    display: none;
    padding: 1rem;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin: 2rem auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    max-width: 1000px;
    text-align: center;
    transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.habilidades-mobile h2 {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 1rem;
    margin-left: 1rem;
}

.habilidades-mobile .skills-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.habilidades-mobile .skill-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.habilidades-mobile .skill-icon {
    width: clamp(30px, 5vw, 50px); /* Ajusta el tamaño entre 30px y 50px */
    height: clamp(30px, 5vw, 50px); /* Ajusta el tamaño entre 30px y 50px */
}

/* Estilo para modo oscuro */
body.dark-mode .habilidades-mobile {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro con 50% de opacidad */
    color: #ffffff; /* Texto blanco */
    border: 2px solid #007bff; /* Borde oscuro */
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1); /* Sombra clara */
}

body.dark-mode .habilidades-mobile h2 {
    color: #007bff;
}

body.dark-mode .habilidades-mobile .skill-icon {
    filter: brightness(0.8); /* Ajusta el brillo de los íconos en modo oscuro */
}

@media (max-width: 1600px) {
    .info-box {
        display: none;
    }

    .photo-outside {
        display: none;
    }

    .habilidades-mobile {
        display: block;
    }

    .skills-slider {
        animation: none; /* Desactiva el scroll automático en móviles */
    }
}

@media (max-width: 1200px) {
    .habilidades-mobile .skill-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .habilidades-mobile .skill-icon {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .habilidades-mobile .skill-icon {
        width: 20px;
        height: 20px;
    }
}


.certificates-modern {
    text-align: center;
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 12px;
    margin: 1rem auto;
    max-width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.certificates-modern .certificates-header h2 {
    color: #007bff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.certificates-modern .carousel-track-container {
    overflow: hidden;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.certificates-modern .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.certificates-modern .carousel-slide {
    flex: 0 0 100%; /* Cada slide ocupa el 100% del ancho */
    list-style: none;
    text-align: center;
}

.certificates-modern .carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.certificates-modern .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.certificates-modern .indicator {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.certificates-modern .indicator.active {
    background-color: #007bff;
}

.certificates-modern .indicator:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .certificates-modern .certificates-header h2 {
        font-size: 1.5rem;
    }

    .certificates-modern .carousel-slide img {
        border-radius: 8px;
    }

    .certificates-modern .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Ocultar certificates-modern en pantallas grandes (PC) */
@media (min-width: 769px) {
    #certificates-modern {
        display: none;
    }
}

/* Ocultar certificates en pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    #slider {
        display: none;
    }
}

@media (max-width: 768px) {
    .slider-header {
        display: none;
    }
}

/* Ocultar los botones del slider en dispositivos móviles */
@media (max-width: 768px) {
    .slider-buttons {
        display: none !important; /* Asegúrate de que esta regla tenga prioridad */
    }
}

@media (max-width: 768px) {
    .certificados-mobile {
        padding: 20px;
        text-align: center;
    }
    .certificados-container-mobile img.mobile-certificado {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
}

#slider{
    margin: 0 auto;
    width: 800px;
    height: 500px;
    overflow:hidden;
    background-color: black;
}
/*Valores de las imagenes*/
#slider img{
    margin: 0 auto;
    -moz-transition: opacity 2s;
    -webkit-transition: opacity 2s;
    transition: opacity 2s;
    width: 800px;
    height: 500px;
    position: absolute;
    opacity: 0;
}
/*Para que la primera imagen este activa al inicio*/
#slider img:nth-child(1){
    opacity: 1;
}

.slider-header h2 {
    text-align: center;
    color: #007bff;
    font-size: 3rem;
    margin: 10;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}
    .slider-header h2 {
        text-align: center;
        color: #007bff;
        font-size: 4rem;
        margin: 0;
        font-weight: 900;
    }
    

.slider-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -440px;
}

.slider-buttons button {
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-buttons button.active {
    background-color: #007bff;
}

.slider-buttons button:hover {
    background-color: #0056b3;
}

table{
    margin: 0 auto;
    width: 800px;
    height: auto;
    overflow:hidden;
    background-color: white;
    border: 0;
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #252525;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #007bff, #0056b3);
    border-radius: 10px;
    border: 4px solid #252525;
}

@import url("https://use.fontawesome.com/releases/v6.4.0/css/all.css");
@import url("https://fonts.googleapis.com/css?family=Poppins");

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: #ffffff;
    color: #333333;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 20px;
    background-color: #333;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease-in-out;
}

.logo img:hover {
    transform: scale(1.2);
}

.logo-text {
    color: lightgray;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
    text-align: center;
    border-radius: 15px;
    padding: 5px 10px;
    font-family: 'Overwave', cursive;
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 13%;
    transform: translate(-50%, -50%);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1100;
}

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.navigation ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation ul li {
    margin: 0 10px;
}

.navigation a {
    text-decoration: none;
    color: #3283ec;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.navigation a:hover {
    transform: scale(1.2);
    color: #00bcd4;
}

.navigation .icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #3283ec;
    transition: transform 0.3s ease, color 0.3s ease;
}

.navigation a:hover .icon {
    transform: scale(1.2);
    color: #00bcd4;
}

.navigation .text {
    font-size: 14px;
    opacity: 1;
    margin-top: 5px;
    position: relative;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navigation .icon {
    position: relative;
    display: block;
    line-height: 75px;
    font-size: 24px;
    text-align: center;
    transition: 0.5s;
    margin-bottom: 5px;
}

li .active a.icon {
    transform: translateY(-35px);
}

.navigation .text {
    position: absolute;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: 0.5s;
    opacity: 0;
    transform: translateY(20px);
    color: #3283ec;
    transition: opacity 0.3s ease;
}

.navigation a:hover .text {
    opacity: 1;
    transform: translateY(0);
}

li.active a.text {
    opacity: 1;
    transform: translateY(10px);
}

.indicator {
    position: absolute;
    top: -50px;
    width: 70px;
    height: 70px;
    background: blue;
    box-sizing: border-box;
    border-radius: 50%;
    border: 6px solid #222327;
    transition: 0.5s;
}

.indicator::before,
.indicator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: transparent;
}

.indicator::before {
    left: -22px;
    border-top-right-radius: 20px;
    box-shadow: 1px -10px 0 0 #222327;
}

.indicator::after {
    right: -22px;
    border-top-left-radius: 20px;
    box-shadow: -1px -10px 0 0 #222327;
}

li.active .indicator {
    --x: 0;
    transform: translateX(var(--x));
}

li:nth-child(2).active ~ .indicator {
    --x: 70px;
}

li:nth-child(3).active ~ .indicator {
    --x: 140px;
}

li:nth-child(4).active ~ .indicator {
    --x: 210px;
}

li:nth-child(5).active ~ .indicator {
    --x: 280px;
}

.tooltip {
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navigation a:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-10px);
}

.logo-text {
    color: lightgray;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
    text-align: center;
    border-radius: 15px;
    padding: 5px 10px;
    font-family: 'Overwave', cursive;
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 13%;
    transform: translate(-50%, -50%);
}

.language-menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.language-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    border-radius: 5px;
    z-index: 1000;
    text-align: center;
}

.language-dropdown li {
    margin: 0;
}

.language-dropdown a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    transition: color 0.3s, background 0.3s;
}

.language-menu:hover .language-dropdown {
    display: block;
}

.language-dropdown a:hover {
    background-color: #444;
}

.language-dropdown a.language-es:hover {
    color: #c60b1e;
    background: linear-gradient(to right, #c60b1e, #ffc400);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.language-dropdown a[href="/en"]:hover {
    color: #00247d;
    background: linear-gradient(to right, #00247d, #ffffff, #cf142b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.language-dropdown a[href="/pt"]:hover {
    color: #006600;
    background: linear-gradient(to right, #006600, #ffcc00, #ff0000);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.language-toggle {
    text-decoration: none;
    font-family: 'Hey Comic', cursive;
    font-size: 20px;
    color: white;
    transition: color 0.3s;
    cursor: pointer;
}

.language-toggle:hover {
    animation: flag-colors 3s infinite;
}

@keyframes flag-colors {
    0% {
        color: #c60b1e;
        background: linear-gradient(to right, #c60b1e, #ffc400);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    33% {
        color: #00247d;
        background: linear-gradient(to right, #00247d, #ffffff, #cf142b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    66% {
        color: #006600;
        background: linear-gradient(to right, #006600, #ffcc00, #ff0000);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    100% {
        color: #c60b1e;
        background: linear-gradient(to right, #c60b1e, #ffc400);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.image-container {
    position: relative;
    width: 100%;
    display: block;
    text-align: center;
}

#animated-text {
    position: static;
    animation: none;
}

@keyframes move-left {
    0% {
        left: 100%;
    }
    40% {
        left: 50%;
        transform: translateX(-50%);
    }
    60% {
        left: 50%;
        transform: translateX(-50%);
    }
    100% {
        left: -100%;
    }
}

.custom-button {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, #0573e7, #01abee);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.custom-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transform: skewX(-25deg);
    transition: all 0.5s ease;
    z-index: -1;
}

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

.custom-button:hover {
    background: linear-gradient(90deg, #71b5f5, #3093fd);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.custom-button:active {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

.theme-toggle i {
    display: inline-block;
    vertical-align: middle;
}

.theme-toggle:hover {
    color: #00bcd4;
}

.theme-toggle {
    background: none;
    border: none;
    color: #3283ec;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    color: #00bcd4;
}

.theme-toggle .icon {
    font-size: 24px;
}

.theme-toggle .tooltip {
    font-size: 14px;
    color: #ffffff;
    background-color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    top: 50px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover .tooltip {
    opacity: 1;
}

.navigation li {
    margin: 0 25px;
    position: relative;
}

.navigation ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .header {
    background-color: #1e1e1e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

body.dark-mode .navigation a {
    color: #ffffff;
}

body.dark-mode .navigation a:hover {
    color: #00bcd4;
}

body.dark-mode .theme-toggle {
    color: #f1c40f;
}

body.dark-mode .sobre-mi,
body.dark-mode .info-box,
body.dark-mode .proyectos {  
    background-color: rgba(0, 0, 0, 0.747); 
    color: #ffffff; 
    border: 2px solid #007bff; 
}

body.dark-mode .sobre-mi-mobile {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
    color: #ffffff; /* Texto blanco */
    border: 2px solid #007bff; /* Borde azul */
    padding: 1rem; /* Espaciado interno */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Sombra */
}

body.dark-mode .sobre-mi-mobile p {
    color: #ffffff; /* Asegura que los párrafos tengan texto blanco */
}

.sobre-mi,
.info-box,
.proyectos,
.contacto-card {
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco */
    color: #333333; /* Texto negro */
    border: 2px solid rgba(221, 221, 221, 0.2); /* Borde gris */
}

.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    background: none;
}

.photo-outside {
    position: absolute;
    top: 1055px;
    right: 190px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: inherit; /* Se iguala al fondo del contenedor */
    z-index: 10;
}

body.dark-mode .photo-outside {
    background-color: inherit; /* En modo oscuro, usa también el fondo definido */
}

@media (max-width: 880px) {
    .menu-toggle {
        display: block;
    }

    .navigation {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 40px;
        left: 0;
        width: 100%;
        height: 50vh;
        overflow-y: auto;
        background-color: #333;
        border-bottom-left-radius: 50px;
        border-bottom-right-radius: 50px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .navigation.active {
        display: flex;
    }

    .navigation ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .navigation li {
        margin: 15px 0;
    }

    .animated-text-container,
    .custom-button,
    .logo-text {
        display: none;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .theme-toggle {
        margin: 0;
    }

    .navigation .text {
        opacity: 1;
        transform: translateY(0);
        position: static;
        transition: none;
    }

    .navigation a:hover .text {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1400px) {
    .logo-text {
        display: none;
    }
}

@media (max-width: 768px) {
    #slider {
        width: 95vw !important;
        height: 45vw !important;
        min-width: 0;
        min-height: 0;
        max-width: 98vw;
        max-height: 60vw;
        position: relative;
        background: #000;
        border-radius: 10px;
    }
    #slider img {
        width: 95vw !important;
        height: 45vw !important;
        max-width: 98vw;
        max-height: 60vw;
        left: 0 !important;
        top: 0 !important;
        border-radius: 10px;
        position: absolute;
        object-fit: contain;
    }
    .slider-header h2 {
        font-size: 2rem !important;
    }
    .slider-buttons {
        margin-top: 10px !important;
        position: static !important;
        display: flex !important;
        justify-content: center;
        gap: 10px;
    }
    .slider-buttons button {
        width: 16px;
        height: 16px;
        margin: 0 2px;
    }
}

@media (max-width: 768px) {
    .certificates-modern .carousel-track-container {
        overflow: hidden;
        width: 100vw;
        max-width: 100vw;
        margin: 0 auto;
    }
    .certificates-modern .carousel-track {
        display: flex;
        transition: transform 0.5s;
        gap: 0;
    }
    .certificates-modern .carousel-slide {
        flex: 0 0 100vw;
        max-width: 100vw;
        min-width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    .certificates-modern .carousel-slide img {
        width: 90vw;
        max-width: 320px;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        margin: 0 auto;
    }
    .certificates-modern .carousel-indicators {
        gap: 0.3rem;
        margin-top: 0.5rem;
        justify-content: center;
        display: flex;
    }
    .certificates-modern .indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #bbb;
        border: none;
        margin: 0 2px;
        padding: 0;
    }
    .certificates-modern .indicator.active {
        background: #3283ec;
    }
}

@media (max-width: 768px) {
    #certificados-movil {
        display: block;
        width: 100vw;
        margin: 0 auto;
    }
    .certificados-movil .certificado-img-container {
        width: 90vw;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
    }
    .certificados-movil img {
        width: 90vw;
        max-width: 320px;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        margin: 0 auto;
        display: block;
    }
    .certificados-movil .certificados-indicadores {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .certificados-movil .cert-indicador {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #bbb;
        border: none;
        padding: 0;
    }
    .certificados-movil .cert-indicador.active {
        background: #3283ec;
    }
    /* Oculta el carrusel grande en móvil */
    .certificates-modern {
        display: none !important;
    }
    .slider-buttons {
        display: none !important;
    }
    
}

.certificados-movil {
    display: none;
}

.logo-text {
    color: lightgray;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
    text-align: center;
    border-radius: 15px;
    padding: 5px 10px;
    
    /* AQUI ESTÁ LA MAGIA */
    font-family: 'Poppins', sans-serif; /* Usamos la fuente buena */
    font-weight: 700; /* 700 es negrita, 900 es muy gorda. Prueba cual te gusta más */
    font-size: 18px;
    letter-spacing: 0.5px; /* Un pelín de espacio para que respire */
    
    position: absolute;
    top: 50%;
    left: 13%;
    transform: translate(-50%, -50%);
}

@media (max-width: 1024px) {
    .logo-text {
        display: none !important;
    }
}

/* --- ARREGLO DE BOTONES MONTADOS --- */

/* 1. Posicionamos LA CAJA entera, no los botones sueltos */
.contact-actions {
    position: absolute;   /* La caja flota sobre la imagen */
    top: 80%;            /* La bajamos al sitio correcto */
    left: 50%;           /* La centramos horizontalmente */
    transform: translate(-50%, -50%); /* Ajuste fino del centro */
    
    display: flex;       /* Activamos el modo fila */
    align-items: center; /* Alineados verticalmente */
    justify-content: center; /* Centrados horizontalmente */
    gap: 20px;           /* Espacio entre botones (clave para que no se peguen) */
    
    width: 100%;         /* Para asegurar que cabe todo */
    z-index: 20;         /* Por encima de todo */
}

/* 2. Reseteamos los botones para que dejen de pelearse por el centro */
.contact-actions .custom-button {
    position: relative !important; /* Ya no son absolutos */
    top: auto !important;
    left: auto !important;
    transform: none !important;    /* Quitamos el centrado individual */
    margin: 0 !important;          /* Quitamos márgenes raros */
}

/* 3. Arreglamos el contenedor del icono de LinkedIn */
.contact-actions .social-icons {
    margin: 0 !important; /* Quitamos ese margen de 150px que tenías antes */
    display: flex;
    align-items: center;
}

.caja-botones {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.caja-botones .custom-button-alt {
    font-size: 16px;
    padding: 10px 14px;
}

/* En móvil, ocultamos la caja entera para que no moleste */
@media (max-width: 950px) {
    .contact-actions {
        display: none !important;
    }
}