@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body{
    background-color: black;
    background-image: url('Images/Background.png');
    background-size: cover; /* Ajusta la imagen al fondo sin cortarla */
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

/* ordenar testo*/
.justify-text {
    text-align: justify;
    max-width: 750px; /* Limita el ancho para mejorar la lectura */
    margin: 0 auto; /* Centra el párrafo */
    line-height: 1.6; /* Mejora la legibilidad */
}

/* Navbar */
.navbar {
    background-color: #0D0D0D;
    padding: 10px 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0D0D0D;
}

/* Logo de la empresa */
.nav-logo {
    width: 50px; /* Ajusta el tamaño del logo */
    height: auto;
    border-radius: 50%;
}

/* Estilos del menú de navegación */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-item a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-left{
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Sección principal (Hero) */
.hero {
    text-align: center;
    padding: 90px 20px;
}

/* Primer diseño: Fondo negro con bordes blancos */
.radio-black {
    width: 10px; /* Se adapta al contenido */
    height: auto; /* Se adapta al contenido */
    padding: 4px 13px; /* Aumenta el espacio interno */
    border-radius: 20px; /* Bordes más redondeados */
    font-size: 14px; /* Ajuste del tamaño del texto */
    border-radius: 8.8%;
    background-color: black;
    border: 1px solid white;
}

.radio-black:hover {
    background-color: white;
    color: #000;
}

/* Segundo diseño: Fondo blanco con tipografía negra */
.radio-white {
    width: auto; /* Se adapta al contenido */
    height: auto; /* Se adapta al contenido */
    padding: 6px 17px; /* Aumenta el espacio interno */
    border-radius: 20px; /* Bordes más redondeados */
    font-size: 14px; /* Ajuste del tamaño del texto */
    border-radius: 8.8%;
    background-color: white;
    border: 1px solid black;
    color: black;
}

.radio-white:hover {
    background-color: black;
    color: white;
    border: 1px solid white;
}
/*Botón de idiomas*/
 /* Contenedor del botón desplegable */
 .dropdown {
    position: relative;
    display: inline-block;
}

/* Estilo del botón (modo oscuro) */
.dropdown-button {
    background: linear-gradient(to bottom, #1e1e1e, #292929);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0px 3px 6px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-button:hover {
    background: linear-gradient(to bottom, #292929, #3a3a3a);
    box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.15);
}

/* Contenido desplegable */
.dropdown-content {
    display: none;
    position: absolute;
    background: #1c1c1e;
    min-width: 140px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

/* Elementos dentro del menú */
.dropdown-content a {
    color: white;
    padding: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background 0.2s ease-in-out;
}

.dropdown-content a img {
    width: 15px;
    height: 12px;
    margin-right: 10px;
    border-radius: 2px;
}

/* Efecto hover en los idiomas */
.dropdown-content a:hover {
    background: #2c2c2e;
}

/* Mostrar el menú al pasar el mouse */
.dropdown:hover .dropdown-content {
    display: block;
}
/* Imagen del icono con marco de gradiente */
.hero-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #FF8660, #8000FF);
    padding: 5px;
}

.hero-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Títulos */
.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 5px;
}

/* Descripción con espacios */
.hero-description {
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Secciones generales */
section {
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-top: 5px;
    margin-bottom: 30px;
}

/* Espaciado entre párrafos */
.about-description,
.projects-description,
.contact-description {
    margin-bottom: 20px;
}

.about-text {
    margin-bottom: 15px;
}

.about-call {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 25px;
}

.projects-call {
    font-size: 1.2rem;
    margin-top: 25px;
}

/* Galería de proyectos */
.projects-gallery {
    display: flex;
    justify-content: center;
    align-items: center; /* Centra verticalmente si es necesario */
    width: 100%;
    padding: 20px 0;
    position: relative;
    gap: 15px;
    margin-top: 20px;
    padding-bottom: 4%;
}

/* Contenedor con efecto de brillo */
.project-link {
    display: inline-block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

/* Efecto de brillo con gradiente detrás */
.project-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FF8660, #8000FF);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 2; /* Elevar el brillo */
}

.project-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    border-radius: 10px;
    position: relative;
    z-index: 3; /* Asegurar que la imagen esté encima */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hover: Iluminación y efecto de zoom */
.project-link:hover::before {
    opacity: 0.6; /* Ajusta la opacidad del brillo */
    z-index: 1; /* Mantener el brillo detrás */
}

/* Efecto de zoom y sombra en hover */
.project-link:hover .project-img {
    transform: scale(1.05);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
}

/* Formulario de contacto */
.contact-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    border: 2px solid #202024;
    border-radius: 10px;
    transition: box-shadow 0.3s ease-in-out;
}

.contact-form:focus-within {
    box-shadow: 0 0 10px #FF8660, 0 0 20px #8000FF;
}

.form-label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 2px solid #202024;
    border-radius: 5px;
    background-color: black;
    color: white;
    transition: box-shadow 0.3s ease-in-out, border 0.3s ease-in-out;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border: 2px solid transparent;
    box-shadow: 0 0 10px #FF8660, 0 0 20px #8000FF;
}

/* Placeholder con efecto tipo Apple */
.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.form-textarea {
    height: 100px;
}

/* Botones */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid transparent;
    border-radius: 50px; /* Forma de píldora */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Botón Contact Me */
.btn-contact {
    background-color: black;
    color: white;
    border: 2px solid white;
    margin-top: 30px;
}

.btn-contact:hover {
    background-color: white;
    color: black;
}

/* Gradiente reutilizable */
.gradient-bg {
    background: linear-gradient(45deg, #FF8660, #8000FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*Estilos de carrusel*/
.carousel {
    max-width: 90%;
    position: relative;
    width: 300px;
    height: auto;
    overflow: hidden;
    margin: auto;
    border-radius: 10px;
}

.carousel-track {
    height: 200px;
    width: fit-content;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    margin: 0 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Estilos de footer */
.footer {
    text-align: center; /* Centra todo el contenido */
    padding: 40px 20px;
    background-color: #0D0D0D;
    color: white;
}

.footer-logo {
    width: 80px;  /* Más pequeña que la del hero */
    height: 80px;
    border-radius: 50%; /* Hace que la imagen sea redonda */
    object-fit: cover; /* Asegura que la imagen se recorte bien */
    display: block;
    margin: 0 auto 10px; /* Centra la imagen */
}

.footer-title {
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
    padding-bottom: 70px;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

/* Efecto hover con el gradiente */
.footer-icons a:hover {
    background: linear-gradient(45deg, #FF8660, #8000FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.2);
}

/* Estilos específicos para la página de "Thank You" */
.thanks-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Usa toda la altura de la pantalla */
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
}

/* Botón estilo iPhone */
.thanks-button {
    margin-top: 20px;
    padding: 12px 24px;
    border-radius: 50px; /* Forma de pastilla */
    border: 2px solid white;
    background-color: black;
    color: white;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}
/* Hover con gradiente */
.thanks-button:hover {
    background-color: white;
    color: black;
}

/* Menú hamburguesa */
.menu-button {
    display: none; /* Se oculta por defecto */
}

/* Responsividad con menú estilo iPhone */
@media screen and (max-width: 768px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background-color: #0d0c0c;
        position: relative;
    }

    .nav-left {
        display: flex;
        align-items: center;
    }

    .dropdown {
        margin-left: 15px;
    }

    /* Ocultar menú en móvil por defecto */
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 60px;
    }

    .nav-menu.open {
        display: flex;
        transform: translateX(0);
    }

    .nav-menu a {
        color: white;
        text-decoration: none;
        font-size: 1.5rem;
        margin: 15px 0;
    }

    /* Menú hamburguesa */
    .menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 20px;
        border: none;
        color: white;
        font-size: 1.8rem;
        z-index: 1000;
    }

    /* 🛠 Ajustes para los proyectos en móvil */
    .projects-gallery {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Espaciado entre los proyectos */
    }

    .project-img {
        width: 100%;
        max-width: 300px;
    }

    /* Restaurando el diseño original en escritorio */
    @media screen and (min-width: 769px) {
        .nav-menu {
            display: flex;
            flex-direction: row;
            gap: 15px;
            position: static;
            transform: none;
            height: auto;
            background: none;
            padding-top: 0;
        }

        .menu-button {
            display: none;
        }
    }
}
