:root {
    --primary: #2c3e50;
    --secondary: #900000;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}


/* Resto de tu CSS existente... */
.servicios {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

.subtitle {
    text-align: center;
    padding: 10px 0;
    color: var(--primary);

}


.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 100%;
    text-align: justify;
}


/*ddjdddjdj*/

.card-container {
    width: 350px;
    height: 500px;
    position: relative;
    perspective: 1000px;
    margin-bottom: 30px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    padding: 30px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Estilos comunes para el frente */
.card-front {
            transform: rotateY(0deg);
            background-size: cover;
            background-position: center;
        }

/* Estilos individuales para cada tarjeta frontal */

/* Estilos para el reverso (imagen) */
.card-back {
            transform: rotateY(180deg);
            display: flex;
            flex-direction: column;
            color: black;
        }
.card-1 .card-front {
    background-image: url(https://thriving-alpaca-f78733.netlify.app/img/imgsuelo.jpeg);
}

.card-2 .card-front {
    background-image: url(https://thriving-alpaca-f78733.netlify.app/img/imgtopo.jpeg);
}

.card-3 .card-front {
    background-image: url(https://thriving-alpaca-f78733.netlify.app/img/imghidro.jpeg);
}

.card-container:hover .card {
    transform: rotateY(180deg);
}

.service-title {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: var(--secondary);
}

.icon {
    margin-right: 15px;
    font-size: 28px;
}

/* Colores de iconos individuales */
.card-1 .icon {
    color: #4ca1af;
}

.card-2 .icon {
    color: #900000;
}

.card-3 .icon {
    color: #2c5364;
}

.service-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.application {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid;
}

/* Bordes izquierdos individuales */
.card-1 .application {
    border-color: #4ca1af;
}

.card-2 .application {
    border-color: #900000;
}

.card-3 .application {
    border-color: #2c5364;
}

.application strong {
    color: inherit;
    display: block;
    margin-bottom: 5px;
    opacity: 0.9;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/*ensayos*/

.ensayos {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    max-width: 100%;
    margin: 0 auto;
    padding: 5px;
    background-color: #fff;
}

.section-title {
    text-align: center;
    color: var(--primary);
    margin: 40px 0 30px;
    font-size: 2em;
    font-weight: 500;
    position: relative;
}



.lab-tests-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.test-category {
    background: white;
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--secondary);
    transition: transform 0.3s ease;
}

.test-category:hover {
    transform: translateY(-5px);
}

.category-title {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.category-title i {
    margin-right: 12px;
    font-size: 1.2em;
    width: 30px;
    text-align: center;

}


.test-list {
    padding-left: 5px;
    margin: 0;
}

.test-list li {
    margin-bottom: 10px;
    position: relative;
    list-style-type: none;
    padding-left: 25px;
    font-size: 0.95em;
}

.test-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
}

/* Colores temáticos para cada categoría */

/* Iconos por categoría */
.soil i {
    color: #8d6e63;
}

.aggregates i {
    color: #ff9800;
}

.masonry i {
    color: #795548;
}

.structures i {
    color: #546e7a;
}

.concrete i {
    color: #78909c;
}

.asphalt i {
    color: #37474f;
}

.mortar i {
    color: #6d4c41;
}

.adobe i {
    color: #a1887f;
}

.academic i {
    color: #7b1fa2;
}

.steel i {
    color: #546e7a;
}

.wood i {
    color: #5d4037;
}

.paving i {
    color: #6d4c41;
}



.quote-button-container {
    margin-top: 20px;
    text-align: center;
}

.quote-button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.quote-button:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
