
.title-text {
    font-weight: bold;
    line-height: 1.1;
}

.description-text {
    font-weight: bold;
    line-height: 1.1;
    color:#808080;
    font-size: 18px;
    margin-top: 2%;
    margin-bottom: 2%;
}

.services-section{
    margin-top: 5%;
}

/* ============================================
   SECCIÓN DE SERVICIOS - GRID ASIMÉTRICO
   ============================================ */

.text-center {
    text-align: center;
}

/* Contenedor de cards */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 25px;
    margin-top: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    column-gap: 25px;
}

/* La destacada ocupa toda la altura de las dos filas */
.card-destacada {
    grid-row: span 2;
}

/* Las 6 cards de la derecha en grid 3x2 */
.cards-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Animación escalonada para las cards */


/* Card destacada de Calibración */
.cards > .card:first-child 
{ 
    grid-row: 1 / 3;
    animation: fadeInLeft 0.8s ease-out 0.4s both;
}

/* Estilos base de todas las cards */
.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C70C00, #131d39);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Contenedores internos de cada card */
.calibration-card,
.test-card,
.sales-card,
.training-card,
.dimensioning-card,
.essays-card,
.high-frecuency-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card destacada - Calibración */
.calibration-card {
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #ffe8e8 100%);
}

.calibration-card h2 {
    font-size: 2rem!important;
    margin-bottom: 15px!important;
}

.calibration-card p {
    font-size: 1.6rem!important;
    line-height: 1.4!important;
}

/* Imágenes */
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.calibration-card img {
    height: 240px!important;
}

.card:hover img {
    transform: scale(1.05)!important;
}

/* Títulos de las cards */
.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.card:hover h2 {
    color: #C70C00;
}

/* Descripciones */
.card p {
    color: #808080;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Línea divisora */
.card hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 20px 0;
}

/* Botón CTA */
.btnCTA {
    margin-top: auto;
}

.txtCTA {
    text-decoration: none;
}

.bkCTA {
    width: 100%;
    padding: 12px 24px;
    background: #C70C00;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bkCTA:hover {
    background: #9f0b01;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.bkCTA:active {
    transform: translateY(0);
}

.cta-section {
    display: flex;
    width: 100%;
    align-content: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.cta-section h4{
    text-align: center;
    font-weight: bold;
}

.cta-section a {
    color: #C70C00!important;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =======================
   RESPONSIVE: TABLET
   ======================= */
@media (max-width: 1024px) {
    .services-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        gap: 20px;
        width: 95%;
    }

    .card-destacada {
        grid-column: span 2;
    }

    .cards-right {
        
        width: 200%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* =======================
   RESPONSIVE: MÓVIL
   ======================= */
@media (max-width: 640px) {
    .title-text {
        margin-left: 5%;
        margin-right: 5%;
    }
    .description-text {
        margin-left: 5%;
        margin-right: 5%;
    }
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 95%;
    }

    .card-destacada {
        order: 0;
    }

    .cards-right {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .card {
        width: 100%;
    }

    .calibration-card img {
        height: 180px !important;
    }
}

/* ============================================
   MEJORAS DE ACCESIBILIDAD
   ============================================ */

/* Reducir animaciones para usuarios con preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .card:hover {
        transform: translateY(-2px) scale(1);
    }
}

/* Focus visible para navegación por teclado */
.bkCTA:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.txtCTA:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 8px;
}


