 /* Reset básico */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: "Raleway", sans-serif;
     background-color: #fff;
     color: #000;
 }

 html {
     scroll-behavior: smooth;
     overflow-x: hidden;
     width: 100%;
 }

/* =============== BACK BUTTON =============== */
.back-button-wrapper {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 16px auto;
    display: flex;
    justify-content: flex-start;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    font-family: "Raleway", sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;

    color: #000;
    text-decoration: none;

    background: transparent;       
    border: 1px solid #000;      
    padding: 4px 12px;              
    border-radius: 9999px;         

    transition: all 0.2s ease; 
}

.back-button svg {
    transition: transform 0.2s ease, stroke 0.2s ease;
    vertical-align: middle;
}

/* Hover con color rosa como antes */
.back-button:hover {
    color: #DC38A3;
    border: 1px solid #DC38A3;
}

.back-button:hover svg {
    stroke: #DC38A3;
}

/* Active */
.back-button:active {
    color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.25);
    background: transparent;
}

.back-button:active svg {
    stroke: rgba(0, 0, 0, 0.25);
}

 /* =============== PROJECT DETAILS =============== */
 .project-details {
     padding: 64px 123px;
     background: #fff;
 }

 .project-details .container {
     max-width: 1120px;
     margin: 0 auto;
     text-align: center;
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 /* Header */
 .project-details .header {
     width: 930px;
     margin-bottom: 64px;
     padding-top: 0 !important;
 }

/* ================= PROJECT TAGS ================= */

.project-details .project-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    width: 100%;
}

.project-details .project-tag {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 4px 12px;
    border-radius: 9999px;

    font-size: 16px;
    font-weight: 600;
    line-height: 24px;

    white-space: nowrap; 
}

.project-details .project-tag svg {
    width: 16px;
    height: 16px;
    display: block;
}

.project-details .project-tag svg path {
    stroke: currentColor;
}


 /* ============ TEXTOS ============ */
 .project-details h3 {
     font-size: 48px;
     letter-spacing: -2%;
     line-height: 56px;
     font-weight: 600;
     margin-bottom: 24px;
 }

 .project-details .intro {
     font-size: 24px;
     line-height: 32px;
     letter-spacing: -2%;
     margin-bottom: 48px;
 }

 /* Info Grid */
 .info-grid {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
     gap: 32px;
 }

 .info-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     text-align: center;
     width: 160px;
 }

 .info-item svg {
     width: 24px;
     height: 24px;
     margin-bottom: 8px;
     stroke: #000;
 }

 .info-title {
     font-weight: 600;
     font-size: 24px;
     line-height: 32px;
     letter-spacing: -2%;
     margin-bottom: 4px;
 }

 .info-text {
     font-size: 16px;
     line-height: 24px;
     letter-spacing: 0%;
     font-weight: 400;
 }


 /* Carousel */
 .carousel {
     position: relative;
     width: 100%;
     max-width: 1120px;
     overflow: hidden;
     border-radius: 24px;
     margin-bottom: 64px;
 }

 .carousel-track {
     display: flex;
     transition: transform 0.6s ease;
 }

 .carousel img {
     width: 100%;
     height: 600px;
     object-fit: cover;
     border-radius: 24px;
     flex-shrink: 0;
     cursor: pointer;

 }

 /* Botones del carrusel */
 .carousel-btn {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     background: #000;
     border: none;
     padding: 8px;
     border-radius: 9999px;
     cursor: pointer;
     transition: all 0.3s ease;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .carousel-btn svg {
     display: block;
     stroke: #fff;
     transition: all 0.3s ease;
 }

 .carousel-btn:hover {
     background: rgba(0, 0, 0, 0.25);
 }

 .carousel-btn:active {
     background: transparent;
     color: #000;
 }

 /* Posición izquierda/derecha */
 .carousel-btn.prev {
     left: 24px;
 }

 .carousel-btn.next {
     right: 24px;
 }

 /* Two Columns */
 .two-columns {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     gap: 32px;
     width: 100%;
     box-sizing: border-box;
 }

 .left-column {
     width: 70%;
     text-align: left;
 }

 .right-column {
     width: 30%;
 }

 .text-block {
     margin-bottom: 48px;
 }

 .text-block:last-child {
     margin-bottom: 0;
 }

 .left-column h6 {
     font-size: 32px;
     line-height: 40px;
     font-weight: 600;
     margin-bottom: 16px;
     letter-spacing: -2%;
 }

 .left-column p {
     font-size: 20px;
     line-height: 28px;
     letter-spacing: 0%;
     font-weight: 400;
 }

 /* Columna derecha */
 /* Columna derecha (desktop) */
 .right-column {
     width: 256px;
     text-align: left;
     margin-bottom: 24px;
 }

 .right-column h6 {
     font-size: 24px;
     line-height: 32px;
     font-weight: 600;
     margin-bottom: 16px;
     letter-spacing: -2%;
     color: #000;
 }

 /* Lista de herramientas (desktop) */
 .tools-list {
     display: flex;
     flex-direction: column;
     gap: 32px;
 }

 /* Tarjetas base (desktop) */
 .team-card-1,
 .team-card-2,
 .team-card-3 {
     display: flex;
     align-items: center;
     gap: 16px;
     width: 100%;
     height: 64px;
 }

 /* Recuadro del logo */
 .image-wrapper {
     width: 64px;
     height: 64px;
     border-radius: 8px;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
 }

 /* Imagen del logo */
 .image-wrapper img {
     object-fit: contain;
 }

 /* Texto del nombre */
 .team-name {
     font-size: 16px;
     line-height: 24px;
     letter-spacing: 0;
     font-weight: 400;
 }



 /* === GALERÍA ASIMÉTRICA === */
 .image-gallery {
     display: flex;
     justify-content: center;
     align-items: stretch;
     gap: 32px;
     width: 100%;
     box-sizing: border-box;
     flex-wrap: wrap;
     margin-top: 64px;
 }

 .gallery-left,
 .gallery-right {
     display: flex;
     flex-direction: column;
     gap: 32px;
     box-sizing: border-box;
 }

 /* Ajustamos las proporciones de las columnas */
 .gallery-left {
     flex: 1 1 60%;
 }

 .gallery-right {
     flex: 1 1 35%;
     justify-content: space-between;
 }

 /* Imágenes */
 .gallery-left img,
 .gallery-right img {
     width: 100%;
     object-fit: cover;
     border-radius: 24px;
     cursor: pointer;
 }

 .gallery-left img {
     height: 100%;
 }

 .gallery-right img {
     height: calc((100% - 32px) / 2);
 }

 /* === LIGHTBOX === */
 .lightbox {
     display: none;
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.8);
     justify-content: center;
     align-items: center;
     z-index: 1000;
     backdrop-filter: blur(4px);
 }

 .lightbox.active {
     display: flex;
 }

 .lightbox img {
     max-width: 90%;
     max-height: 90vh;
     border-radius: 24px;
 }

 .lightbox-close {
     position: absolute;
     top: 32px;
     right: 48px;
     font-size: 32px;
     color: #fff;
     cursor: pointer;
     transition: opacity 0.3s ease;
 }

 .lightbox-close:hover {
     opacity: 0.25;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }


 .lightbox-prev,
 .lightbox-next {
     position: absolute;
     top: 50%;
     font-size: 48px;
     color: #fff;
     cursor: pointer;
     user-select: none;
     transform: translateY(-50%);
     padding: 16px;
     transition: opacity 0.3s;
 }

 .lightbox-prev:hover,
 .lightbox-next:hover {
     opacity: 0.7;
 }

 .lightbox-prev {
     left: 32px;
 }

 .lightbox-next {
     right: 32px;
 }


 /* === VIDEOS EN LA GALERÍA ASIMÉTRICA === */
 .gallery-left video,
 .gallery-right video {
     width: 100%;
     object-fit: cover;
     border-radius: 24px;
     cursor: pointer;
     display: block;
 }

 /* Mantiene proporciones igual que las imágenes */
 .gallery-left video {
     height: 100%;
 }

 .gallery-right video {
     height: calc((100% - 32px) / 2);
 }

 /* Evita que los videos se deformen o desborden */
 .image-gallery video {
     aspect-ratio: 16/9;
     background: #000;
 }


 /* =============== RELATED PROJECTS =============== */

 .related-projects {
     padding: 64px 123px;
     background-color: #fff;
     text-align: left;
 }

 .related-container {
     max-width: 1120px;
     margin: 0 auto;
     display: flex;
     flex-direction: column;
     align-items: left;
 }

 .related-header {
     margin-bottom: 48px;
     display: flex;
     align-items: center;
     gap: 32px;
 }

 .related-header h4 {
     font-size: 40px;
     line-height: 48px;
     letter-spacing: -2%;
     font-weight: 600;
     margin: 0;
 }

 /* Línea después del h3 */
 .related-header::after {
     content: '';
     flex-grow: 1;
     height: 1px;
     background-color: #000;
 }

 /* Grid */
 .related-projects-grid {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 32px;
 }

 .related-card {
     flex: 1;
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     text-align: left;
     height: 100%;
     padding: 0;
     transition: all 0.4s ease;
     position: relative;
     text-decoration: none;
     color: inherit;
 }

 .related-card:hover {
     transform: translateY(-8px);
 }

 .related-card.hidden {
     display: none;
 }

 .related-card img {
     width: 100%;
     height: 360px;
     object-fit: cover;
     border-radius: 24px;
     margin-bottom: 24px;
 }

 .related-tags-wrapper {
     display: flex;
     gap: 8px;
     margin-bottom: 24px;
     flex-wrap: wrap;
 }

 .related-tag {
     display: inline-flex;
     align-items: center;
     height: 32px;
     padding: 4px 12px;
     border-radius: 9999px;
     border: 1px solid #000;
     font-size: 16px;
     font-weight: 400;
     color: #000;
     gap: 4px;
     white-space: normal;
     word-break: normal;
     max-width: 100%;
     box-sizing: border-box;
 }


 .related-tag svg {
     display: block;
     width: 16px;
     height: 16px;
     stroke: currentColor;
 }

 .related-title {
     font-size: 24px;
     line-height: 32px;
     font-weight: 600;
     margin-bottom: 16px;
 }

 .related-desc {
     font-size: 16px;
     line-height: 24px;
     margin-bottom: 16px;
 }

 .related-view-more {
     display: inline-flex;
     align-items: center;
     gap: 4px;
     font-size: 16px;
     line-height: 24px;
     font-weight: 600;
     color: #000;
     cursor: pointer;
     transition: all 0.3s ease;
     text-decoration: underline;
     margin-top: auto;
     padding-top: 24px;
 }

 .related-view-more svg {
     stroke: #000;
     transition: all 0.3s ease;
 }

 .related-view-more:hover {
     color: rgba(0, 0, 0, 0.25);
 }

 .related-view-more:hover svg {
     stroke: rgba(0, 0, 0, 0.25);
 }

 /* Load More */
 .related-load-more-wrapper {
     display: flex;
     justify-content: center;
     margin-top: 48px;
 }

 .related-load-more {
     padding: 12px 24px;
     border-radius: 9999px;
     font-size: 18px;
     font-weight: 400;
     cursor: pointer;
     background: #000;
     color: #fff;
     border: 1px solid transparent;
     transition: all 0.3s ease;
     font-family: "Raleway", sans-serif;
 }

 .related-load-more:hover {
     background: rgba(0, 0, 0, 0.25);
 }

 .related-load-more:active {
     background: transparent;
     color: #000;
 }


 /* ========== RESPONSIVE PROJECT DETAILS ========== */

 /* --------- 992px --------- */
 @media (max-width: 992px) {
     .project-details {
         padding: 64px 68px;
     }

     .project-details .header {
         width: 100%;
     }

     .image-gallery {
         gap: 24px;
     }

     .gallery-left {
         flex: 1 1 58%;
     }

     .gallery-right {
         flex: 1 1 38%;
     }

     .gallery-right img {
         height: calc((100% - 24px) / 2);
     }

     .related-projects {
         padding: 64px 68px;
     }
 }

 @media (max-width: 890px) {
     .info-item {
         width: 120px;
     }
 }


 /* --------- 768px --------- */
 @media (max-width: 768px) {
     .project-details {
         padding: 48px 36px;
     }

     .project-details h3 {
         font-size: 36px;
         line-height: 44px;
         letter-spacing: -2%;
     }

     .project-details .intro {
         font-size: 20px;
         line-height: 28px;
         letter-spacing: 0%;
     }

     .info-item .info-title {
         font-size: 18px;
         line-height: 24px;
         letter-spacing: 0%;
     }

     .info-grid {
         flex-direction: row;
         justify-content: center;
         gap: 8px;
     }

     .info-item {
         width: 160px;
     }

     .carousel img {
         height: 360px;
     }

     .two-columns {
         flex-direction: column;
         align-items: flex-start;
     }

     .left-column,
     .right-column {
         width: 100%;
     }

     .left-column h6 {
         font-size: 28px;
         line-height: 32px;
     }

     .right-column h6 {
         font-size: 24px;
         line-height: 32px;
     }

     /* Centrar contenido de la columna derecha */
     .right-column {
         width: 100%;
         text-align: center;
         display: flex;
         flex-direction: column;
         align-items: center;
     }

     /* Título centrado */
     .right-column h6 {
         font-size: 24px;
         line-height: 32px;
         margin-bottom: 16px;
     }

     /* Lista de herramientas en fila */
     .tools-list {
         display: flex;
         flex-direction: row;
         gap: 16px;
         justify-content: center;
         flex-wrap: wrap;
     }

     /* Tarjetas de herramientas */
     .team-card-1,
     .team-card-2,
     .team-card-3 {
         display: flex;
         flex-direction: column;
         align-items: center;
         gap: 16px;
         width: 96px;
         flex-shrink: 0;
     }

     .team-name {
         font-size: 14px;
         line-height: 20px;
     }

     /* Imagen del logo centrada */
     .image-wrapper {
         width: 64px;
         height: 64px;
         border-radius: 8px;
         display: flex;
         align-items: center;
         justify-content: center;
     }

     .image-gallery {
         flex-direction: column;
         gap: 24px;
         align-items: center;
     }

     .gallery-left img,
     .gallery-right img {
         width: 100%;
         height: auto;
     }

     .related-projects {
         padding: 48px 36px;
     }

     .related-projects-grid {
         grid-template-columns: 1fr;
         gap: 48px;
     }

     .related-header h4 {
         font-size: 32px;
         line-height: 40px;
         letter-spacing: -2%;
     }

     .related-load-more:hover {
         background: #000 !important;
         color: #fff !important;
         border-color: transparent !important;
     }
 }

 @media (max-width: 750px) {
     .info-item {
         width: 124px;
     }
 }

 @media (max-width: 610px) {
     .info-item {
         width: 100px;
     }
 }

 @media (max-width: 520px) {
     .info-grid {
         flex-wrap: wrap;
         justify-content: center;
         gap: 16px;
     }

     .info-item {
         width: calc(50% - 16px);
         text-align: center;
     }

     .tools-list {
         display: flex;
         flex-wrap: wrap;
         justify-content: center;
         column-gap: 16px;
         row-gap: 48px;
     }

     /* Cada tarjeta ocupa la mitad del contenedor (menos el gap) */
     .team-card-1,
     .team-card-2,
     .team-card-3 {
         display: flex;
         flex-direction: column;
         align-items: center;
         justify-content: center;
         width: calc(50% - 10px);
         gap: 16px;
         text-align: center;
     }

     /* Imagen del logo centrada */
     .image-wrapper {
         width: 64px;
         height: 64px;
         border-radius: 8px;
         display: flex;
         align-items: center;
         justify-content: center;
         overflow: hidden;
     }

     .image-wrapper img {
         width: 50%;
         height: 50%;
         object-fit: contain;
     }

     .team-name {
         font-size: 14px;
         line-height: 20px;
     }
 }

@media (max-width: 480px) {
    .project-details .project-tag {
        font-size: 14px;       
        line-height: 20px;     
        padding: 4px 12px;      
        gap: 4px;              
    }

    .project-details .project-tags {
        gap: 8px;               
        margin-bottom: 16px;

    }
}

 @media (max-width: 390px) {
     .tools-list {
         display: flex;
         flex-wrap: wrap;
         justify-content: center;
         column-gap: 16px;
         row-gap: 48px;
     }

     /* Cada tarjeta ocupa la mitad del contenedor (menos el gap) */
     .team-card-1,
     .team-card-2,
     .team-card-3 {
         display: flex;
         flex-direction: column;
         align-items: center;
         justify-content: center;
         width: calc(50% - 10px);
         gap: 8px;
         text-align: center;
     }


     /* Centrar el título */
     .related-header {
         justify-content: center;
     }

     .related-header h4 {
         text-align: center;
     }

     .related-header::after {
         display: none;
     }
 }

 /* --------- 360px --------- */
 @media (max-width: 360px) {
     .project-details {
         padding: 48px 14px;
     }

     .info-grid {
         flex-wrap: wrap;
         justify-content: center;
         gap: 16px;
     }

     .info-item {
         width: calc(50% - 16px);
         text-align: center;
     }

     .carousel img {
         height: 240px;
     }

     .gallery-left img,
     .gallery-right img {
         width: 100%;
         height: auto;
     }

     .tools-list {
         display: flex;
         flex-wrap: wrap;
         justify-content: center;
         column-gap: 16px;
         row-gap: 24px;
     }

     /* Cada tarjeta ocupa la mitad del contenedor (menos el gap) */
     .team-card-1,
     .team-card-2,
     .team-card-3 {
         display: flex;
         flex-direction: column;
         align-items: center;
         justify-content: center;
         width: calc(50% - 10px);
         gap: 8px;
         text-align: center;
     }

     .image-wrapper {
         width: 56px;
         height: 56px;
         border-radius: 8px;
         display: flex;
         align-items: center;
         justify-content: center;
         overflow: hidden;
     }

     .image-wrapper img {
         width: 5%;
         height: 5%;
         object-fit: contain;
     }

     .team-name {
         font-size: 12px;
         line-height: 16px;
     }

     .image-gallery {
         display: flex;
         flex-direction: column;
         align-items: center;
         justify-content: center;
         gap: 24px;
         width: 100%;
     }

     .related-projects {
         padding: 48px 14px;
     }

     .related-header {
         justify-content: center;
     }

     .related-header h4 {
         text-align: center;
     }

     .related-header::after {
         display: none;
     }

     .related-card img {
         height: 240px;
     }

 }