/* Sección general */
.seccion-cards-horizontal {
    background: #ffffff;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.seccion-cards-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #18516b, transparent);
}

/* Contenedor */
.contenedor-cards-horizontal {
    display: flex;
    justify-content: center;
    /* Centrar en escritorio */
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    /* En escritorio permite que se acomoden */
    z-index: 1;
}

/* Card individual */
.card-horizontal {
    flex: 0 0 320px;
    background: linear-gradient(135deg, #18516b 0%, #1c6b85 50%, #18516b 100%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #8FBFC8;
    box-shadow: 0 8px 20px rgba(24, 81, 107, 0.4);
    position: relative;
    overflow: hidden;
    transform: scale(1.02);
}


/* Glow en el ícono */
.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #279a94, #6c4769);
    border-radius: 50%;
    padding: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 0 15px rgba(143, 191, 200, 0.6);
}

.card-horizontal:hover .card-icon {
    transform: scale(1.5) rotate(5deg);
}


.card-content {
    padding: 45px 30px;
    text-align: center;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 2;
}

/* Ícono */
.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #051f2b 0%, #1c485b 50%, #075174 100%);
    border-radius: 50%;
    padding: 15px;
    transition: transform 0.3s ease;
}

.card-horizontal:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
    background: linear-gradient(135deg, #279a94, #188b85);
}

.card-icon img {
    filter: brightness(0) invert(1);
}

/* Título con subrayado animado */
.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #ffffff;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8FBFC8, #ffffff, #6c4769);
    border-radius: 2px;
    animation: subrayado 2s infinite alternate;
}

.card-highlight {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #7fc9c5, #b2fffb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-description {
    font-size: 15px;
    line-height: 1.4;
    color: #ffffff;
}

/* --- Responsivo --- */
@media (max-width: 900px) {
    .contenedor-cards-horizontal {
        flex-wrap: nowrap;
        /* evita que bajen */
        overflow-x: auto;
        /* scroll horizontal */
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .contenedor-cards-horizontal::-webkit-scrollbar {
        display: none;
    }

    .card-horizontal {
        flex: 0 0 280px;
        /* tamaño en móvil */
        scroll-snap-align: start;
    }
}