/* ============================== BASE GENERAL ============================== */
/* ============================== BASE GENERAL ============================== */
/* ============================== BASE GENERAL ============================== */
/* ============================== BASE GENERAL ============================== */
/* ============================== BASE GENERAL ============================== */
/* ============================== BASE GENERAL ============================== */
/* ============================== BASE GENERAL ============================== */
/* ============================== BASE GENERAL ============================== */
/* ============================== BASE GENERAL ============================== */
/* ============================== BASE GENERAL ============================== */

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #111111;
    color: #ffffff;
    letter-spacing: 0.03rem;
    line-height: 1.6rem;
    scroll-behavior: smooth;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.15;
    pointer-events: none;
    animation: blobFloat 20s ease-in-out infinite;
}

body::before {
    width: 400px;
    height: 400px;
    background: #6C63FF;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

body::after {
    width: 300px;
    height: 300px;
    background: #183A5F;
    bottom: -100px;
    right: -50px;
    animation-delay: 10s;
}

/* Extra elemento decorativo opcional */
.blob-yellow {
    position: fixed;
    top: 60%;
    left: 30%;
    width: 250px;
    height: 250px;
    background: #FFC736;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.07;
    z-index: -1;
    animation: blobFloat 35s ease-in-out infinite;
    pointer-events: none;
}

/* Animación flotante */
@keyframes blobFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-40px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}


html {
    font-size: 62.5%; /* 1rem = 10px */
}


/* ==========  HEADER ==========  */
/* ==========  HEADER ==========  */
/* ==========  HEADER ==========  */
/* ==========  HEADER ==========  */
/* ==========  HEADER ==========  */

header {
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;   
}

header nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(10, 10, 10, 0.5); /* Fondo semi-transparente */
    backdrop-filter: blur(2rem); /* Efecto de cristal */
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.1);
    height: 7rem;
}

.logo {
    height: 100%;
}

.logo img {
    height: 85%;
    display: block;
}

.nav-links {
    display: none;
}

.contact {
    display: none;
}


/* ========== HERO ========== */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 4rem;
    margin-top: 10rem;
    gap: 2rem;
}

.hero-content h1 {
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 0.04rem;
    line-height: 3.5rem;
    background: linear-gradient(135deg, #FFC736, #A8B2C1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.3rem;
    line-height: 2rem;
    color: #A8B2C1;
    margin-bottom: 4rem;
}

.cta {
    display: inline-block;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 1.4rem 2.6rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    color: #111111;
    background: #FFC736;
    box-shadow: 0 6px 18px rgba(255, 199, 54, 0.2);
}

.cta:hover {
    box-shadow: 0 10px 25px rgba(255, 199, 54, 0.3);
}

.hero-image img {
    display: block;
    width: 100%;
}



/* ========== PORTAFOLIO ========== */
/* ========== PORTAFOLIO ========== */
/* ========== PORTAFOLIO ========== */
/* ========== PORTAFOLIO ========== */
/* ========== PORTAFOLIO ========== */

#portafolio {
    padding: 4rem;
}

#portafolio h2 {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 4rem;
    display: block;
    color: #FFC736;
}

.proyectos {
    display: grid;
    gap: 5rem;
    grid-template-columns: 1fr;
}

.card-proyecto {
    background: rgba(255, 255, 255, 0.05); /* efecto glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 0 2rem rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}


.card-proyecto:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 30px rgba(255, 199, 54, 0.08);
}

.card-proyecto:hover::before {
    filter: blur(80px);
    opacity: 0.7;
}

.card-proyecto > * {
    position: relative;
    z-index: 1;
}

.card-proyecto img {
    display: block;
    height: 16rem;
    width: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 2rem;
}

.card-proyecto h3 {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.tags {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 3rem;
}

.tags p {
    padding: 0.4rem 0.7rem;
    background-color: rgba(255, 255, 255, 0.08);
    color: #A8B2C1;
    border-radius: 0.3rem;
    transition: transform 0.2s ease, background-color 0.3s ease;
    cursor: default;
}

.tags p:hover {
    transform: scale(1.1);
    background-color: #FFC736;
    color: #111111;
}

.card-proyecto .btn {
    display: block;
    border-radius: 0.6rem;
    padding: 1.2rem 2rem;
    color: #111111;
    background-color: #FFC736;
    transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    margin-left: auto;
    width: fit-content;
    box-shadow: 0 0 15px rgba(255, 199, 54, 0.15);
    outline: 0.2rem solid #E6AC00;
}

.card-proyecto .btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.card-proyecto .btn:hover {
    background-color: #E6AC00;
    box-shadow: 0 0 20px rgba(255, 199, 54, 0.20);
}

.card-proyecto .btn:hover i {
    transform: translateX(4px);
}

[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}



/* ========== SERVICIOS ========== */
/* ========== SERVICIOS ========== */
/* ========== SERVICIOS ========== */
/* ========== SERVICIOS ========== */
/* ========== SERVICIOS ========== */

#servicios {
    padding: 4rem 4rem;
}

#servicios h2 {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 4rem;
    display: block;
    color: #FFC736;
}

.servicios-lista {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.servicio {
    position: relative;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.servicio:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 30px rgba(255, 199, 54, 0.08);
}

.card-proyecto:hover::before {
    filter: blur(80px);
    opacity: 0.7;
}

.servicio > * {
    position: relative;
    z-index: 1;
}

.servicio h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.servicio p {
    font-size: 1.3rem;
    color: #A8B2C1;
    margin-bottom: 1.8rem;
    line-height: 2.1rem;
    letter-spacing: 0.03rem;
}

.servicio ul {
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
    line-height: 2rem;
    letter-spacing: 0.03rem;
    color: #EEEEEE;
    margin-top: 1rem;
}

.servicio li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
}

.servicio li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #FFC736;
    font-size: 1rem;
}

/* Botón */
.servicio .btn {
    display: block;
    margin-top: 2.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1.2rem 2.2rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 199, 54, 0.15);
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.04rem;
    outline: 0.1rem solid #FFC736;
    color: #FFC736;
    background-color: transparent;
}

.servicio .btn:hover {
    background-color: #FFC736;
    color: #111111;
    box-shadow: 0 0 20px rgba(255, 199, 54, 0.20);
}



/* ========== CONTACTO ========== */

#contacto {
    padding: 4rem;
}

#contacto h2 {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 2rem;
    display: block;
    color: #FFC736;
}

#contacto p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #A8B2C1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

#contacto form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: auto;
    position: relative;
    z-index: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 0 30px rgba(255, 199, 54, 0.06);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    overflow: hidden;
    isolation: isolate;
}

#contacto form > * {
    position: relative;
    z-index: 1;
}

#contacto form::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 199, 54, 0.25) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    filter: blur(60px);
    z-index: 0;
    animation: glowShift 10s ease-in-out infinite alternate;
}

@keyframes glowShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 30px); }
}

#contacto label {
    font-size: 1.2rem;
    color: #A8B2C1;
}

#contacto input,
#contacto textarea {
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.8rem;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#contacto input:focus,
#contacto textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #FFC736;
}

#contacto textarea {
    resize: vertical;
    min-height: 120px;
}

/* Botón */
#contacto button {
    display: block;
    width: 100%;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1.4rem 2.8rem;
    border-radius: 0.8rem;
    background-color: #FFC736;
    color: #111111;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 15px rgba(255, 199, 54, 0.15);
    letter-spacing: 0.05rem;
    align-self: center;
    margin-top: 2rem;
    outline: 0.2rem solid #E6AC00;
}

#contacto button:hover {
    background-color: #E6AC00;
    color: #111111;
    box-shadow: 0 0 20px rgba(255, 199, 54, 0.20);
}


/* ========== FOOTER ========== */

footer {
    background: linear-gradient(to bottom, #0a0a0a 60%, #111111);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}


footer p {
    text-align: center;
    font-size: 1.1rem;
    color: #A8B2C1;
}

footer .footer__inicio a {
    text-align: center;
    font-size: 0.9rem;
    color: #A8B2C1;
    transition: color 0.3s ease;
}

footer .footer__inicio a:hover {
    color: #FFC736;
}

footer .footer__social {
    margin: 2rem 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

footer .footer__social i {
    font-size: 1.8rem;
    color: #A8B2C1;
    transition: transform 0.3s ease, color 0.3s ease;
}

footer .footer__social i:hover {
    color: #FFC736;
    transform: scale(1.2);
}

.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 5rem;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 5rem;
    text-align: center;
    color: #A8B2C1;
    box-shadow: 0 0 40px rgba(255, 199, 54, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    font-size: 1.3rem;
}

.modal-icon {
    display: block;
    font-size: 3rem;
    color: #FFC736;
    margin-bottom: 2.5rem;
}

.modal-content button#cerrar-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #A8B2C1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-content button#cerrar-modal:hover {
    color: #FFC736;
}




/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */


@media (min-width: 500px) {

    /* ==========  HEADER ==========  */
    /* ==========  HEADER ==========  */
    /* ==========  HEADER ==========  */

    header nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 3rem;
    }

    .nav-links a:hover {
        color: #FFC736;
    }

    .contact {
        display: flex;
    }

    .btn-contacto {
        padding: 1.3rem 2.5rem;
        border-radius: 0.5rem;
        font-size: 1.4rem;
        font-weight: 500;
        text-decoration: none;
        color: #ffffff;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
        letter-spacing: 0.05rem;
        outline: 0.1rem solid #E6AC00;
    }
    
    .btn-contacto:hover {
        background: #E6AC00;
    }


    /* ========== HERO ========== */
    /* ========== HERO ========== */
    /* ========== HERO ========== */

    .hero {
        padding: 2rem 3rem;
    }

    
    /* ========== PORTAFOLIO ========== */
    /* ========== PORTAFOLIO ========== */
    /* ========== PORTAFOLIO ========== */

    #portafolio {
        padding: 2rem 3rem;
    }

    /* ========== SERVICIOS ========== */
    /* ========== SERVICIOS ========== */
    /* ========== SERVICIOS ========== */

    #servicios {
        padding: 2rem 3rem;
    }

    /* ========== CONTACTO ========== */
    /* ========== CONTACTO ========== */
    /* ========== CONTACTO ========== */
    
    .contact {
        display: block;
    }

    #contacto {
        padding: 2rem 3rem 4rem;
    }
}


@media (min-width: 1024px) {

    /* ========== HEADER ========== */

    header nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 20rem;
        height: 8.5rem;
        background: rgba(17, 17, 17, 0.6);
        backdrop-filter: blur(30px) saturate(120%);
        box-shadow: 0 0 30px rgba(255, 199, 54, 0.05); /* dorado tenue */
        transition: all 0.4s ease;
    }
    
    .nav-links a {
        position: relative;
        color: #ffffff;
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: 400;
        letter-spacing: 0.1rem;
        transition: color 0.2s ease;
    }
    
    .nav-links a::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0%;
        height: 2px;
        background: #FFC736;
        transition: width 0.3s ease-in-out;
    }
    
    .nav-links a:hover {
        color: #FFC736;
    }
    
    .nav-links a:hover::after {
        width: 100%;
    }
    
    .logo {
        height: 100%;
    }
    
    .logo img {
        height: 75%;
    }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 4rem;
        list-style: none;
        align-items: center;
    }
    
    .contact {
        display: flex;
    }
    

    /* ========== HERO ========== */

    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: left;
        margin-top: 15rem;
        padding: 5rem 20rem 10rem;
        gap: 6rem;
        position: relative;
        z-index: 1;
    }
    
    .hero .hero-content {
        width: 100%;
        text-align: center;
    }
    
    .hero .hero-image {
        width: 40%;
    }

    .hero-content h1 {
        font-size: 3.7rem;
        font-weight: 800;
        letter-spacing: 0.06rem;
        line-height: 3.5rem;
        margin-bottom: 2rem;
        background: linear-gradient(90deg, #FFC736, #ffd260);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .hero-content p {
        font-size: 1.4rem;
        line-height: 2rem;
        color: #A8B2C1;
        margin-bottom: 5rem;
    }

    .cta {
        margin-bottom: 0;
    }
    
    .hero-image img {
        display: block;
        width: 100%;
        text-align: center;
    }

    

    /* ========== PORTAFOLIO ========== */

    #portafolio {
        padding: 5rem 20rem;
    }
    
    .proyectos {
        gap: 5rem;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .card-proyecto {
        padding: 2.5rem;
        border-radius: 1rem;
        box-shadow: 0 0 1rem rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .card-proyecto img {
        height: 14rem;
        border-radius: 10px;
        margin-bottom: 3rem;
        object-fit: cover;
        box-shadow: 0 0 30px rgba(255, 199, 54, 0.08);
    }
    
    .tags {
        gap: 1.5rem;
        margin-bottom: 4rem;
        display: flex;
        flex-wrap: wrap;
    }
    
    .tags p {
        padding: 0.3rem 0.8rem;
        background-color: rgba(255, 255, 255, 0.08);
        color: #A8B2C1;
        border-radius: 0.3rem;
        transition: transform 0.2s ease, background-color 0.3s ease;
        cursor: default;
    }
    
    .tags p:hover {
        transform: scale(1.1);
        background-color: #FFC736;
        color: #111111;
    }
    
    .card-proyecto .btn {
        display: block;
        font-size: 1.4rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        border-radius: 0.8rem;
        padding: 1.2rem 2.2rem;
        color: #111111;
        background: #FFC736;
        transition: background-color 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease;
        cursor: pointer;
        box-shadow: 0 6px 20px rgba(255, 199, 54, 0.2);
        letter-spacing: 0.05rem;
    }
    
    .card-proyecto .btn:hover {
        background-color: #E6AC00;
        box-shadow: 0 10px 30px rgba(255, 199, 54, 0.3);
    }
    

    /* ========== SERVICIOS ========== */

    #servicios {
        padding: 5rem 20rem;
    }
    
    .servicios-lista {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5rem;
    }
    
    .servicio {
        padding: 3rem;
        border-radius: 1rem;
        box-shadow: 0 0 1rem rgba(255, 255, 255, 0.05);;
    }
    
    .servicio h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .servicio p {
        font-size: 1.2rem;
        margin-bottom: 3rem;
        line-height: 2rem;
        letter-spacing: 0.08rem;
    }
    
    .servicio ul {
        font-size: 1.2rem;
        line-height: 2rem;
        letter-spacing: 0.08rem;
        height: 19rem;
    }
    
    .servicio li {
        margin-bottom: 0.8rem;
        padding-left: 2.2rem;
    }
        

    /* ========== CONTACTO ========== */

    #contacto {
        padding: 5rem 20rem;
    }
    
    #contacto p {
        font-size: 1.3rem;
        margin-bottom: 3rem;
        text-align: center;
        color: #A8B2C1;
    }

    #contacto form {
        padding: 3rem;
    }
    
    #contacto label {
        font-size: 1.3rem;
        color: #A8B2C1;
    }
    
    #contacto input,
    #contacto textarea {
        border-radius: 0.8rem;
        margin-bottom: 1rem;
        font-size: 1.3rem;
        letter-spacing: 0.07rem;
    }
    
    #contacto button {
        display: inline-block;
        font-size: 1.4rem;
        font-weight: 600;
        padding: 1.4rem 2.8rem;
        border-radius: 0.8rem;
        background: #FFC736;
        color: #111111;
        border: none;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        position: relative;
        overflow: hidden;
        transition: background-color 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease;
        box-shadow: 0 6px 20px rgba(255, 199, 54, 0.2);
        letter-spacing: 0.05rem;
    }
    
    #contacto button:hover {
        background-color: #E6AC00;
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(255, 199, 54, 0.3);
    }
    

    /* ========== FOOTER ========== */

    footer {
        padding: 2rem 20rem;
    }

    footer p {
        font-size: 1.2rem;
    }

    .footer__brand {
        font-size: 1.3em;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    footer .footer__social {
        margin: 3rem 0;
        width: 100%;
        gap: 4rem;
    }

    footer .footer__social i {
        font-size: 2rem;
    }
    
}