﻿
.container {
    text-align: center;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.container h2 {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    height: auto;
    padding: 0;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.1);
    }

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 1.2rem;
}

    .card-content h3 {
        color: rgb(31 41 55);
        font-weight: 600;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .card-content p {
        font-size: 0.9em;
        color: #666;
        margin-bottom: 0;
    }


.card:hover .icon {
    transition: filter 0.3s;
    filter:saturate(5);
}

.icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left:auto;
    margin-right:auto;  
    margin-bottom:1.2rem;
}

    .icon img {
        max-width: 100%;
        border-radius:50%;
    }

.card h3 {
    --tw-text-opacity: 1;
    color: rgb(31 41 55 / var(--tw-text-opacity));
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.75rem;
    text-align: center;
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0 !important;
}

.icon i {
    font-size: 2em;
}

.image-container {
    position: relative;
    height: 30vh;
    overflow: hidden;
    MARGIN: 4vh 20vh 2vh 20vh;
    border-radius: 1rem;
}
.slidertexto {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 6rem 2rem 2rem;
    color: #fff;
    font-size: MAX(MIN(CALC(100vw / 24), 4.5rem), 3.5rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px #1e1e1e;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    z-index: 1;
}
.cropped-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.containerContacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.left-content {
    width: 100%;
    margin-bottom: 1rem;
}

    .left-content h2 {
        font-size: 1.5rem;
        color: #000;
    }

.contact-button {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.form-container {
    display: grid;
    width: 40%;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
}

    .form-container .submit-button {
        margin-top: 1rem;
    }

/* Footer */
.footer {
    display: flex;
    padding: 1rem;
    text-align: center;
    width: 80%;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin: 1rem;
}


@media screen and (max-width:900px) and (min-width:501px) {
    .image-container {
        MARGIN: 0;
        border-radius: 0;
    }

    .slidertexto {
        position: relative;
        z-index: 2;
        text-align: center;
        padding: 6rem 2rem 2rem;
        color: #fff;
        font-size: MAX(MIN(CALC(100vw / 24), 4.5rem), 3.5rem);
        margin-bottom: 0.5rem;
        text-shadow: 0 0 10px #1e1e1e;
    }

    .form-container {
        width: 90%;
    }

    .footer {
        display: grid;
        width: 100%;
        margin: 0;
    }
}

@media screen and (max-width:499px) {
    .slidertexto {
        bottom:50px;
    }

    .image-container {
        MARGIN: 0;
        border-radius: 0;
    }

    .form-container {
        width: 90%;
    }

    .footer {
        display: grid;
        width: 100%;
        margin: 0;
    }
}

@media screen and (min-width:700px) and (max-height:900px) {
    .image-container {
        MARGIN: 0;
        border-radius: 0;
    }

    .slidertexto {
        bottom: 50px;
    }

    .form-container {
        width: 40%;
    }

    .footer {
        display: grid;
        width: 100%;
        margin: 0;
    }
}