:root {
  --bg-color: #1c1b1a;
  --text-color: #cdcdcd;
  --base-font: "Montserrat", sans-serif;
  --color-brand: #ff4005;
}

*, 
*::before, 
*::after {
    box-sizing: border-box;
    font-family: var(--base-font);
    margin: 0;
    padding: 0;
}

html,
html:focus-within {
    scroll-behavior: smooth;
}

html,
body {
    background-color: var(--bg-color);
    overflow-x: hidden;
    width: 100%;
}

body {
    color: var(--text-color);
    font-size: 100%;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-y: hidden;
}

header,
nav,
section,
article,
main,
footer {
    height: auto;
    width: 100%;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

input,
button,
textarea,
select {
    font: inherit;
}

input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff;
    font-weight: bold;
    overflow-wrap: break-word;
    text-wrap: balance;
}

p {
    color: var(--text-color);
    line-height: 1.4;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

b,
strong {
    font-weight: 500;
}

ul,
ol {
    list-style: none;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

input,
textarea {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.wrapper {
    max-width: 75rem;
    margin: auto;
    padding: 0 1.5rem;
}

.row {
    width: 100%;
}

main section h2 {
    color: var(--color-brand);
}

/* HEADER  */

#header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 3rem;
    padding-bottom: 1rem;
}

#header nav > a {
    opacity: 1;
    transition: opacity .4s ease;
}

#header nav > a:hover {
    opacity: 0.8;
}

#header nav > a img {
    width: 5rem;
}

#header nav ul {
    display: flex;
    align-items: center;
    gap: 3rem;
}

#header nav ul li a {
    color: #ffffff;

    transition: color .2s ease;
}

#header nav ul li a:hover {
    color: var(--color-brand);
}

#header nav .burger {
    width: 2rem;
    height: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

#header nav .burger span {
    width: 100%;
    height: 0.1rem;
    background-color: var(--color-brand);
    border-radius: 0.4rem;
}

#headline {
    background: #1C1B1A;
    background: linear-gradient(0deg, rgba(28, 27, 26, 1) 0%, rgb(28, 27, 26) 100%);
    background-image: url(../img/texture-headline-1.svg), url(../img/texture-headline-2.svg);
    background-repeat: no-repeat, no-repeat;
    background-position: 0rem bottom, right 70%;
    background-size: 18rem, 12rem;
    min-height: 43rem;
    max-width: 95rem;
    margin: auto;
}

#headline .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

#headline .wrapper .col:nth-of-type(1),
#headline .wrapper .col:nth-of-type(2) {
    flex: 0 0 33rem;
}

#headline .wrapper .col:nth-of-type(1) h1 {
    line-height: 1;
    font-size: 3.4rem;
    margin-bottom: 4rem;
}

#headline .wrapper .col:nth-of-type(1) p strong {
    color: var(--color-brand);
}

#headline .wrapper .col:nth-of-type(1) a {
    background-color: var(--color-brand);
    color: #ffffff;
    display: table;
    border-radius: 1.5rem;
    font-size: 0.7rem;
    padding: 0.6rem 2rem;
    margin: 3rem auto 0;
    letter-spacing: 0.2rem;
    text-align: center;

    transition: background-color 0.2s ease;
}

#headline .wrapper .col:nth-of-type(1) a:hover {
    background-color: #bd2d02;
}

#headline .wrapper .col:nth-of-type(2) img {
    width: 100%;
}

/* MAIN */

#main {
    background-image: url(../img/texture-headline-1.svg), url(../img/texture-main.svg), url(../img/texture-main.svg);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: 100% 9%, 20% 10%, 90% 15%;
    background-size: 25%, 40%, 40%;
}

/* ABOUT */

#about {
    position: relative;
}

#about .wrapper .row {
    display: flex;
    align-items: center;
}

#about .wrapper .row strong {
    color: var(--color-brand);
    font-size: 1.5rem;
}

#about .wrapper .row .col:nth-of-type(1) {
    flex: 0 0 20%;
}

#about .wrapper .row img {
    width: 100%;
}

#about .wrapper .row:nth-of-type(1) .col.col:nth-of-type(2) {
    max-width: 38rem;
    padding-left: 10%;
}


#about .wrapper .row:nth-of-type(2) .col {
    background-color: var(--bg-color);
    z-index: 0;
}

#about .wrapper .row:nth-of-type(2)::before {
    content: '';
    background-color: var(--color-brand);
    display: inline-block;
    position: absolute;
    left: 0;
    height: 0.1rem;
    width: 50%;
}

#line-dot {
    position: relative;
    height: stretch;
}

#line-dot::before {
    content: '';
    background-color: var(--color-brand);
    display: block;
    height: 0.1rem;
    width: 100%;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

#line-dot span {
    background-color: var(--color-brand);
    border-radius: 50%;
    display: block;
    height: 0.5rem;
    width: 0.5rem;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

#about .wrapper .row:nth-of-type(2) .col.col:nth-of-type(2) {
    max-width: 50rem;
    padding-left: 25%;
}

#about .wrapper .row:nth-of-type(2) .col:nth-of-type(2) p strong {
    font-weight: 300;
}

/* SERVICES */

#services .wrapper #services-1 {
    border: 0.2rem solid var(--color-brand);
    border-radius: 4rem;
    text-align: center;
    padding: 2.2rem;
    margin-top: 4rem;
}

#services .wrapper #services-1 p:nth-of-type(1) {
    margin-bottom: 1.6rem;
}

#services .wrapper #services-1 p strong {
    color: var(--color-brand);
}

#services .wrapper #services-1 p strong:nth-of-type(1) {
    font-size: 1.2rem;
}

#services .wrapper #services-1 p strong:nth-of-type(2) {
    font-weight: 300;
    font-size: 1rem;
}

#services .wrapper #services-2,
#services .wrapper #services-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4.5rem 0;
}

#services .wrapper #services-2 h2,
#services .wrapper #services-3 h2 {
    font-weight: 400;
    margin-bottom: 1.5rem;
}

#services .wrapper #services-2 .col:nth-of-type(1),
#services .wrapper #services-3 .col:nth-of-type(2) {
    flex: 0 0 25rem;
}

#services .wrapper #services-2 .col:nth-of-type(1) img,
#services .wrapper #services-3 .col:nth-of-type(2) img {
    display: block;
    margin: auto;
}

#services .wrapper #services-2 .col:nth-of-type(1) p,
#services .wrapper #services-3 .col:nth-of-type(2) p {
    margin: 5rem 0;
}

#services .wrapper #services-2 .col:nth-of-type(2),
#services .wrapper #services-3 .col:nth-of-type(1) {
    max-width: 35rem;
}

#services .wrapper #services-2 .col:nth-of-type(2) ul,
#services .wrapper #services-3 .col:nth-of-type(1) ul {
    list-style-type: disc;
    padding: 2rem;
}

#services .wrapper #services-2 .col:nth-of-type(2) ul li::marker,
#services .wrapper #services-3 .col:nth-of-type(1) ul li::marker {
    color: var(--color-brand);
}

#services .wrapper #services-4 h2 {
    color: var(--color-brand);
    position: relative;
    text-align: center;
    font-weight: 500;
    margin: auto;
    margin-bottom: 3rem;
    width: max-content;
}

#services .wrapper #services-4 {
    display: flex;
    justify-content: center;
    gap: 6rem;
    padding-bottom: 8%;
}

#services .wrapper #services-4 h2::before {
    content: '';
    background-image: url(../img/bg-title.svg);
    background-repeat: no-repeat;
    background-size: contain;
    height: 4rem;
    width: 4rem;
    position: absolute;
    top: -50%;
    left: -15%;
    opacity: 0.8;
}

#services .wrapper #services-4 ul {
    display: inline-block;
    text-align: center;
    margin: auto 1rem;
    line-height: 1.5;
}

/* DESIGNS */

#designs {
    background-color: #1c1b1a;
    background-image: url(../img/bg-designs.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 1rem;
    height: 25rem;
}

#designs::before {
    content: '';
    background: #1C1B1A;
    background: linear-gradient(0deg, rgba(28, 27, 26, 1) 0%, rgba(28, 26, 26, 0) 50%, rgba(28, 27, 26, 1) 100%);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

#designs .wrapper {
    position: relative;
    height: 100%;
}

#designs .wrapper h3 {
    color: var(--color-brand);
    font-weight: 800;
    font-size: 1.1rem;
    position: absolute;
    right: 10rem;
    bottom: 2rem;
    text-align: center;
    max-width: 29rem;
    padding: 1.4rem;
    z-index: 1;
}

#designs .wrapper h3::before {
    content: '';
    background: #ffffff;
    background: radial-gradient(circle, rgba(255, 255, 255, 1)50%, rgba(255, 255, 255, 0.84) 100%);
    filter: blur(20px);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
}

/* PROJECTS */

#projects #projects-1 .wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-content: flex-start;
    flex-wrap: wrap;
    padding: 10rem 0;
}

#projects #projects-1 .wrapper .card {
    background-color: #f1f2f2;
    border-radius: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    position: relative;
    width: 30rem;
    padding: 6rem 2rem 4rem;
    text-align: center;
    justify-content: space-between;
    min-height: 35rem;
}

#projects #projects-1 .wrapper .card h2 {
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

#projects #projects-1 .wrapper .card ul {
    color: var(--bg-color);
}

#projects #projects-1 .wrapper .card img:nth-of-type(1) {
    position: absolute;
    top: -5rem;
    left: 0;
    right: 0;
    margin: auto;
    width: 9rem;
}

#projects #projects-1 .wrapper .card img:nth-of-type(2) {
    margin-bottom: -6rem;
}

#projects #projects-2 {
    background-color: #1c1b1a;
    background-image: url(../img/bg-projects-2.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-top: 8rem;
}

#projects #projects-2 h2 {
    color: #ffffff;
    font-size: 2rem;
    width: max-content;
    margin: auto;
    position: relative;
}

#projects #projects-2 h2::before {
    content: '';
    background-image: url(../img/bg-title.svg);
    background-repeat: no-repeat;
    background-size: contain;
    height: 5.5rem;
    width: 5.5rem;
    position: absolute;
    top: -50%;
    left: -8%;
    opacity: 0.8;
}

#carousel {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 4rem auto 0;
    overflow: hidden;
}

#carousel-container {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    --items-per-screen: 3; 
}

#carousel-container .item {
    flex: 0 0 calc(100% / var(--items-per-screen));
    box-sizing: border-box;
    padding: 2rem;
    text-align: center;
}

#carousel-container .item img {
    width: 100%;
    height: 18rem;
    border-radius: 8px;
    object-fit: cover;
}

#carousel-container .item p {
    margin-top: 2rem;
    text-align: left;
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 40%;
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: opacity 0.3s;
}

.carousel-btn:hover {
    opacity: 0.8;
}

.prev { left: -1rem; }
.next { right: -1rem; }

/* CONTACT */

#contact {
    background: #706F6F;
    background: linear-gradient(180deg, rgba(112, 111, 111, 1) 14%, rgba(60, 60, 59, 1) 3%);
}

#contact .wrapper {
    display: flex;
    align-items: center;
}

#contact .wrapper .col h2 {
    font-weight: 500;
    font-size: 1.8rem;
    margin-bottom: 4rem;
    position: relative;
    padding-left: 2.8rem;
}

#contact .wrapper .col h2::before {
    content: '';
    background-image: url(../img/bg-title.svg);
    background-repeat: no-repeat;
    background-size: contain;
    height: 5rem;
    width: 5rem;
    position: absolute;
    top: -50%;
    left: 0;
    opacity: 0.8;
}

#contact .wrapper .col ul {
    display: flex;
    width: 22rem;
    flex-direction: column;
    gap: 1rem;
}

#contact .wrapper .col ul li img {
    display: inline-block;
    margin-right: 1rem;
    vertical-align: middle;
    width: 1.2rem;
}

#contact .wrapper .col ul li:nth-of-type(3) img {
    float: left;
}

#contact .wrapper .col.col:nth-of-type(2) img {
    position: relative;
    top: -2rem;
    right: -5rem;
    max-width: none;
    width: 69rem;
}

/* FOOTER */

#footer {
    background-color: var(--color-brand);
    color: #ffffff;
    padding: 1.5rem 0;
    margin-top: -10rem;
    z-index: 4;
    position: relative;
}

#footer .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#footer .wrapper #logo-footer {
    width: 12rem;
}

#footer .wrapper #circle-footer {
    height: 3rem;
}

/* RESPONSSIVE */

@media screen and (max-width: 64rem) { /* 1024px */
    #headline {
        padding: 10% 0;
        background-position: -10rem bottom, right 70%;
    }

    #headline .wrapper .col:nth-of-type(1) {
        flex: 0 0 50%;
    }

    #headline .wrapper .col:nth-of-type(1) h1 {
        font-size: 2.8rem;
        margin-bottom: 2rem;
    }

    #headline .wrapper .col:nth-of-type(2) {
        flex: 0 0 33rem;
    }

    #about {
        padding-top: 10%;
    }

    #about .wrapper .row, #services .wrapper .row {
        padding: 5% 0;
    }

    #services .wrapper #services-1 {
        text-align: left;
    }

    #projects #projects-1 .wrapper {
        gap: 12rem;
        flex-direction: column;
        align-content: center;
        justify-content: space-evenly;
    }

    #contact .wrapper .col.col:nth-of-type(2) img {
        right: 0;
    }
}

@media screen and (max-width: 57.5rem) { /* 920px */
    #services {
        padding: 0 8%;
    }

    #services .wrapper #services-4 {
        flex-direction: column;
    }

    #services .wrapper #services-4 h2 {
        margin-left: 0;
    }

    #services .wrapper #services-4 ul {
        display: inline-block;
        text-align: left;
        list-style: disc;
    }

    #services .wrapper #services-4 ul li::marker {
        color: var(--color-brand);
    }

    #services .wrapper #services-2 .col:nth-of-type(1), #services .wrapper #services-3 .col:nth-of-type(2) {
        flex: none;
        margin: 0 5%;
    }

    #carousel-container {
        --items-per-screen: 2;
    }
}

@media screen and (max-width: 48rem) { /* 768px */
    #header nav ul {
        background-color: #202020;
        box-shadow: -4px 0px 15px 0px #00000059;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        top: 0;
        right: 0;
        opacity: 0;
        height: 100vh;
        width: 15rem;
        transform: translateX(150%);
        z-index: 9;

        transition: opacity 0.3s ease-in, transform 0.3s ease-in-out;
    }

    #header nav ul.active {
        opacity: 1;
        transform: translateX(0);
    }

    #header nav .burger {
        z-index: 9;
    }

    #header nav .burger.active {
        position: fixed;
        top: 4.95rem;
        right: 1.5rem;
    }

    #headline .wrapper {
        flex-direction: column;
    }

    #headline .wrapper .col:nth-of-type(1)
    #headline .wrapper .col:nth-of-type(2) {
        flex: 0 0 100%;
    }

    #services .wrapper #services-2 .col:nth-of-type(1),
    #services .wrapper #services-3 .col:nth-of-type(2) {
        flex: 0 0 100%;
        padding-bottom: 10%;
    }

    #services .wrapper #services-2 {
        flex-direction: column;
    }

    #services .wrapper #services-3 {
        flex-direction: column-reverse;
    }

    #designs .wrapper h3 {
        right: 0;
        left: 0;
        margin: auto;
    }

    #projects #projects-2 h2 {
        max-width: 23rem;
        width: auto;
    }

    #contact .wrapper .col.col:nth-of-type(2) img {
        right: 3rem;
    }

    #footer .wrapper {
        flex-direction: column;
        gap: 1.4rem;
    }
}

@media screen and (max-width: 35rem) { /* 560px */
    #about .wrapper .row, #services .wrapper .row {
        flex-direction: column;
        flex-wrap: wrap;
        align-content: center;
        gap: 4rem;
    }

    #about .wrapper .row:nth-of-type(1) .col:nth-of-type(1) {
        width: 8rem;
    }

    #about .wrapper .row:nth-of-type(1) .col.col:nth-of-type(2),
    #about .wrapper .row:nth-of-type(2) .col.col:nth-of-type(2) {
        padding-left: 0;
    }

    #carousel-container {
        --items-per-screen: 1;
    }

    .carousel-btn {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 26.563rem) { /* 425px */
    #headline {
        background-position: -100% 100%, 160% 50%;
    }

    #headline .wrapper .col:nth-of-type(1) h1 {
        font-size: 2.3rem;
    }

    #projects #projects-1 .wrapper .card {
        width: 100%;
    }

    #contact .wrapper .col.col:nth-of-type(2) img {
        right: 17rem;
    }
}