body {
    min-height: 100vh;
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    gap: 20px;
    margin: 0 10px 0 10px;
}

.hero {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    height: 400px;
    margin-bottom: 3px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    clip-path: polygon(0 0, 100% 0, 100% 0, 90% 100%, 0 100%);
}

.hero2 {
    max-width: 900px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.hero2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 100% 100%, 0 100%);
}

.img-hero {
    display: inline-block;
    width: 900px;
}

.container-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    text-align: center;
    gap: 20px;
    font-size: 24px;
    color: #333333;
}

.btn-container {
    display: flex;
    justify-content: center;
}

.btn-contact {
    display: inline-block;
    position: relative;
    padding: 12px 28px;
    background: #C2B280;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-start {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-start a {
    text-decoration: none;
    align-items: center;
    color: #fff;
}

.btn-work {
    display: block;
}

.btn-contact:hover {
    background-color: #d4c47c;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(194, 178, 128, 0.7);
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.btn-contact:hover::before {
    left: 100%;
}

hr {
    width: 50%;
    margin: 20px auto;
    border: none;
    height: 2px;
    background-color: #C9A76A;
}

.about {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.about h2 {
    text-align: center;
    font-size: 48px;
}

.text-about p {
    text-align: center;
    font-size: 20px;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
    background-color: #FAFAFA;
}

.card-services {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 350px;
    height: 500px;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    text-align: center;
}

.card-description .card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-description p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.btn-read {
    display: inline-block;
    align-self: center;
    padding: 8px 16px;
    background-color: #D4AF37;
    color: #121212;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-read:hover {
    background-color: #b9962d;
}


.btn-read:hover {
    background-color: #B9942E;
    color: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.work {
    background-color: #F1F1F1;
}

.work-sapace h2 {
    margin-top: 10px;
}

.fondo-card {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
}

.card-work {
    background-color: #F7F5EF;
    width: 350px;
    min-height: 500px;
    border-radius: 12px;
    border: 1px solid #E0DED8;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-work:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background-color: #F0EEE8;
    transition: all 0.3s ease;
}

.title-work {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-work img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    filter: brightness(1.2) saturate(1.3);
}

.card-work span {
    color: #B9942E;
    font-family: 'Times New Roman', Times, serif;
    font-size: 50px;
    display: block;
    margin-bottom: 5px;
}

.card-work h3 {
    font-size: 22px;
    color: #C5A572;
    margin-bottom: 20px;
}

.card-work p {
    color: #2B2B2B;
    font-size: 16px;
    line-height: 1.6;
}

.section-title h2 {
    text-align: center;
    font-size: 48px;
    color: #2C2C2C;
    margin-top: 50px;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title p {
    text-align: center;
    font-size: 30px;
}

.manual-slider {
    background-color: #FAFAFA;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.slider-wrapper {
    position: relative;
    width: 80%;
    max-width: 1000px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    background-color: #FAFAFA;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.slider {
    display: flex;
    transition: transform 0.6s ease-in-out;
    align-items: center;
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 20px;
    background-color: #f5f5f5;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #1E1E1E;
    color: #1E1E1E;
    font-size: 28px;
    cursor: pointer;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: rgba(194, 178, 128, 0.8);
    color: #1E1E1E;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-buttons {
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}



.container-testimonials {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px auto;
    max-width: 1200px;
    background-color: #F5F5F5;
    padding: 40px 20px;
    gap: 40px;
    border-radius: 10px;
}

.testimonage {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonage img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
}

.temoinage {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #F0EEE8;
    width: 100%;
    max-width: 480px;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.testimonial-form h2 {
    color: #1C1C1C;
    text-align: center;
    margin-bottom: 10px;
}

.testimonial-form p {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.testimonial-form .casillas {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.testimonial-form .casillas input,
.testimonial-form .casillas textarea {
    border-radius: 5px;
    border: none;
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    font-size: 1rem;
}

.testimonial-form .casillas textarea {
    height: 100px;
    resize: none;
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    margin: 15px 0;
}

.rating>input {
    display: none;
}

.rating>label {
    color: #ccc;
    cursor: pointer;
    font-size: 28px;
    padding: 0 2px;
    transition: color 0.2s;
}

.rating>input:checked~label {
    color: gold;
}

.rating>label:hover,
.rating>label:hover~label {
    color: orange;
}

@media (max-width: 1024px) and (min-width: 997px) {

    .hero-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding-top: 50px;
        gap: 20px;
    }

    .hero img,
    .hero2 img {
        max-width: 700px;
        height: 100%;
        object-fit: cover;
    }

    .hero {
        flex-direction: column;
        max-width: 900px;
        height: 400px;
        margin-bottom: 3px;
    }

    .hero2 {
        flex-direction: column;
        max-width: 900px;
        height: 400px;
    }

    .img-hero {
        width: 900px;
    }

    .container-text {
        width: 700px;
        font-size: 20px;
    }

    .services {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .card {
        flex: 0 0 calc(50% - 20px);
    }

    .card-work {
        width: 300px;
    }
}

@media (max-width: 996px) and (min-width: 770px) {
    .hero-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding-top: 50px;
        flex-direction: column;
    }

    .hero {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        height: 400px;
        object-fit: cover;
        margin-bottom: 3px;
    }

    .hero img {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 600px;
        clip-path: none;
    }

    .hero2 {
        display: none;
    }

    .hero2 img {
        display: none;
    }

    .img-hero {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .container-text {
        width: 90%;
        max-width: 400px;
        font-size: 18px;
        margin: 0 auto;
    }

    .text-about {
        width: 90%;
        max-width: 400px;
        font-size: 18px;
        margin: 0 auto;
    }

    .section-title p {
        width: 90%;
        max-width: 400px;
        font-size: 18px;
        margin: 0 auto;
    }

    .cards-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 15px;
    }

    .card,
    .card-work {
        flex: 0 0 100%;
        max-width: 350px;
        width: 100%;
        margin: 0 auto;
    }

    .manual-slider .slider-wrapper {
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
        overflow: hidden;
    }

    .manual-slider .slide img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid #1E1E1E;
        color: #1E1E1E;
        font-size: 28px;
        cursor: pointer;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    .container-testimonials {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 10px;
    }

    .container-testimonials .testimonage,
    .container-testimonials .temoinage {
        width: 100%;
        max-width: 600px;
    }

    .container-testimonials .testimonage {
        order: 1;
        display: flex;
        justify-content: center;
    }

    .container-testimonials .temoinage {
        order: 2;
    }
}

@media (max-width: 769px) and (min-width: 320px) {

    .hero-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding-top: 50px;
        flex-direction: column;
    }

    .hero {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        height: 200px;
        object-fit: cover;
        margin-bottom: 3px;
    }

    .hero img {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        max-width: 300px;
        clip-path: none;
    }

    .hero2 {
        display: none;
    }

    .hero2 img {
        display: none;
    }

    .img-hero {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .container-text {
        width: 90%;
        max-width: 400px;
        font-size: 18px;
        margin: 0 auto;
    }

    .text-about {
        width: 90%;
        max-width: 400px;
        font-size: 18px;
        margin: 0 auto;
    }

    .section-title p {
        width: 90%;
        max-width: 400px;
        font-size: 18px;
        margin: 0 auto;
    }


    .cards-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 15px;
    }

    .card,
    .card-work {
        flex: 0 0 100%;
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
    }

    .manual-slider .slider-wrapper {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        overflow: hidden;
    }

    .manual-slider .slide img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }


    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid #1E1E1E;
        color: #1E1E1E;
        font-size: 20px;
        cursor: pointer;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    .container-testimonials {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 10px;
    }

    .container-testimonials .testimonage,
    .container-testimonials .temoinage {
        width: 100%;
        max-width: 350px;
    }

    .container-testimonials .testimonage {
        order: 1;
        display: flex;
        justify-content: center;
    }

    .container-testimonials .temoinage {
        order: 2;
    }
}