/* site.css — overrides ligeros sobre SB UI Kit Pro. */

:root {
    --pd-brand-primary: #0a58ca;
    --pd-brand-primary-dark: #084298;
    --pd-ink: #0f172a;          /* gris-azul muy oscuro para body text */
    --pd-ink-soft: #475569;     /* gris-azul medio para texto secundario */
    --pd-bg-soft: #f1f5f9;      /* fondo gris claro para alternar secciones */
    --pd-border: #e2e8f0;
}

body { padding-top: 76px; color: var(--pd-ink); }

/* ===== Hero (home) ===== */
.pd-hero {
    background: #0b2545;        /* sólido — sin degradado peleón */
    background-image:
        radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.30) 0%, transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(14, 165, 233, 0.18) 0%, transparent 50%);
    color: #ffffff;
    padding: 112px 0 96px;
    position: relative;
    overflow: hidden;
}
/* Forzar blanco a headings + párrafos del hero (sb-ui-kit pisa heading color). */
/* NO incluir `a` aquí — los <a class="btn-light"> tienen su propio color (azul sobre blanco). */
.pd-hero, .pd-hero h1, .pd-hero h2, .pd-hero h3, .pd-hero h4,
.pd-hero p, .pd-hero .lead { color: #ffffff !important; }
.pd-hero h1 {
    font-size: 3.25rem; font-weight: 800; line-height: 1.08;
    margin-bottom: 20px; letter-spacing: -0.02em;
}
.pd-hero .lead {
    font-size: 1.18rem; max-width: 680px;
    color: rgba(255,255,255,0.88) !important;
}
.pd-hero-eyebrow {
    display: inline-block; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    background: rgba(255,255,255,0.14); padding: 7px 16px; border-radius: 999px;
    margin-bottom: 22px; color: #ffffff !important;
}
/* Botones — explicitar color para sobrescribir mi override de heredados. */
.pd-hero .btn-light,
.pd-page-header .btn-light,
.pd-cta-strip .btn-light {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--pd-brand-primary) !important;
    font-weight: 600;
}
.pd-hero .btn-light:hover,
.pd-page-header .btn-light:hover,
.pd-cta-strip .btn-light:hover {
    background: #f1f5f9 !important;
    color: var(--pd-brand-primary-dark) !important;
}
.pd-hero .btn-outline-light,
.pd-page-header .btn-outline-light,
.pd-cta-strip .btn-outline-light {
    background: transparent !important;
    border-color: rgba(255,255,255,0.55) !important;
    color: #ffffff !important;
    font-weight: 600;
}
.pd-hero .btn-outline-light:hover,
.pd-page-header .btn-outline-light:hover,
.pd-cta-strip .btn-outline-light:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Sección genérica */
.pd-section { padding: 80px 0; }
.pd-section-light { background: #f8fafc; }
.pd-section-title { font-weight: 800; }
.pd-section-eyebrow {
    color: var(--pd-brand-primary);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; margin-bottom: 8px;
}

/* Tarjetas de servicio en home */
.pd-service-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 32px 28px;
    height: 100%;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pd-service-card:hover {
    border-color: var(--pd-brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(10, 88, 202, 0.10);
}
.pd-service-card .pd-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: rgba(10, 88, 202, 0.10);
    color: var(--pd-brand-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}
.pd-service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.pd-service-card .pd-headline { color: var(--pd-brand-primary); font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; }
.pd-service-card .pd-summary { color: #4a5568; }

/* Detalle de servicio (anchor sections) */
.pd-service-detail {
    background: #fff;
    border-radius: 14px;
    padding: 48px 40px;
    margin-bottom: 24px;
    border-left: 4px solid var(--pd-brand-primary);
}
.pd-service-detail .pd-icon-lg {
    width: 64px; height: 64px;
    border-radius: 14px;
    background: rgba(10, 88, 202, 0.10);
    color: var(--pd-brand-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 22px;
}
.pd-service-detail h2 { font-size: 1.85rem; font-weight: 800; }
.pd-service-detail .pd-highlights { padding-left: 0; list-style: none; }
.pd-service-detail .pd-highlights li {
    position: relative; padding-left: 28px; margin-bottom: 10px; color: #4a5568;
}
.pd-service-detail .pd-highlights li:before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 2px; color: var(--pd-brand-primary);
}
.pd-tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pd-tech-stack .pd-tech-chip {
    font-size: 0.78rem; font-weight: 600; padding: 5px 12px;
    background: #eef2ff; color: #0a58ca; border-radius: 999px;
}

/* Stats */
.pd-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) { .pd-stats-row { grid-template-columns: repeat(2, 1fr); } }
.pd-stat-item { text-align: center; }
.pd-stat-number { font-size: 2.6rem; font-weight: 800; color: var(--pd-brand-primary); line-height: 1; }
.pd-stat-label { color: #6b7280; font-size: 0.95rem; margin-top: 6px; }

/* CTA strip */
.pd-cta-strip {
    background: #0b2545;
    background-image: radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.30) 0%, transparent 55%);
    color: #ffffff;
    padding: 72px 0;
}
.pd-cta-strip, .pd-cta-strip h2, .pd-cta-strip h3, .pd-cta-strip p, .pd-cta-strip .lead { color: #ffffff !important; }
.pd-cta-strip h2 { font-weight: 800; letter-spacing: -0.01em; }
.pd-cta-strip .lead { color: rgba(255,255,255,0.88) !important; }

/* Team */
.pd-team-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}
.pd-team-card .pd-avatar {
    width: 96px; height: 96px; border-radius: 50%;
    background: linear-gradient(135deg, #0a58ca, #073a8a);
    color: #fff; font-weight: 800; font-size: 2rem;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}

/* Contact */
.pd-contact-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 32px;
    height: 100%;
}
.pd-contact-card .pd-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: rgba(10, 88, 202, 0.10);
    color: var(--pd-brand-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}
/* Mapa embebido de la oficina, dentro de la tarjeta de contacto */
.pd-map {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
    border-top: 1px solid #e8edf3;
}

/* Values list */
.pd-values { padding-left: 0; list-style: none; }
.pd-values li {
    position: relative; padding-left: 36px; margin-bottom: 16px;
    color: #374151; font-size: 1.02rem;
}
.pd-values li:before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 4px;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(10, 88, 202, 0.10); color: var(--pd-brand-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px;
}

/* Page header for inner pages */
.pd-page-header {
    background: #0b2545;
    background-image:
        radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.30) 0%, transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(14, 165, 233, 0.18) 0%, transparent 50%);
    color: #ffffff;
    padding: 88px 0 72px;
}
/* Mismo override — sb-ui-kit pisa heading color. NO incluir `a` (botones rompen). */
.pd-page-header, .pd-page-header h1, .pd-page-header h2, .pd-page-header h3,
.pd-page-header p, .pd-page-header .lead { color: #ffffff !important; }
.pd-page-header h1 { font-weight: 800; letter-spacing: -0.02em; }
.pd-page-header .lead { color: rgba(255,255,255,0.88) !important; max-width: 720px; }

/* ===== Portafolio ===== */
.pd-portfolio-intro { max-width: 760px; }
.pd-portfolio-intro .lead { font-size: 1.35rem; font-weight: 600; color: var(--pd-ink); margin-bottom: 16px; }
.pd-portfolio-intro p { color: var(--pd-ink-soft); }

/* Tarjeta de caso (relato situación → solución → valor) */
.pd-case-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 34px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 96px;     /* ancla bajo el navbar fijo */
    transition: border-color .2s ease, box-shadow .2s ease;
}
.pd-case-card:hover { border-color: var(--pd-brand-primary); box-shadow: 0 12px 36px rgba(10, 88, 202, 0.08); }
.pd-case-card:target { border-color: var(--pd-brand-primary); box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.12); }

.pd-case-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.pd-case-card .pd-icon,
.pd-case-teaser .pd-icon {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(10, 88, 202, 0.10);
    color: var(--pd-brand-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.pd-case-head h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 6px; line-height: 1.25; }
.pd-case-client { font-size: 0.88rem; }
.pd-case-clientname { color: var(--pd-brand-primary); font-weight: 700; }
.pd-case-sector { color: #6b7280; }
.pd-case-dot { color: #cbd5e1; margin: 0 6px; }

/* El relato en tres pasos */
.pd-case-story { margin-bottom: 18px; }
.pd-case-step { margin-bottom: 14px; }
.pd-case-step p { color: #4a5568; margin-bottom: 0; }
.pd-case-step-label {
    display: block;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: #94a3b8; margin-bottom: 4px;
}
/* El paso de valor se destaca con fondo y borde de marca */
.pd-case-value {
    background: rgba(10, 88, 202, 0.05);
    border-left: 3px solid var(--pd-brand-primary);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin-bottom: 4px;
}
.pd-case-value .pd-case-step-label { color: var(--pd-brand-primary); }
.pd-case-value p { color: #334155; font-weight: 500; }

/* Lista de highlights reutilizable (fuera de pd-service-detail) */
.pd-case-card .pd-highlights { padding-left: 0; list-style: none; margin: 0 0 20px; }
.pd-case-card .pd-highlights li {
    position: relative; padding-left: 26px; margin-bottom: 8px; color: #4a5568; font-size: 0.94rem;
}
.pd-case-card .pd-highlights li:before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 3px; color: var(--pd-brand-primary); font-size: 0.8rem;
}

/* Meta: integraciones + tecnología */
.pd-case-meta { margin-top: auto; padding-top: 18px; border-top: 1px solid #eef2f7; }
.pd-case-meta-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pd-case-meta-row:last-child { margin-bottom: 0; }
.pd-case-meta-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8;
}
.pd-tech-chip-alt { background: #ecfdf5; color: #047857; }

/* Teaser de casos en la home */
.pd-case-teaser {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 26px 24px;
    height: 100%;
    display: flex; gap: 16px; align-items: flex-start;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pd-case-teaser:hover {
    border-color: var(--pd-brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(10, 88, 202, 0.10);
}
.pd-case-teaser-cap {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--pd-brand-primary); margin-bottom: 6px;
}
.pd-case-teaser h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 4px; color: var(--pd-ink); }
.pd-case-teaser .pd-summary { color: #4a5568; font-size: 0.95rem; }
