* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

:root {
    --negro: #030204;
    --negrod: #222726;
    --verde: #38997A;
    --verded: #58B999;
    --blanco: #fff;

    --hoverbtnverde: #2B755E;
    --hoverbtnnegro: #495452;

    --verdec: #e9fcf6;
}

html {
    scroll-behavior:smooth;
}

body {
    margin-top: 1rem;
    margin-left: 5.5rem;
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100vh;
    
}

@media (max-width: 900px) {
    body {
        margin-left: 0;
        margin-top: 3rem;
    }
}

/* BOTONES */


.btn-pri-v, .btn-pri-n, .btn-sec-v, .btn-sec-n, .btn-sec-b, .btn-ter-v, .btn-ter-n, .btn-icon-n, .btn-icon-v {
    padding: 0.5rem 2rem;
    border: none;
    font-family: cofo-kabeltouw-solid-0, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.25rem;
    letter-spacing: 3%;
    text-decoration: none;
    cursor: pointer;

    box-shadow: #22272641 0px 0px 8px 1px;
    scale: 1;
    transition: all 250ms;
}


.btn-pri-v:hover, .btn-pri-n:hover, .btn-sec-v:hover, .btn-sec-n:hover, .btn-sec-b:hover, .btn-ter-v:hover, .btn-ter-n:hover, .btn-icon-n:hover, .btn-icon-v:hover {
    scale: 1.025;
    box-shadow: #22272600 0px 0px 8px 1px;
}

/* ------- */

.btn-pri-v {
    background-color: var(--verde);
    color: var(--blanco);
    border: 2px solid var(--verde);
}

.btn-pri-v:hover {
    background-color: var(--hoverbtnverde);
    border: 2px solid var(--hoverbtnverde);
}

/* ------- */

.btn-pri-n {
    background-color: var(--negrod);
    color: var(--blanco);
    border: 2px solid var(--negrod);
}

.btn-pri-n:hover {
    background-color: var(--hoverbtnnegro);
    border: 2px solid var(--hoverbtnnegro);
}

/* ------- */

.btn-sec-v {
    color: var(--verde);
    background-color: var(--blanco);
    border: 2px solid var(--verde);
}

.btn-sec-v:hover {
    color: var(--negrod);
    background-color: var(--blanco);
    border: 2px solid var(--negrod);
}

/* ------- */

.btn-sec-n {
    color: var(--negrod);
    background-color: var(--blanco);
    border: 2px solid var(--negrod);
}

.btn-sec-n:hover {
    color: var(--verded);
    background-color: var(--blanco);
    border: 2px solid var(--verded);
}

/* ------- */

.btn-sec-b {
    color: var(--blanco);
    background-color: transparent;
    border: 2px solid var(--blanco);
}

.btn-sec-b:hover {
    color: var(--blanco);
    background-color: var(--verded);
    border: 2px solid var(--verded);
}

/* ------- */

.btn-ter-v {
    color: var(--verde);
    background-color: var(--blanco);
    border: 2px solid var(--blanco);
}

.btn-ter-v:hover {
    color: var(--negro);
    background-color: var(--blanco);
    border: 2px solid var(--blanco);
}

/* ------- */

.btn-ter-n {
    color: var(--negrod);
    background-color: var(--blanco);
    border: 2px solid var(--blanco);
}

.btn-ter-n:hover {
    color: var(--verde);
    background-color: var(--blanco);
    border: 2px solid var(--blanco);
}

/* ------- */

.btn-n-shadow {
    box-shadow: none;
}

.btn-icon-n, .btn-icon-v {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;

    text-decoration-line: none;
    background-color: transparent;
    padding: 0.5rem 0rem;
}

/* ------- */

.btn-icon-n {
    color: var(--negro);
}

.btn-icon-v {
    color: var(--verde);
    border: none;
}


/* ------- */

.iconBtn {
    width: 1rem;
    height: 1rem;
}

.icon-v {
    margin-bottom: 1rem;
    fill: var(--verde);
    transition: all 250ms;
}

.icon-v:hover {
    fill: var(--negro);
    transition: all 250ms;
}

/* TIPO */

.tipo-card-n {
    background-color: var(--negro);
    color: var(--blanco);
    font-family: cofo-kabeltouw-solid-0, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.875rem;
    letter-spacing: 7%;
    padding: 0.25rem 0.5rem;
}


/* NAVBAR */

.navDiv {
    position: fixed;
    z-index: 98;
    right: 0px;
    top: 0px;
    
    width: 100%;
    padding-left: 6rem;
    border-bottom: 2px solid var(--negro);
    background-color: var(--blanco);

    display: flex;
    justify-content: space-between;
    align-items: center;
}


.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbtn {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

#currentpage {
    color: var(--verde);
}

.navbtnContacto {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
    cursor: pointer;
}

.logoNav {
    display: none;
    width: 11rem;
    height: 4rem;
}

.logoNav>img {
    width: 100%;
}

.menuToggle {
    display: none;
    background-color: transparent;
    border: none;
}

.navDiv>button:nth-child(1) {
    display: none;
}

.bar {
  display: none;
  width: 2rem;
  height:0.25rem;
  margin: 0.35rem auto;
  background-color: var(--verde);
  transition: all 0.3s ease-in-out;
}

.menu-overlay {
    display: none;
}

@media (max-width: 900px) {
    .navDiv {
        position: fixed;
        z-index: 98;
        left: 0px;
        top: 0px;
        
        width: 100vw;
        padding: 0rem;
        border-bottom: 2px solid var(--negro);
        background-color: var(--blanco);

        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logoNav {
        display: block;
        display: flex;
        margin-left: 1rem;
    }

    .menuToggle {
        margin-right: 1rem;
        display: block;
        cursor: pointer;
    }

    /* Transformación cuando el botón tiene la clase .active */
    .menuToggle.active .bar:nth-child(2) {
    opacity: 0; /* Desvanece la barra del medio */
    }

    .menuToggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg); /* Baja y rota */
    }

    .menuToggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg); /* Sube y rota */
    }

    .navbar {
        position: fixed;
        top: -100%; /* Oculto */
        
        flex-direction: column;
        gap: 0rem;
        background: #fff;
        width: 100vw;
        transition: 0.3s;
    }

    .navbar.active {
        top: 66px;
        opacity: 1;
        
    }

    .navLinks {
        width: 100%;
        padding-top: 1.5rem;
        padding-bottom: 1rem;
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        background-color: #fff;
    }

    .navbtn {
        height: 3rem ;
    }

    .navbtnContacto {
        height: 3.5rem;
        width: 100vw;
    }

    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3); /* Un color oscuro semitransparente */
        backdrop-filter: blur(8px);    /* Aquí ocurre la magia */
        -webkit-backdrop-filter: blur(8px); /* Soporte para Safari */
        z-index: 5;                    /* Por debajo del menú (que debería ser 10+) */
        opacity: 0;
        pointer-events: none;          /* Evita que bloquee clics cuando está oculto */
        transition: opacity 0.4s ease;
        }

        /* Clase que activaremos con JS */
    .menu-overlay.active {
        opacity: 1;
        pointer-events: auto;          /* Ahora sí permite clics (para cerrar el menú) */
    }

        /* Asegúrate de que el menú tenga un z-index superior */
    .nav-links {
        z-index: 10;
    }

    .bar {
        display: block;
    }
}

/* SIDEBAR */

.sidebar {
    position: fixed;
    z-index: 99;
    top: 0px;
    left: 0px;

    height: 100vh;
    width: fit-content;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 0.75rem 0.75rem 1.5rem ;
    background-color: var(--blanco);
    border-right: 2px solid var(--negro);
}

.logoSidebar {
    width: 100%;
    height: 4.5rem;
}

.socialMedia {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --------- */

.socialIcon {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    color: var(--negro);
    transition: all 250ms;
    scale: 1;
}

.socialIcon:hover {
    color: var(--verded);
    scale: 1.2;
}

/* ---------- */

.iconSidebar {
    width: 100%;
    height: 2.2rem;
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    
}


/* WTPP BTN MOBILE */
.wtppbtn-mobile {
    display: none;
    position: sticky;
    bottom: 1rem;
    right: 1rem;
    left: 90vw;
    align-items: right;

    width: 3rem;
    height: 3rem;
    background-color: var(--blanco);
    z-index: 50;
}

.wtppbtn-svg-m {
    fill: #0cba65;
    transition: all 250ms;
    scale: 1;
}

.wtppbtn-mobile:hover>.wtppbtn-svg-m {
    fill: var(--hoverbtnverde);
    scale: 1.05;
}

@media (max-width: 900px) {
    .wtppbtn-mobile {
        display: flex;
    }
}

/* FOOTER */
.footer {
    background-color: var(--negrod);
    color: var(--blanco);

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 1rem 2rem;
}

.footerContact {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;

    flex-wrap: wrap;
}

.fcontactInfo {
    text-decoration: none;
    color: var(--blanco);
    border: 1px solid var(--verded);
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    transition: all 250ms ease-out; 
}

.fcontactInfo:hover {
    background-color: var(--verde);
}

.footerTerminos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.footerTerminos>a {
    text-decoration: none;
    color: var(--blanco);
    transition: all 250ms ease-out; 
}

.footerTerminos>a:hover {
    color: var(--verded);
}

.footerTerminos>small {
    font-size: 0.7rem;
    color: #ffffffab;
}

@media (max-width: 900px) {
    .footer {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2rem 1rem;
    }

    .footerContact {
        width: 100%;
        gap: 0.75rem;
    }

    .fcontactInfo{
        width: 100%;
    }

    .fcontactInfo>h6 {
        font-size: 0.8rem;
    }

    .footerTerminos {
        width: 100%;
        text-align: left;
    }
}

/* -----social media icons */

.socialmedia-footer {
    display: none;
    gap: 1.15rem;
}

.social-icon-footer {
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
}

.social-icon-footer>h6 {
    font-size: 0.8rem;
}

.icon-footer {
    width: fit-content;
    background-color: var(--blanco);
    height: 2rem;
}

@media (max-width: 900px) {
    .socialmedia-footer {
        display: flex;
        gap: 1.15rem;
    }
}


/* CARD PORTAFOLIO */

.cardTrabajo {
    margin: auto;
    border: 1px solid var(--negro);
    cursor: pointer;

    transition: all 250ms;
}

.mediaTrabajo {
    height: 13rem;
    position: relative;
}

.mediaTrabajo>.tipo-card-n {
    position: absolute;
    z-index: 2;
    bottom: 0;
    width:fit-content;
    margin-left: 1.5rem;
    transition: all 250ms;
}

.imagenTrabajo {
    width: 100%;
    height: 100%;
    background-color: #22272634;
}

.infoTrabajo {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--negro);

    transition: all 250ms;
}

/* hover card trabajo */

.cardTrabajo:hover {
    border: 1px solid var(--verded);

    scale: 1.025;
    transition: all 250ms;
}

.cardTrabajo:hover>.mediaTrabajo>.tipo-card-n {
    background-color: var(--verde);
}

.cardTrabajo:hover>.infoTrabajo {
    border-top: 1px solid var(--verded);
}

.cardTrabajo:hover>.infoTrabajo>h5 {
    color: var(--verde);
}

.cardTrabajo:hover>.infoTrabajo>a>.btn-icon-v {
    color: var(--negro);
}

.cardTrabajo:hover>.infoTrabajo>a>.btn-icon-v>.iconBtn>.icon-v {
    fill: var(--negro);
}


@media (max-width: 700px) {
    .mediaTrabajo {
        height: 8rem;
    }
    .infoTrabajo {
        padding: 1rem;
    }

    .cardTrabajo:hover {
        scale: 1;
    }
}

/* CARD SERVICIO */

.cardServicio {
    height:100%;
    max-width: fit-content;
    margin: auto;
    border: 1px solid var(--negro);

    box-shadow: #22272641 0px 0px 8px 1px;
    transition: all 250ms;
}

.mediaServicio {
    height: 6rem;
    object-fit: contain;
    overflow: hidden;
}

.imagenServicio {
    width: 100%;
    scale: 1;
    transition: all 250ms;
}

.infoServicio {
    border-top: 1px solid var(--negro);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* hover */

.cardServicio:hover {
    scale: 1.025;
    border:  1px solid var(--verded);
    box-shadow: #22272600 0px 0px 8px 1px;
}

.cardServicio:hover>.mediaServicio>.imagenServicio{
    scale: 1.1;
}

.cardServicio:hover>.infoServicio {
    border-top: 1px solid var(--verde);
}

.infoServicio>h4 {
    transition: all 250ms;
}

.cardServicio:hover>.infoServicio>h4 {
    color: var(--verde);
}

.cardServicio:hover>.infoServicio>button {
    color: var(--negro);
}

.cardServicio:hover>.infoServicio>button>.iconBtn>.icon-v {
    fill: var(--negro);
}



@media (max-width: 900px) {

    .mediaServicio {
        height: 4rem;
    }

    .cardServicio:hover {
        scale: 1;
        
    }

    .infoServicio {
        padding: 1rem;
    }
}

/* CARD PARA PORTAFOLIO */

.cardLinkTrabajo {
    padding: 2rem;
    width: 90%;

    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: end;
}

@media (max-width: 900px) {
   .cardLinkTrabajo {
    padding: 4rem 0rem;
   } 
}

/* MODAL SERVICIO */

.modalServicio {
    width: 60rem;
    display: flex;
    border: 1px solid var(--negro);
    margin: auto;
}

.mediaServicioModal {
    width: 50%;
    object-fit: cover;
    position: relative;
    overflow: hidden;
}

.imagenServicioModal {
    position: absolute;
    height: 100%;
    scale: 1;
    transition: all 250ms;
    background-color: #f1fffa;
}

.imgMarca {
    right: -60%;
}

.imgEditorial{
    right: -50%;
}

.imgDigital {
    left: -100%;
}

.imgServicios {
    left: -300%;
}

.imgIndustrial {
    left: -300%;
}

.modalInfoServicio {
    border-left: 1px solid var(--negro);
    padding: 1.5rem;

    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.closeModal {
    width: 100%;
    display: flex;
    justify-content: end;
}

.closeIcon {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
}

.modalDescription {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bulletsDescripcion {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    gap: 0.75rem;
    margin-left: 1.25rem;
    margin-bottom: 2rem;
    margin-top: 0.25rem;
}

.conocerModal {
    border-top: 1px solid var(--negro);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.conocerModal>h6 {
    margin-bottom: -0.5rem;
}

.conocerModal>a>.btn-pri-v {
    width: 100%;
}

@media (max-width: 1100px) {
    .modalServicio {
        width: 100%;
        flex-direction: column;
    }

    .mediaServicioModal {
        width: 100%;
        height: 9rem;
    }
}


@media (max-width: 600px) {
    .bulletsDescripcion {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }

    .mediaServicioModal {
        display: none;
    }

    .modalInfoServicio {
        padding: 1rem;
    }

}

/* ------------- */

dialog {
    width: fit-content;
    height: fit-content;
    overflow: hidden;
}


.modal {
    margin: auto;
    border: none;
    width: fit-content;
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Magia en el fondo oscuro nativo */
.modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Una pequeña animación de entrada */
.modal[open] {
  animation: aparecer 0.3s ease-out;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.btn-abrir-modal {
    cursor: pointer;
}

/* ------------- */

/* CARD INTEGRANTE */

.cardIntegrante {
    margin: auto;
    width: max-content;
    height: 24rem;
    border: 1px solid var(--negro);
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.mediaIntegrante {
    height: 100%;
    background-color: #22272611;
    object-fit: contain;
    overflow: hidden;
}

.imgIntegrante {
    width: 100%;
}

.nombreIntegrante {
    background-color: var(--negrod);
    color: var(--blanco);
    text-align: center;
    padding: 1rem;
}

@media (max-width: 900px) {
    .cardIntegrante {
        margin: auto;
        width: max-content;
        height: 20rem;
        border: 1px solid var(--negro);
        display: flex;
        flex-direction: column;
        justify-content: end;
    }

    .mediaIntegrante {
        height: 100%;
        background-color: #22272611;
    }

    .nombreIntegrante {
        background-color: var(--negrod);
        color: var(--blanco);
        text-align: center;
        padding: 0.5rem;
    }
}

/* FORMULARIO */

.form-layout {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 50%);
    border: 1px solid var(--negro);
    margin: auto;
    margin-top: 2rem;
    padding: 1.5rem;
}

.column-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--verded);
}

.checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.checkbox-item {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    align-items: center;
}

.checkbox-item>input {
    border-radius: 0px;
    border: 1px solid var(--verded);
}

.checkboxForm {
    width: 1rem;
    height: 1rem;
}

.column-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.formInput {
    border-radius: 0px;
    border: 1px solid var(--negro);
    height: 2rem;
    padding: 0.25rem;
}

textarea {
    border-radius: 0px;
    border: 1px solid var(--negro);
    height: max-content;
    padding: 0.25rem;
}

.submit-group>button {
    width: 100%;
}

/* --- NUMERO INDICATIVO ----- */

/* Asegura que el input ocupe el 100% del espacio disponible */
.iti {
    width: 100%;
    display: block;
}

/* Opcional: Asegurar que tu clase .formInput mantenga su estilo dentro del nuevo contenedor */
.iti .formInput {
    width: 100%;
    box-sizing: border-box;
}

/* ---------------------------- */

@media (max-width: 1100px) {
    .form-layout {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .column-left {
        padding: 0;
        border: none;
    }

    .column-right {
        padding: 0px;
    }

    textarea {
        height: 7.5rem;
    }
}






/* animaciones */ 

.secanimation {
    opacity: 1;
}

