.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 2rem;
}

.slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 1s ease;
}

.slides div {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-content {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    max-width: 500px;
    color: #fff;
    opacity: 0;
    animation: fadeSlide 1.2s ease forwards;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateZ(100%);
    }

    to {
        opacity: 1;
        transform: translateZ(0);
    }
}

.hero-content p {
    margin-top: 20px;
    margin-bottom: 30px;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        padding: 1rem;
        justify-content: center;
    }

    .hero-content {
        padding: 2rem;
    }
}

.welcome-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.image-container {
    width: 100%;
    height: 300px;
    margin: 40px 0;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.description {
    max-width: 800px;
}

.description .emphasis {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 40px 15px;
    }

    .welcome-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .image-container {
        height: 250px;
        margin-bottom: 30px;
    }

    .description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 1.7rem;
    }

    .image-container {
        height: 200px;
    }
}

.ofertas-section {
    padding: 80px 20px;
    background: #f4f4f4;
    color: var(--black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 40px;
    text-align: center;
}

.section-description {
    text-align: center;
    max-width: 650px;
    margin: 20px auto 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-icon img {
    background: var(--primary-color);
    border-radius: 50%;
    padding: .5rem;
    width: auto;
    height: 90px;
}

.card-title {
    margin: 20px 0;
}

.servicios-section {
    padding: 60px 20px;
}

.servicios-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.servicios-image {
    width: 100%;
    height: 1100px;
    object-fit: cover;
}

.servicios-content p {
    margin: 20px 0;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateX(8px);
}

.service-icon {
    font-size: 1.5rem;
    color: var(--black);
    margin-right: 5px;
    width: 30px;
    text-align: center;
}

.service-text {
    flex: 1;
}

.read-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: var(--black);
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.appear {
    opacity: 0;
    animation-name: appear;
    animation-duration: 0.8s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;

    animation-timeline: view();
    animation-range: entry 40%;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .servicios-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-card {
        padding: 10px 15px;
    }

    .servicios-content h2 {
        text-align: center;
    }
}

.projects-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--white)) 100%;
    color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    height: 600px;
}

.thumbnails-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumbnail {
    width: 100%;
    height: 120px;
    cursor: pointer;
    transition: border 0.3s ease, transform 0.5s ease;
    border: 4px solid transparent;
    position: relative;
}

.thumbnail:hover{
    transform: translateY(-5px);
}

.thumbnail.active {
    border-color: var(--black);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container:hover .image-overlay {
    opacity: 1;
}

.main-image-container:hover .main-image {
    transform: scale(1.02);
}

.project-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    color: white;
}

.project-title {
    margin-bottom: 10px;
}

.project-description {
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 500px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    transform: translateY(-2px);
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .projects-container {
        grid-template-columns: 250px 1fr;
        height: 500px;
    }

    .thumbnail {
        height: 110px;
    }
}

@media (max-width: 768px) {
    .section-title {
        text-align: center;
    }

    .projects-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 30px;
    }

    .thumbnails-container {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .thumbnail {
        min-width: 150px;
        height: 100px;
    }

    .main-image-container {
        height: 400px;
    }
}

#contacto {
    padding: 60px 20px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    margin: 30px 0;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.contact-form {
    flex: 1;
    background: #ffffff;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 3px solid #ddd;
    color: #333;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: var(--black);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: white;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: var(--white);
    color: var(--black);
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-form {
        width: 100%;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    z-index: 999;
    background-color: #25d366;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float i {
    font-size: 30px;
    color: #fff;
}