/* ==================================================
   1. Reset & configuración base
================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #000;
    color: #fff;
    font-family: "Oswald", sans-serif;
}


/* ==================================================
   2. Enlaces globales
================================================== */

a {
    color: #69C0AF;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover,
a:focus-visible {
    color: #ffffff;
    opacity: 0.9;
}


/* ==================================================
   3. Navegación principal
================================================== */

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;

    width: 100%;
    padding: 10px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: #000;
}


/* ==================================================
   4. Contenedores de menú
================================================== */

.left-menu,
.right-menu {
    display: flex;
    align-items: center;
}

.right-menu {
    margin-right: 20px;
}


/* ==================================================
   5. Logo
================================================== */

.logo {
    margin: 0 20px;
}


/* ==================================================
   6. Listas de navegación
================================================== */

.nav-links,
.contact-link {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li,
.contact-link li {
    margin-right: 20px;
}


/* ==================================================
   7. Enlaces de navegación
================================================== */

.nav-links a,
.contact-link a {
    position: relative;
    color: #fff;
    font-family: "Oswald", sans-serif;
}


/* ==================================================
   8. Subrayado animado (hover)
================================================== */

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;

    width: 100%;
    height: 3px;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}


/* ==================================================
   9. Colores por sección
================================================== */

.inicio::after {
    background-color: #E6135A;
}

.sobre-mi::after {
    background-color: #69C0AF;
}

.trabajos::after {
    background-color: #FDC415;
}

.contacto::after {
    background-color: lightgray;
}


/* ==================================================
   10. Estados hover
================================================== */

.nav-links a:hover::after {
    transform: scaleX(1);
}

.inicio:hover {
    color: #E6135A;
}

.sobre-mi:hover {
    color: #69C0AF;
}

.trabajos:hover {
    color: #FDC415;
}

.contacto:hover {
    color: lightgray;
}

/* ==================================================
   1. Menú hamburguesa (base)
================================================== */

.menu-icon {
    display: none;               /* Visible solo en móvil */
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}


/* ==================================================
   2. Responsive: Tablets y móviles
================================================== */

@media (max-width: 768px) {

    /* ----- Navegación ----- */

    .navigation {
        padding: 10px 0;
    }

    /* ----- Menú principal ----- */

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;

        width: 100%;
        padding: 0;

        display: none;
        flex-direction: column;
        align-items: center;

        background-color: #000;
        text-align: center;
    }

    .nav-links.show-menu {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    /* Ocultar contacto cuando el menú móvil está activo */
    .contact-link {
        display: none;
    }

    /* ----- Icono hamburguesa ----- */

    .menu-icon {
        display: block;
        margin-left: auto;
        margin-right: 10px;
    }

    /* ----- Layout general ----- */

    .container {
        padding: 0 20px;
    }

    .left-menu {
        width: 100%;
        justify-content: center;
    }

    .logo {
        margin: 0;
    }

    /* ----- Tipografía y botones ----- */

    .name {
        font-size: 3rem;
    }

    .button {
        padding: 8px 16px;
        font-size: 1rem;
    }

    .hello {
        font-size: 1.2rem;
    }
}


/* ==================================================
   3. Responsive: Móviles pequeños
================================================== */

@media (max-width: 480px) {

    .name {
        font-size: 2rem;
    }

    .button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .social-icons a {
        font-size: 1.5rem;
    }
}

/* ==================================================
   1. Contenedor principal (Hero)
================================================== */

.container {
    position: relative;
    width: 100%;
    height: 80vh;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding-left: 20px;
    text-align: left;
}


/* ==================================================
   2. Sección Inicio (Background)
================================================== */
.seccion-inicio {
    height: 90vh;
    min-height: 90vh;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding-left: 20px;
    text-align: left;

    color: #fff;

    background-image: url("/Recursos/FONDO.svg");
    background-repeat: repeat;
    background-size: 180% auto;
    background-position: 100% 0%;

    animation: fondoDiagonal 40s linear infinite;
}

@keyframes fondoDiagonal {
    from {
        background-position: 100% 0%;
    }
    to {
        background-position: 0% 100%;
    }
}




/* ==================================================
   3. Tipografía principal
================================================== */

.name {
    font-size: 5rem;
    font-weight: 700;
    margin: 0;
}

.hello {
    font-size: 2rem;
    font-weight: 300;
    margin: 0 0 20px;
}


/* ==================================================
   4. Indicador de scroll
================================================== */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);

    width: 32px;
    height: 48px;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    border: 2px solid #fff;
    border-radius: 20px;

    cursor: pointer;
    opacity: 0.85;
}

.scroll-indicator span {
    width: 6px;
    height: 6px;

    margin-top: 8px;

    background-color: #fff;
    border-radius: 50%;

    animation: scrollDown 1.6s infinite;
}


/* Animación scroll */
@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(18px);
    }
}


/* ==================================================
   5. Botones
================================================== */

.button {
    margin-top: 20px;
    padding: 15px 30px;

    font-size: 1rem;
    font-weight: 500;

    color: #fff;
    background-color: #1e90ff;

    border: none;
    border-radius: 5px;
    cursor: pointer;

    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #555;
    transform: translateY(-2px);
}

/* Botón Descargar CV */
.descargar-cv {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
}

.descargar-cv:hover {
    background-color: #555;
    color: #fff;
}


/* ==================================================
   6. Responsive
================================================== */

@media (max-width: 768px) {

    .name {
        font-size: 3rem;
    }

    .hello {
        font-size: 1.4rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
        width: 28px;
        height: 42px;
    }
}

.hello::after {
    content: "|";
    margin-left: 6px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

    
/* ==================================================
   SECCIÓN SOBRE MÍ
================================================== */
.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 20px;
    background-color: #ffffff;
    color: #000;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1850px;
    width: 100%;
}

.about-photo {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto 20px;
    display: block;
}


.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 10px;
    text-align: justify;
}

/* Botón */
.button-container {
    text-align: center;
    margin-top: 20px;
}

.about-button {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #69C0AF;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.about-button:hover {
    background-color: #4d897d;
}

/* ==================================================
   CERTIFICACIONES / EXPERIENCIA / EDUCACIÓN
================================================== */
.certification-box,
.experience-box,
.education-box {
    padding: 20px;
    margin: 10px 0;
    border-radius: 10px;
    background-color: #000;
    border-top: 5px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.certification-box {
    border-top-color: #E6135a;
}

.experience-box {
    border-top-color: #69C0AF;
}

.education-box {
    border-top-color: #FDC415;
}

.qualification__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.education-container,
.experience-container,
.certifications-container {
    padding: 20px;
    margin-bottom: 20px;
}

/* Grid certificaciones */
.certifications__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.certifications__img-wrapper {
    width: 380px;
    height: 380px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.certifications__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-button.secondary {
    background-color: transparent;
    color: #69C0AF;
    border: 2px solid #69C0AF;
}

.about-button.secondary:hover {
    background-color: #69C0AF;
    color: #fff;
}

.hidden {
    display: none !important;
}


/* ==================================================
   SECCIÓN TRABAJOS
================================================== */
.trabajos-section {
    padding: 100px 20px;
    background-color: #000;
    color: #fff;
}

.trabajos-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
}

.trabajos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trabajos-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.trabajo-item {
    width: calc(33.33% - 40px);
    margin: 20px;
    padding: 10px;
    text-align: center;
    background-color: #1c1c1c;
    border: 3px solid #FDC415;
    border-radius: 10px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.trabajo-item:hover {
    transform: scale(1.05);
    border-color: #b19216;
}

.trabajo-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.trabajo-titulo {
    font-size: 1.5rem;
    color: #fff;
}

.ver-mas-button {
    padding: 10px 20px;
    background-color: #FDC415;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}

.ver-mas-button:hover {
    background-color: #e0b711;
}

/* ==================================================
   MEDIA QUERIES
================================================== */

/* Tablets y desktop */
@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: center;
        margin-left: 40px;
    }

    .about-photo {
        margin-right: 40px;
        margin-bottom: 0;
    }

    .about-text {
        max-width: 70%;
        margin-left: 15%;
        margin-right: 15%;
        text-align: left;
    }
}

/* Tablets */
@media screen and (max-width: 768px) {
    .certifications__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil */
@media screen and (max-width: 480px) {
    .certifications__container {
        grid-template-columns: 1fr;
    }

    .certifications__img-wrapper {
        width: 280px;
        height: 280px;
    }
}

/* ==================================================
   SECCIÓN TRABAJOS
================================================== */
.trabajos-section {
    padding: 100px 20px;
    background-color: #000;
    color: #fff;
}

.trabajos-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 40px;
}

.trabajos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==================================================
   GRID DE TRABAJOS
================================================== */
.trabajos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================================================
   ITEM / CARD CLÁSICA (versión antigua)
================================================== */
.trabajos-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.trabajo-item {
    width: calc(33.33% - 40px);
    margin: 20px;
    padding: 10px;
    text-align: center;
    background-color: #1c1c1c;
    border: 3px solid #FDC415;
    border-radius: 10px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.trabajo-item:hover {
    transform: scale(1.05);
    border-color: #b19216;
}

.trabajo-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.trabajo-titulo {
    font-size: 1.5rem;
    color: #fff;
}

/* ==================================================
   CARD MODERNA
================================================== */
.trabajo-card {
    background-color: #1c1c1c;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #2a2a2a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trabajo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Imagen */
.trabajo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Contenido */
.trabajo-content {
    padding: 1.2rem;
}

.trabajo-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.trabajo-content p {
    font-size: 0.95rem;
    color: #cfcfcf;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ==================================================
   BOTONES
================================================== */
.button-container {
    text-align: center;
    margin-top: 20px;
}

.ver-mas-button {
    padding: 10px 20px;
    background-color: #FDC415;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.ver-mas-button:hover {
    background-color: #e0b711;
}

.trabajo-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.trabajo-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Variantes de color */
.trabajo-btn.rojo {
    background-color: #E6135A;
}

.trabajo-btn.verde {
    background-color: #69C0AF;
}

.trabajo-btn.amarillo {
    background-color: #FDC415;
}

/* ==================================================
   TAGS
================================================== */
.trabajo-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.trabajo-tag.rosa {
    background-color: #E6135A;
    color: #fff;
}

.trabajo-tag.verde {
    background-color: #69C0AF;
    color: #0f2f2a;
}

.trabajo-tag.amarillo {
    background-color: #FDC415;
    color: #3a2a00;
}

/* ==================================================
   UTILIDADES
================================================== */
.hidden {
    display: none;
}

/* ==================================================
   RESPONSIVE
================================================== */

/* Tablets */
@media (max-width: 992px) {
    .trabajos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .trabajos-grid {
        grid-template-columns: 1fr;
    }

    .trabajo-card {
        margin: 0 auto;
    }

    .trabajo-content h3 {
        font-size: 1.3rem;
    }

    .trabajo-content p {
        font-size: 0.95rem;
    }

    .trabajo-btn {
        width: 100%;
        text-align: center;
    }
}

/* Ajustes generales mobile */
@media (max-width: 768px) {
    .name {
        font-size: 4rem;
    }

    .hello {
        font-size: 1.5rem;
    }
}

/* ==================================================
   SECCIÓN CONTACTO
================================================== */
.contact-section {
    padding: 100px 20px;
    background-color: #fff;
    color: #000;
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 40px;
}

/* ==================================================
   REDES SOCIALES
================================================== */
.social-category {
    margin: 60px 0 25px;
    font-size: 2rem;
    text-align: center;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.social-card {
    padding: 30px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.social-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.social-card h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.social-card p {
    font-size: 1rem;
    opacity: 0.85;
}

/* ==================================================
   COLORES DE REDES
================================================== */
.instagram-art { background: linear-gradient(135deg, #E1306C, #F77737); }
.behance        { background: linear-gradient(135deg, #1769FF, #003ECB); }
.artstation     { background: linear-gradient(135deg, #13AFF0, #0A3E5F); }
.youtube        { background: linear-gradient(135deg, #FF0000, #B31217); }
.vimeo          { background: linear-gradient(135deg, #1AB7EA, #0077A2); }
.tiktok         { background: linear-gradient(135deg, #000000, #69C9D0); }
.linkedin       { background: linear-gradient(135deg, #0077B5, #004471); }
.email          { background: linear-gradient(135deg, #333, #000); }

/* ==================================================
   RESPONSIVE
================================================== */

/* Tablets */
@media (max-width: 1024px) {
    .contact-form {
        padding: 0 15px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-photo {
        margin-bottom: 20px;
    }

    .trabajo-item {
        width: 80%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .contact-section {
        padding: 50px 20px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-form {
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        width: calc(100% - 30px);
    }

    .submit-button {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-description {
        font-size: 1rem;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .contact-title {
        font-size: 1.5rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        width: calc(100% - 20px);
    }

    .submit-button {
        padding: 8px 12px;
    }
}
/* ==================================================
   FOOTER
================================================== */
.site-footer {
    padding: 40px 20px;
    background-color: #000;
    color: #fff;
    text-align: center;
}

/* ==================================================
   REDES SOCIALES
================================================== */
.footer-social ul {
    margin: 20px 0;
    padding: 0;
    list-style: none;

    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social a {
    color: #fff;
    font-size: 1.8rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* ==================================================
   CONTACTO FOOTER
================================================== */
.footer-contact a {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
}
