/* TASK-P1-003 — Qué automatizamos (home) */

.autom-section {
    --autom-navy: #0a2238;
    --autom-muted: #3d5163;
    --autom-line: rgba(9, 45, 73, 0.1);
    --autom-card: #ffffff;
    --autom-accent: #1aa0c7;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3.5rem, 6vw, 5.5rem) 0;
    background: #eafcfe;
    color: var(--autom-muted);
}

.autom-section__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.autom-section__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.autom-section__glow--a {
    width: min(50vw, 420px);
    height: min(50vw, 420px);
    top: -15%;
    right: -8%;
    background: radial-gradient(circle, rgba(43, 224, 247, 0.35) 0%, transparent 70%);
}

.autom-section__glow--b {
    width: min(40vw, 320px);
    height: min(40vw, 320px);
    bottom: -20%;
    left: -6%;
    background: radial-gradient(circle, rgba(26, 160, 199, 0.28) 0%, transparent 72%);
}

.autom-section__container {
    position: relative;
    z-index: 1;
}

.autom-section__head {
    max-width: 44rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.autom-section__kicker {
    display: inline-block;
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--autom-accent);
}

.autom-section__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--autom-navy);
    letter-spacing: -0.02em;
}

.autom-section__intro {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.08rem);
    line-height: 1.6;
    color: var(--autom-muted);
}

.autom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .autom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.1rem;
    }
}

@media (min-width: 992px) {
    .autom-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.15rem;
    }
}

.autom-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem 1.2rem 1.15rem;
    background: var(--autom-card);
    border: 2px solid var(--autom-line);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 32px rgba(7, 36, 76, 0.06);
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.32s ease,
        background 0.32s ease;
}

.autom-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(43, 224, 247, 0.45), rgba(26, 160, 199, 0.08) 55%, transparent 75%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.32s ease;
    pointer-events: none;
}

.autom-card:hover,
.autom-card:focus-within {
    transform: translateY(-14px) scale(1.02);
    border-color: rgba(43, 224, 247, 0.65);
    background: linear-gradient(165deg, #ffffff 0%, #f0fcff 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 28px 56px rgba(7, 36, 76, 0.16),
        0 0 0 1px rgba(43, 224, 247, 0.35),
        0 0 32px rgba(43, 224, 247, 0.22);
}

.autom-card:hover::before,
.autom-card:focus-within::before {
    opacity: 1;
}

.autom-card__icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 14px;
    font-size: 1.2rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.autom-card:hover .autom-card__icon,
.autom-card:focus-within .autom-card__icon {
    transform: scale(1.14) translateY(-2px);
}

.autom-card:hover .autom-card__title,
.autom-card:focus-within .autom-card__title {
    color: #086978;
}

.autom-card--cyan .autom-card__icon {
    color: #0e7490;
    background: linear-gradient(145deg, rgba(43, 224, 247, 0.22), rgba(43, 224, 247, 0.06));
    box-shadow: 0 8px 20px rgba(43, 224, 247, 0.15);
}

.autom-card--green .autom-card__icon {
    color: #15803d;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.06));
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.12);
}

.autom-card--indigo .autom-card__icon {
    color: #4338ca;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.22), rgba(99, 102, 241, 0.06));
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
}

.autom-card--blue .autom-card__icon {
    color: #1d4ed8;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.06));
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
}

.autom-card--violet .autom-card__icon {
    color: #6d28d9;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.06));
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.12);
}

.autom-card--teal .autom-card__icon {
    color: #0f766e;
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.22), rgba(20, 184, 166, 0.06));
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.12);
}

.autom-card--navy .autom-card__icon {
    color: #0c2740;
    background: linear-gradient(145deg, rgba(12, 39, 64, 0.14), rgba(12, 39, 64, 0.04));
    box-shadow: 0 8px 20px rgba(12, 39, 64, 0.1);
}

.autom-card--amber .autom-card__icon {
    color: #b45309;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.06));
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.12);
}

.autom-card__title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--autom-navy);
}

.autom-card__desc {
    flex: 1;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--autom-muted);
}

.autom-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--autom-accent);
    text-decoration: none;
    transition:
        gap 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.28s ease,
        transform 0.28s ease;
}

.autom-card__cta i {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.7rem;
    border-radius: 50%;
    background: rgba(26, 160, 199, 0.12);
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.28s ease;
}

.autom-card:hover .autom-card__cta,
.autom-card:focus-within .autom-card__cta {
    color: #054a5a;
    gap: 0.85rem;
    transform: translateX(2px);
}

.autom-card:hover .autom-card__cta i,
.autom-card:focus-within .autom-card__cta i {
    transform: translateX(6px);
    background: rgba(43, 224, 247, 0.35);
}

.autom-section__footer {
    margin-top: 2.25rem;
    padding: 1.5rem 1.35rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 34, 56, 0.04) 0%, rgba(26, 160, 199, 0.08) 100%);
    border: 1px solid var(--autom-line);
    border-radius: 20px;
}

.autom-section__footer-text {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--autom-navy);
}

.autom-section__footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #02162d !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #2be0f7 0%, #5ef0ff 50%, #2be0f7 100%);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(43, 224, 247, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.autom-section__footer-cta:hover {
    color: #02162d !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(43, 224, 247, 0.38);
}

@media (prefers-reduced-motion: reduce) {
    .autom-card,
    .autom-card::before,
    .autom-card__icon,
    .autom-card__cta,
    .autom-card__cta i,
    .autom-section__footer-cta {
        transition: none;
    }

    .autom-card:hover,
    .autom-card:focus-within {
        transform: none;
    }

    .autom-card:hover::before,
    .autom-card:focus-within::before {
        opacity: 0;
    }
}
