﻿/* ==========================
   SERVICIOS HUB - INDEX STYLES
   ========================== */

/* ===== HERO ===== */
.services-hero {
    padding: 70px 0 40px;
    background: #f8fafc;
    text-align: center;
    position: relative;
}

    .services-hero .hero-mask {
        position: absolute;
        inset: 0;
        background: transparent; /* Por si agregas imagen luego */
        pointer-events: none;
    }

    .services-hero h1 {
        font-size: 34px;
        font-weight: 700;
        color: #1e3a8a;
        margin-bottom: 10px;
        position: relative;
        z-index: 1;
    }

    .services-hero p {
        color: #475569;
        font-size: 18px;
        max-width: 700px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

/* ===== CONTENEDOR GENERAL ===== */
.services-section {
    padding: 40px 0 80px;
}

.services-block {
    margin-bottom: 70px;
}

.services-title {
    position: relative;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 35px;
    color: #0f172a;
}

    /* barra azul */
    .services-title .title-bar {
        display: block;
        width: 70px;
        height: 4px;
        background-color: #2563eb;
        margin-top: 6px;
    }

/* ===== GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 32px;
    align-items: stretch; /* Todas las tarjetas miden lo mismo */
}

/* ===== TARJETAS ===== */
.service-card {
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px; /* Pulido visual */
}

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 26px rgba(0,0,0,0.12);
    }

    .service-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        flex-shrink: 0;
    }

    /* CONTENEDOR INTERNO (Wrapper del texto) */
    /* Esto ayuda a controlar el padding de forma uniforme */
    .service-card .card-content {
        display: flex;
        flex-direction: column;
        flex-grow: 1; /* Ocupa todo el espacio restante */
        padding: 20px;
    }

    .service-card h3 {
        font-size: 20px;
        font-weight: 700;
        margin: 0 0 12px 0; /* Margen solo abajo */
        color: #0f172a;
        line-height: 1.3;
        /* ALINEACIÓN DE PÁRRAFOS: */
        /* Forzamos altura mínima de 2 líneas (aprox 26px * 2 = 52px) */
        /* Así todos los párrafos empiezan al mismo nivel */
        min-height: 52px;
        display: flex;
        align-items: flex-start; /* Alineado arriba */
    }

    .service-card p {
        font-size: 15px;
        color: #64748b;
        margin: 0 0 20px 0;
        line-height: 1.5;
        flex-grow: 1; /* Empuja el botón al fondo */
    }

    /* Botón */
    .service-card .btn {
        align-self: flex-start; /* No estirar */
        margin-top: auto; /* Seguridad extra */
        flex-shrink: 0;
    }

    /* ==========================
   Ajuste de Botones (Brand Color)
   ========================== */
    .service-card .btn-primary {
        background-color: #004da7; /* Tu Azul Principal */
        border-color: #004da7;
        color: #fff;
        font-weight: 600;
        padding: 0.6rem 1.5rem;
        transition: all 0.3s ease;
        border-radius: 4px;
    }

        .service-card .btn-primary:hover {
            background-color: #003a85; /* Un tono más oscuro para el hover */
            border-color: #003a85;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 77, 167, 0.3);
        }
