/**
 * ===================================
 * CARDS / TARJETAS DE SERVICIOS
 * ===================================
 * Estilos para tarjetas interactivas de servicios de ADN,
 * efectos hover, elevaciones de sombra y variantes de servicio.
 *
 * TABLE OF CONTENTS:
 * 01. DESIGN TOKENS & CSS VARIABLES
 * 02. TARJETA DE SERVICIO PRINCIPAL (.tarjeta-servicio)
 * 03. TARJETA DE SERVICIO SECUNDARIA (.tarjeta-servicio2)
 * 04. TARJETA MODULAR DE SERVICIOS (.card-servicio)
 * ===================================
 */

/* =====================
   01. DESIGN TOKENS & CSS VARIABLES
   ===================== */
:root {
    --card-shadow-base: 0 6px 10px #00000014, 0 0 6px #0000000d;
    --card-shadow-hover: 0 10px 20px #0000001f, 0 4px 8px #0000000f;
    --card-outline-color: #9f0000;
    --card-bg-white: #ffffff;
}

/* =====================
   02. TARJETA DE SERVICIO PRINCIPAL (.tarjeta-servicio)
   ===================== */
.tarjeta-servicio {
    border: none;
    box-shadow: var(--card-shadow-base, 0 6px 10px #00000014, 0 0 6px #0000000d);
    transition: .3s transform cubic-bezier(.155, 1.105, .295, 1.12), .3s box-shadow, .3s -webkit-transform cubic-bezier(.155, 1.105, .295, 1.12);
}

.tarjeta-servicio:hover {
    transform: scale(1.05);
    box-shadow: var(--card-shadow-hover, 0 10px 20px #0000001f, 0 4px 8px #0000000f);
}

@media (max-width: 768px) {
    .tarjeta-servicio {
        max-width: 95%;
        margin: 0 auto;
        padding: 2.5%;
    }
}

.tarjeta-servicio a:focus img,
.tarjeta-servicio a:hover img {
    outline: 4px solid var(--card-outline-color, #9f0000);
    outline-offset: 4px;
}

/* =====================
   03. TARJETA DE SERVICIO SECUNDARIA (.tarjeta-servicio2)
   ===================== */
.tarjeta-servicio2 {
    border: none;
    box-shadow: var(--card-shadow-base, 0 6px 10px #00000014, 0 0 6px #0000000d);
    transition: .3s transform cubic-bezier(.155, 1.105, .295, 1.12), .3s box-shadow, .3s -webkit-transform cubic-bezier(.155, 1.105, .295, 1.12);
}

.tarjeta-servicio2:hover {
    transform: scale(1.05);
    box-shadow: var(--card-shadow-hover, 0 10px 20px #0000001f, 0 4px 8px #0000000f);
}

@media (max-width: 768px) {
    .tarjeta-servicio2 {
        max-width: 98%;
        margin: 0 auto;
        padding: 1%;
    }
}

.tarjeta-servicio2 a:focus img,
.tarjeta-servicio2 a:hover img {
    outline: 4px solid var(--card-outline-color, #9f0000);
    outline-offset: 4px;
}

/* =====================
   04. TARJETA MODULAR DE SERVICIOS (.card-servicio)
   ===================== */
.card-servicio {
    border-radius: 4px;
    background: var(--card-bg-white, #ffffff);
    box-shadow: var(--card-shadow-base, 0 6px 10px #00000014, 0 0 6px #0000000d);
    transition: .3s transform cubic-bezier(.155, 1.105, .295, 1.12), .3s box-shadow, .3s -webkit-transform cubic-bezier(.155, 1.105, .295, 1.12);
    padding: 14px 80px 18px 36px;
    cursor: pointer;
}

.card-servicio:hover {
    transform: scale(1.05);
    box-shadow: var(--card-shadow-hover, 0 10px 20px #0000001f, 0 4px 8px #0000000f);
}

.card-servicio h3 {
    font-weight: 600;
}

.card-servicio img {
    position: absolute;
    top: 20px;
    right: 15px;
    max-height: 120px;
}

.card-12 {
    background-image: url(https://ionicframework.com/img/getting-started/ionic-native-card.png);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 80px;
}

.card-2 {
    background-image: url(https://ionicframework.com/img/getting-started/components-card.png);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 80px;
}

.card-3 {
    background-image: url(https://ionicframework.com/img/getting-started/theming-card.png);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 80px;
}

@media(max-width: 990px) {
    .card-servicio {
        margin: 20px;
    }
}
