/* =================================================================
   SERVICES DETAILS — Shared component styles
   Applies to: AI, VoIP, IoT, Recruitment, Platforms, Mobile Apps
   ================================================================= */

/* ── Section backgrounds ─────────────────────────────────────── */
.sd-bg-white    { background: #fff; }
.sd-bg-dark     { background: #0a0a14; }
.sd-bg-gray     { background: #f8f9fc; }
.sd-bg-lpurple  { background: #f8f4ff; }
.sd-bg-gradient {
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 55%, #C084FC 100%);
}

/* ── Tag / label spans ───────────────────────────────────────── */
.sd-tag {
    color: #A66BFF;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.sd-tag--light {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.sd-tag--pink {
    color: #C084FC;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ── Headings ────────────────────────────────────────────────── */
.sd-heading {
    margin-top: 14px;
    margin-bottom: 24px;
    font-size: clamp(24px, 2.5vw, 38px);
    line-height: 1.3;
    color: #1a1a2e;
}
.sd-heading--lg {
    margin-top: 14px;
    margin-bottom: 18px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.2;
    color: #1a1a2e;
}
.sd-heading--sm {
    margin-top: 12px;
    margin-bottom: 24px;
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.3;
    color: #1a1a2e;
}
.sd-heading--white {
    color: #fff;
    margin-top: 14px;
    margin-bottom: 24px;
    font-size: clamp(24px, 2.5vw, 38px);
    line-height: 1.3;
}

/* ── Body text ───────────────────────────────────────────────── */
.sd-text {
    color: #444;
    font-size: 16px;
    line-height: 1.9;
}
.sd-text--light {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 1.9;
}
.sd-text--light-strong {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.9;
}
.sd-text--intro {
    font-size: 17px;
    line-height: 1.9;
    color: #555;
    max-width: 760px;
    margin: 0 auto;
}
.sd-text--white {
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    line-height: 1.9;
}

/* ── Section sub-headings (h4/h5) ────────────────────────────── */
.sd-section-h4 {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 18px;
    font-size: 17px;
}
.sd-section-h4--white {
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}
.sd-cap-h4 {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    font-size: 19px;
}

/* ── Image cards ─────────────────────────────────────────────── */
.sd-img-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.12);
}
.sd-img-card--md {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.14);
}
.sd-img-card--dark {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.22);
}
.sd-img-card--gradient {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.sd-img-card img,
.sd-img-card--md img,
.sd-img-card--dark img,
.sd-img-card--gradient img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

/* ── Benefit items (border-left rows with icon chip) ─────────── */
.sd-benefit-item,
.sd-benefit-item--alt {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
}
.sd-benefit-item {
    background: #f8f4ff;
    border-left: 3px solid #A855F7;
}
.sd-benefit-item--alt {
    background: #fafafa;
    border-left: 3px solid #C084FC;
}
.sd-benefit-item p,
.sd-benefit-item--alt p {
    margin: 0;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

/* ── Capability items — larger rows (VoIP style) ─────────────── */
.sd-cap-item,
.sd-cap-item--alt {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px 36px;
    border-radius: 16px;
    margin-bottom: 16px;
}
.sd-cap-item { background: #fafafa; border-left: 4px solid #A855F7; }
.sd-cap-item--alt { background: #f8f4ff; border-left: 4px solid #7C3AED; }
.sd-cap-item:last-child,
.sd-cap-item--alt:last-child { margin-bottom: 0; }
.sd-cap-item p,
.sd-cap-item--alt p {
    color: #555;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

/* ── Icon chips (gradient squares) ──────────────────────────── */
.sd-icon-chip {
    background: linear-gradient(135deg, #7C3AED, #C084FC);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sd-icon-chip i { color: #fff; }
.sd-icon-chip--sm { width: 36px; height: 36px; border-radius: 9px; }
.sd-icon-chip--md { width: 42px; height: 42px; border-radius: 11px; }
.sd-icon-chip--lg { width: 60px; height: 60px; border-radius: 14px; }

/* ── Quote blocks ────────────────────────────────────────────── */
.sd-quote-block {
    border-left: 4px solid #A855F7;
    padding: 22px 28px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 0 14px 14px 0;
}
.sd-quote-block--light {
    border-left: 5px solid #A855F7;
    padding: 28px 36px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 0 16px 16px 0;
}
.sd-quote-block--gradient {
    border-left: 4px solid rgba(255, 255, 255, 0.6);
    padding: 22px 28px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0 14px 14px 0;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.sd-quote-icon {
    font-size: 26px;
    display: block;
    margin-bottom: 10px;
}
.sd-quote-icon--purple { color: #A855F7; }
.sd-quote-icon--white  { color: #fff; }
.sd-quote-text {
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    margin: 0;
    line-height: 1.7;
}
.sd-quote-text--dark   { color: rgba(255, 255, 255, 0.9); }
.sd-quote-text--light  { color: #1a1a2e; font-size: 20px; }
.sd-quote-text--white  { color: #fff; }

/* ── Glass cards (AI process section on gradient bg) ─────────── */
.sd-glass-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    height: 100%;
}
.sd-glass-card .sd-num {
    font-size: 44px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    margin-bottom: 15px;
}
.sd-glass-card h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}
.sd-glass-card p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
    font-size: 15px;
}

/* ── Numbered cards (Recruitment "Lo que ganas") ─────────────── */
.sd-numbered-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
    height: 100%;
}
.sd-numbered-card .sd-num-deco {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    color: #f3e8ff;
    margin-bottom: 14px;
    font-family: serif;
}
.sd-numbered-card p {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ── Tech icon grid cards (AI Technology section) ────────────── */
.sd-tech-icon-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
}
.sd-tech-icon-card i  { display: block; margin-bottom: 8px; color: #fff; }
.sd-tech-icon-card span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
}

/* ── Checklist items (AI NLP tech) ──────────────────────────── */
.sd-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f4ff;
    border-radius: 8px;
}
.sd-check-item span { color: #333; font-size: 15px; }

/* ── Example quote cards (AI NLP examples) ───────────────────── */
.sd-example-card {
    background: #f8f4ff;
    border-left: 4px solid #A66BFF;
    border-radius: 8px;
    padding: 16px 18px;
}
.sd-example-card i   { color: #A66BFF; font-size: 20px; }
.sd-example-card p   { margin: 6px 0 0; color: #333; font-size: 14px; line-height: 1.7; }

/* ── Gradient banner strip (AI NLP diff block) ───────────────── */
.sd-gradient-banner {
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 55%, #C084FC 100%);
    border-radius: 16px;
    padding: 36px 40px;
}
.sd-gradient-banner h4 { color: #fff; font-weight: 700; margin-bottom: 12px; }
.sd-gradient-banner p  { color: rgba(255, 255, 255, 0.85); font-size: 16px; line-height: 1.9; margin: 0; }

/* ── Banner subtitle (frosted glass pill on jarallax/video banners) */
.sd-banner-subtitle {
    font-size: 20px;
    line-height: 2;
    max-width: 540px;
    margin: 18px 0 25px;
    color: #000;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 14px 20px;
    border-radius: 10px;
    display: block;
}

/* ── Ecosystem check badges (Platforms) ─────────────────────── */
.sd-eco-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sd-eco-badge i    { color: #C084FC; font-size: 18px; }
.sd-eco-badge span { color: rgba(255, 255, 255, 0.85); font-size: 14px; }

/* ── Divider ─────────────────────────────────────────────────── */
.sd-border-top-purple { border-top: 1px solid #ede5ff; }

/* ── Step cards (Platforms "Cómo trabajamos") ────────────────── */
.sd-step-card {
    padding: 36px 36px 36px 32px;
    background: #faf7ff;
    border-radius: 0 16px 16px 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.sd-step-card--purple { border-left: 4px solid #A855F7; }
.sd-step-card--deep   { border-left: 4px solid #7C3AED; }
.sd-step-card--soft   { border-left: 4px solid #C084FC; }
.sd-step-num {
    position: absolute;
    right: 20px;
    top: 16px;
    font-size: 80px;
    font-weight: 900;
    color: #f0e8ff;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.sd-step-card h4 { font-weight: 700; color: #1a1a2e; margin-bottom: 10px; }
.sd-step-card p  { color: #555; font-size: 15px; line-height: 1.8; margin: 0; }

/* ── Tech capability cards (Platforms section 7) ────────────── */
.sd-tech-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    height: 100%;
}
.sd-tech-card--deep  { border-top: 3px solid #7C3AED; }
.sd-tech-card--mid   { border-top: 3px solid #A855F7; }
.sd-tech-card--soft  { border-top: 3px solid #C084FC; }
.sd-tech-card h5 { font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.sd-tech-card p  { color: #888; font-size: 14px; line-height: 1.8; margin: 0; }

/* ── Ecosystem diagram (Platforms section 4) ─────────────────── */
.sd-eco-wrap     { max-width: 460px; margin: 0 auto; }
.sd-eco-row      { display: flex; justify-content: center; gap: 12px; }
.sd-eco-row--mini { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sd-eco-arrow    { text-align: center; padding: 6px 0; }
.sd-eco-arrow i  { color: rgba(255, 255, 255, 0.5); font-size: 20px; }

.sd-eco-node {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
}
.sd-eco-node--wide { padding: 10px 32px; }
.sd-eco-node i    { color: #fff; font-size: 18px; }
.sd-eco-node span { color: #fff; font-size: 13px; font-weight: 600; }

.sd-eco-node--core {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 14px 40px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}
.sd-eco-node--core i    { color: #fff; font-size: 22px; }
.sd-eco-node--core span { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 1px; }

.sd-eco-mini {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
}
.sd-eco-mini i    { color: #fff; font-size: 16px; display: block; }
.sd-eco-mini span { color: rgba(255, 255, 255, 0.9); font-size: 11px; font-weight: 600; }

/* ── Flow diagram (VoIP section 3) ───────────────────────────── */
.sd-flow-scroll { margin-top: 50px; overflow-x: auto; }
.sd-flow-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 600px;
    flex-wrap: nowrap;
}
.sd-flow-node   { text-align: center; flex-shrink: 0; }
.sd-flow-circle {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.sd-flow-circle i { font-size: 28px; color: #fff; }
.sd-flow-label    { color: rgba(255, 255, 255, 0.9); font-size: 13px; font-weight: 600; display: block; }
.sd-flow-arrow    { color: rgba(255, 255, 255, 0.5); font-size: 22px; flex-shrink: 0; }

/* ── Dark bullet badges — VoIP AI+Voice section ──────────────── */
.sd-bullet-dark {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
}
.sd-bullet-dark i    { color: #C084FC; font-size: 20px; flex-shrink: 0; }
.sd-bullet-dark span { color: rgba(255, 255, 255, 0.9); font-size: 15px; }

/* ── Dimmed white text (dark section tertiary copy) ──────────── */
.sd-text--dim { color: rgba(255, 255, 255, 0.6); font-size: 16px; line-height: 1.9; }

/* ── Solution cards hover (ServicesDetails section 2) ────────── */
.sd-solution-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    width: 100%;
    border-top: 3px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}
.sd-solution-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 45px rgba(166, 107, 255, 0.18);
    border-top-color: #A66BFF;
}
.sd-solution-card i {
    transition: transform 0.3s ease, color 0.3s ease;
}
.sd-solution-card:hover i {
    transform: scale(1.15);
    color: #7B2FF7 !important;
}

/* ── Project video cards (ProjectsDetails) ───────────────────── */
.sd-project-video {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background: #000;
}
.sd-project-video video {
    display: block;
    width: 100%;
    border-radius: 16px;
}
.sd-video-caption {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
