/* =========================================================
   T3 SERVICIOS — venta de soluciones, jerarquía visual
========================================================= */

body.t3-rd .t3-services-hero {
    position: relative;
    border-radius: var(--t3-radius-xl);
    overflow: hidden;
    min-height: clamp(300px, 44vh, 420px);
    display: flex;
    align-items: flex-end;
    margin-top: 16px;
    background: var(--t3-dark);
    isolation: isolate;
}
body.t3-rd .t3-services-hero .t3-services-hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--image-fit, cover); object-position: var(--image-position, center); z-index: -2;
}
body.t3-rd .t3-services-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--t3-scrim) 14%, transparent) 0%,
        color-mix(in srgb, var(--t3-scrim) 82%, transparent) 100%);
}
body.t3-rd .t3-services-hero .t3-services-hero-grid { display: block; padding: 0 28px 40px; color: #fff; }
body.t3-rd .t3-services-hero .t3-section-title { color: #fff; max-width: 18ch; }
body.t3-rd .t3-services-hero .t3-mini-label { color: var(--t3-accent); }
body.t3-rd .t3-services-hero .t3-services-hero-side { display: none; }

body.t3-rd .t3-section-title { color: var(--t3-text); letter-spacing: -0.015em; }
body.t3-rd .t3-mini-label { color: var(--t3-primary); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 11.5px; }

/* Servicios con jerarquía: principal con imagen lateral + secundarios */
body.t3-rd .t3-services-primary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Servicio principal: gradiente claro + imagen derecha cuando existe */
body.t3-rd .t3-service-main {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    background: linear-gradient(120deg, var(--t3-soft) 0%, var(--t3-soft-2) 100%);
    border: 1px solid var(--t3-line);
    border-left: 4px solid var(--t3-primary);
    border-radius: var(--t3-radius-lg);
    overflow: hidden;
}
body.t3-rd .t3-service-main.has-visual {
    grid-template-columns: 1fr clamp(220px, 30vw, 380px);
}
body.t3-rd .t3-service-main-copy { padding: clamp(34px, 4vw, 56px); }
body.t3-rd .t3-service-main-visual {
    overflow: hidden;
    border-radius: 0;
    position: relative;
}
body.t3-rd .t3-service-main-visual img {
    width: 100%;
    height: 100%;
    object-fit: var(--image-fit, cover);
    object-position: var(--image-position, center);
    display: block;
    min-height: 260px;
}
body.t3-rd .t3-service-main h3 { color: var(--t3-text); font-size: var(--t3-fs-h2); max-width: 26ch; margin-top: 8px; }
body.t3-rd .t3-service-main p { color: var(--t3-muted); max-width: 56ch; font-size: 16.5px; }
body.t3-rd .t3-service-main .t3-service-tag { color: var(--t3-primary); font-weight: 800; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
body.t3-rd .t3-service-main .t3-service-visual-mark { color: var(--t3-accent); font-size: 13px; font-weight: 800; }
body.t3-rd .t3-service-main .t3-service-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
body.t3-rd .t3-service-main .t3-service-points span { border: 1px solid color-mix(in srgb, var(--t3-primary) 25%, transparent); color: var(--t3-primary); background: rgba(255,255,255,0.7); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; }
body.t3-rd .t3-card-actions { margin-top: 22px; }

/* Cards secundarios — centrados, sin borde pesado */
body.t3-rd .t3-service-card { text-align: center; }
body.t3-rd .t3-service-card,
body.t3-rd .t3-service-side {
    border: 1px solid var(--t3-line);
    border-radius: var(--t3-radius-lg);
    padding: 34px 30px;
    background: #fff;
    transition: transform 0.3s var(--t3-ease), box-shadow 0.3s var(--t3-ease);
}
body.t3-rd .t3-service-card:hover { transform: translateY(-5px); box-shadow: var(--t3-shadow-soft); }
body.t3-rd .t3-service-card h3 { color: var(--t3-text); font-size: var(--t3-fs-h3); margin-top: 8px; }
body.t3-rd .t3-service-card p { color: var(--t3-muted); line-height: 1.7; }
body.t3-rd .t3-service-card a { color: var(--t3-primary); font-weight: 700; font-size: 14px; }
body.t3-rd .t3-service-number { color: var(--t3-accent); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; }

/* Beneficios — variación visual suave para romper repetición */
body.t3-rd .t3-services-benefits {
    padding: 48px clamp(20px, 4vw, 52px);
    background: color-mix(in srgb, var(--t3-primary) 5%, #faf7f5);
    border-radius: var(--t3-radius-xl);
    margin: 24px 0;
}
body.t3-rd .t3-services-benefits-head { max-width: 880px; margin: 0 auto 30px; text-align: center; }
body.t3-rd .t3-services-benefits-head .t3-section-title { max-width: none; text-wrap: balance; line-height: 1.18; }
body.t3-rd .t3-trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 36px;
}
body.t3-rd .t3-trust-claim strong { color: var(--t3-text); font-size: 17px; }

/* CTA final completo (oscuro) */
body.t3-rd .t3-services-cta .t3-contact-band-grid {
    background: var(--t3-dark);
    color: #fff;
    border-radius: var(--t3-radius-xl);
    padding: 48px;
}
body.t3-rd .t3-services-cta .t3-section-title { color: #fff; }
body.t3-rd .t3-services-cta .t3-section-text { color: var(--t3-on-dark-muted); }
body.t3-rd .t3-services-cta .t3-contact-band-info span { color: var(--t3-on-dark-muted); }

@media (max-width: 900px) {
    body.t3-rd .t3-trust-strip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    body.t3-rd .t3-services-primary-grid { grid-template-columns: 1fr; }
    body.t3-rd .t3-service-main.has-visual { grid-template-columns: 1fr; }
    body.t3-rd .t3-service-main-visual { height: 220px; }
    body.t3-rd .t3-service-main-copy { padding: 28px; }
    body.t3-rd .t3-trust-strip-grid { grid-template-columns: 1fr; gap: 24px; }
    body.t3-rd .t3-services-cta .t3-contact-band-grid { padding: 30px; }
}
