/*
 * Undernet Home V2 - "Tres líneas de servicio, un mismo propósito"
 * Dedicated component stylesheet.
 * Loaded explicitly from index-v2.php through $extraStylesheets.
 */

.service-purpose {
    margin: 46px 0 54px;
}

.service-purpose-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.purpose-card {
    position: relative;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(36, 28, 18, 0.08);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.purpose-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: var(--orange);
    border-radius: var(--radius) var(--radius) 0 0;
}

.purpose-card:hover,
.purpose-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--orange);
    box-shadow: var(--shadow);
}

.purpose-number {
    margin-bottom: 18px;
    color: var(--orange-dark);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.purpose-card strong {
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1.2;
}

.purpose-card small {
    margin-top: 8px;
    color: var(--muted);
    font-size: .95rem;
}

.purpose-connector {
    width: min(760px, 78%);
    height: 42px;
    margin: 0 auto;
    position: relative;
}

.purpose-connector::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 18px;
    height: 1px;
    background: #efc18b;
}

.purpose-connector::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 18px;
    width: 1px;
    height: 24px;
    background: #efc18b;
}

.purpose-connector span {
    position: absolute;
    top: 0;
    width: 1px;
    height: 19px;
    background: #efc18b;
}

.purpose-connector span:nth-child(1) { left: 0; }
.purpose-connector span:nth-child(2) { left: 50%; }
.purpose-connector span:nth-child(3) { right: 0; }

.purpose-result {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 28px 34px;
    text-align: center;
    background: var(--orange);
    border: 1px solid #e8830e;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.purpose-result span {
    display: block;
    margin-bottom: 5px;
    color: #744000;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 900;
}

.purpose-result strong {
    display: block;
    color: #1e1e1e;
    font-size: clamp(1.5rem, 2.4vw, 2.15rem);
    line-height: 1.15;
}

.purpose-result small {
    display: block;
    max-width: 610px;
    margin: 9px auto 0;
    color: #3d2a12;
    font-size: .96rem;
}

.visual-story-section .standards-map {
    margin-top: 0;
}

@media (max-width: 800px) {
    .service-purpose-grid {
        grid-template-columns: 1fr;
    }

    .purpose-card {
        min-height: 145px;
    }

    .purpose-connector {
        display: none;
    }

    .purpose-result {
        margin-top: 22px;
    }
}
