* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

.cd__main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 10vh;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 15px;
    font-size: 0.8em;
}

.services {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: space-between;

}

.contenta {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px;
    flex: 1;
    min-width: 280px;
}

h2 {
    margin-top: 0;
    font-size: 1.5em;
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 4px 4px 0 0;
}

.rowa {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.rowa:last-child {
    border-bottom: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 10px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    margin-top: 2%;
}

.closea {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.closea:hover,
.closea:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.container3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.box1 {
    width: 25%;
    /* Cada cuadro ocupa el 25% del ancho del contenedor */
    padding: 8px;
    background-color: #D61C12;
    border-radius: 10px;
    /* Puntas redondeadas */
    margin-right: 10px;
    /* Espacio entre los cuadros */
    margin-top: 10px;
}

.title {
    font-size: 1em;
    margin: 0;
    text-align: center;
}

.subtitle {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

.tablea {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.tablea th,
.tablea td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.tablea th {
    background-color: #f2f2f2;
}

.btn1 {
    padding: 10px 20px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.btn1:hover {
    background-color: darkred;
}

.gallery-container {
    max-width: 800px;
    width: 90%;
    margin: auto;
    text-align: center;
}

.main-image {
    margin-bottom: 10px;
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thumbnails img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


@media (max-width: 768px) {
    .cards {
        flex-direction: column;
    }

    .contenta {
        min-width: 100%;
        margin: 0px 0;
    }

    .title {
        font-size: 0.8em;
        margin: 0;
    }

    .subtitle {
        font-size: 0.8em;
        color: #666;
    }

    .tablea {
        width: 80%;
        margin-bottom: 20px;
        border-collapse: collapse;
    }

    .tablea th,
    .tablea td {
        border: 1px solid #ddd;
        padding: 6px;
        text-align: center;
    }

}