@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {

    /* Colores principales */
    --primary-color: #6366F1;
    /* Azul índigo */
    --secondary-color: #8B5CF6;
    /* Morado */

    /* Fondos */
    --bg-dark: #F8FAFC;
    /* Fondo general */
    --bg-card: #FFFFFF;
    /* Tarjetas */

    /* Textos */
    --text-main: #0F172A;
    /* Azul oscuro elegante */
    --text-muted: #64748B;
    /* Gris azulado */

    /* Degradado principal */
    --gradient-brand: linear-gradient(135deg,
            #6366F1 0%,
            #8B5CF6 100%);

    --max-width: 1200px;

}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

.section__container {
    max-width: var(--max-width);
    margin: auto;
    padding: 6rem 1.5rem;
}

.section__title-block {
    text-align: center;
    margin-bottom: 3rem;
}

.section__header {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-main);
}

.section__description {
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.8;
}

.text__gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-brand);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(86, 213, 236, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(86, 213, 236, 0.4);
}

img {
    width: 100%;
    height: auto;
    display: block;
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    z-index: 100;
    background: rgba(248, 247, 249, 0.977);
    backdrop-filter: blur(10px);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-brand);
    border-radius: 50%;
}
  #menu-btn{
    font-size: 1.9rem;

}
.nav__bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

.nav__links {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: 0.4s ease;
    z-index: -1;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav__links.open {
    transform: translateY(0);
   
}

.nav__links a {
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.nav__links a:hover {
    color: var(--primary-color);
}

.btn__large {
    display: none;
    
}


/* HERO SECTION */
.header__container {
    padding-top: 10rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.header__content {
    text-align: center;
}


.header__content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.header__image {
    display: flex;
    justify-content: center;
}
.nav__links .btn__nav {
    color: #fff !important;
}
.header__image img {
    width:350px;
    height:350px;
    object-fit: cover;
    border-radius:100%;
   border:4px solid #ffffff;
box-shadow:0 20px 50px rgba(99,102,241,.20);
}

/* ABOUT ME */
.about__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

/* En móvil, el título va arriba del todo */
.about__title {
    order: 1;
    margin-bottom: 0;
}

/* La imagen queda en medio */
.about__image {
    position: relative;
    max-width: 280px;
    margin: auto;
    order: 2;
}

.about__img {
    border-radius: 100%;
    position: relative;
    z-index: 2;
    border: 1px solid #abe3ed;
}

.about__bg-1,
.about__bg-2 {
    position: absolute;
    max-width: 120px;
    opacity: 0.1;
    z-index: 1;
}

.about__bg-1 {
    top: -20px;
    left: -20px;
}

.about__bg-2 {
    bottom: -20px;
    right: -20px;
}

/* El texto descriptivo va abajo de la imagen */
.about__content {
    text-align: center;
    order: 3;
}

/* HABILIDADES Y SERVICIOS GRID (Diseño Minimalista sin fondos pesados) */
.skills__grid,
.service__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill__card,
.service__card {
    background: var(--bg-card);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Borde sutil en vez de fondo fuerte */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill__card:hover,
.service__card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    /* Ilumina el borde elegantemente */
    box-shadow: 0 10px 25px rgba(86, 213, 236, 0.15);
}
.skill__card i{
    color: var(--primary-color);
}
/* Iconos de servicios con tu degradado de texto */
.service__card span i {
    font-size: 2.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Iconos de habilidades en imágenes adaptados de forma equilibrada */
.skill__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: saturate(1.1) contrast(1);
    /* Mantiene sus colores pero más limpios */
    transition: transform 0.3s ease;
}

.skill__card:hover .skill__icon {
    transform: scale(1.08);
}

.skill__card h4,
.service__card h4 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem 0;
    color: var(--text-main);
}

.skill__card p,
.service__card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* PORTAFOLIO */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio__card {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.portfolio__card img {
    transition: transform 0.5s ease;
    width: 100%;
    object-fit: cover;
}

.portfolio__card:hover img {
    transform: scale(1.05);
}

.portfolio__banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio__banner__card span {
    font-size: 2rem;
    color: var(--primary-color);
}

.portfolio__banner__card h4 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: var(--text-main);
}

.portfolio__banner__card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CONTACTO */
.contact {
    max-width: var(--max-width);
    margin: auto;
    padding: 6rem 1.5rem;
}

.contact__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.contact__subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background:var(--secondary-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s;
    text-shadow: none;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.15);
    text-decoration: none;
}

.contact__whatsapp:hover {
    transform: translateY(-3px);
}

.contact__info {
    display: flex;
    justify-content: center;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.contact__form input,
.contact__form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.contact__form input:focus,
.contact__form textarea:focus {
    border-color: var(--primary-color);
}

.contact__form textarea {
    min-height: 140px;
    resize: none;
}

/* FOOTER */
.footer__container {
    background-color:var(--bg-card);
    /* Fondo blanco limpio */
    padding: 5rem 1.5rem 2rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer__content {
    max-width: var(--max-width);
    margin: auto;
    display: flex;
    flex-direction: column;
    /* En móvil se apilan verticalmente */
    align-items: center;
    /* Centra las columnas horizontalmente */
    justify-content: center;
    gap: 3.5rem;
    /* Espacio elegante entre las dos secciones */
    margin-bottom: 4rem;
    text-align: center;
    /* Centra todos los textos por defecto */
}

.footer__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centra los elementos internos de cada columna */
    max-width: 350px;
    /* Evita que los textos se expandan demasiado */
}

.footer__col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    position: relative;
    width: fit-content;
}

/* Línea decorativa centrada debajo de los títulos */
.footer__col h3::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    /* Centrado matemático perfecto */
    width: 35px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 10px;
}

.footer__col p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer__item {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centra los iconos con el texto */
    gap: 12px;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.footer__item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Botón estilo 'Outline' centrado */
.footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 0.8rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer__btn:hover {
    background: var(--gradient-brand);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(86, 213, 236, 0.2);
}

/* Créditos finales */
.footer__bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    nav {
        padding: 1.5rem 2rem;
        background: transparent;
    }

    .nav__menu__btn {
        display: none;
        
    }

    .nav__links {
        position: static;
        width: auto;
        padding: 0;
        flex-direction: row;
        background: transparent;
        transform: none;
        gap: 2rem;
        border: none;
    }

    .btn__nav {
        display: none;
    }

    .btn__large {
        display: inline-flex;
    }

    .header__container {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 4rem;
        padding-top: 12rem;
    }

    .header__content {
        text-align: left;
    }

    .header__content h1 {
        font-size: 4rem;
    }

    .header__image img {
        max-width: 400px;
    }

   .about__container {
    width: 100%;
    text-align:center;
    margin: auto;
    justify-content: center;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
   }

   /* En PC hacemos que el título ocupe las dos columnas arriba o se alinee con el texto */
   .about__title {
       grid-column: 2 / 3;
       /* Lo mueve a la columna de la derecha */
       grid-row: 1;
       text-align: left;
       margin-bottom: -1rem;
   }

   .about__image {
       grid-column: 1 / 2;
       /* Imagen a la izquierda */
       grid-row: 1 / 3;
       /* Toma el alto de la sección */
       max-width: 320px;
       margin: auto;
   }

   .about__content {
       grid-column: 2 / 3;
       /* Texto a la derecha debajo del título */
       grid-row: 2;
       text-align: left;
   }

   .about__content .section__description {
       text-align: left;
       /* Alinea los párrafos a la izquierda en PC */
       margin: 0 0 1.5rem 0;
   }

    .contact__wrapper {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 4rem;
        align-items: center;
    }

    .contact__info {
        justify-content: flex-start;
    }

        .footer__content {
            flex-direction: row;
            /* En PC se ponen una al lado de la otra */
            gap: 8rem;
            /* Mayor separación elegante en escritorio */
            align-items: flex-start;
            /* Alineación superior limpia */
        }
}