/* site.css — overrides ligeros sobre SB UI Kit Pro.
 * RE-SKIN "Faro del Pacífico": paleta teal + dorado (marca del faro), reemplaza el azul corporativo.
 * Mismo layout y selectores que el original; solo cambian colores. Ver README-reskin-lighthouse.md. */

:root {
    /* Paleta de marca (Faro del Pacífico) */
    --pd-brand-primary: #0d9488;        /* teal-600 — antes #0a58ca (azul) */
    --pd-brand-primary-dark: #0f766e;   /* teal-700 — antes #084298 */
    --pd-accent: #f59e0b;               /* dorado (la luz del faro) — NUEVO */
    --pd-accent-soft: #2dd4bf;          /* teal-300 (glows/acentos claros) — NUEVO */
    --pd-sea: #08222b;                  /* mar profundo (héroes/CTA) — antes #0b2545 */
    --pd-ink: #0f172a;          /* gris-azul muy oscuro para body text */
    --pd-ink-soft: #475569;     /* gris-azul medio para texto secundario */
    --pd-bg-soft: #f0fdfa;      /* teal-50: fondo claro para alternar secciones — antes #f1f5f9 */
    --pd-border: #e2e8f0;

    /* Sobrescribe el primario del tema (sb-ui-kit/Bootstrap), que viene en azul.
       Bootstrap 5.3 usa estas variables; si el tema trae el color compilado, ver el bloque .btn-* de abajo. */
    --bs-primary: #0d9488;
    --bs-primary-rgb: 13, 148, 136;
    --bs-link-color: #0d9488;
    --bs-link-color-rgb: 13, 148, 136;
    --bs-link-hover-color: #0f766e;
}

/* ===== Override del primario del tema (botones/utilidades Bootstrap en azul) =====
 * OJO: el sitio usa Bootstrap 5.1.3 (ver _Layout.cshtml, bundle 5.1.3) → NO existen las
 * variables --bs-btn-* (entraron en 5.2/5.3). Por eso recoloreamos con reglas explícitas
 * + !important. Las --bs-* del :root quedan como respaldo si algún día sube a 5.3.
 * Este site.css carga DESPUÉS de sb-ui-kit.css, así que ganamos por orden; el !important
 * cubre el caso de que el tema traiga el color con !important. */
.btn-primary,
.btn-primary:focus {
    background-color: var(--pd-brand-primary) !important;
    border-color: var(--pd-brand-primary) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--pd-brand-primary-dark) !important;
    border-color: var(--pd-brand-primary-dark) !important;
    color: #fff !important;
}
.btn-outline-primary {
    color: var(--pd-brand-primary) !important;
    border-color: var(--pd-brand-primary) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:active {
    background-color: var(--pd-brand-primary) !important;
    border-color: var(--pd-brand-primary) !important;
    color: #fff !important;
}
.text-primary { color: var(--pd-brand-primary) !important; }
.bg-primary { background-color: var(--pd-brand-primary) !important; }
.link-primary { color: var(--pd-brand-primary) !important; }
.navbar-brand.text-primary { color: var(--pd-brand-primary) !important; }

/* ===== Footer (bg-dark del tema) → mar profundo de marca ===== */
.footer.bg-dark, footer.bg-dark {
    background-color: var(--pd-sea) !important;
}
.footer.footer-dark a:hover { color: var(--pd-accent-soft) !important; }

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

/* ===== Hero (home) ===== */
.pd-hero {
    background: var(--pd-sea);  /* sólido — sin degradado peleón */
    background-image:
        radial-gradient(circle at 84% 8%, rgba(245, 158, 11, 0.28) 0%, transparent 52%),   /* haz dorado (luz del faro) */
        radial-gradient(circle at 10% 92%, rgba(45, 212, 191, 0.18) 0%, transparent 52%);   /* teal */
    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(45, 212, 191, 0.16); 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: #e9fbf6 !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: var(--pd-bg-soft); }
.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(13, 148, 136, 0.10);
}
.pd-service-card .pd-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: rgba(13, 148, 136, 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(13, 148, 136, 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: #ccfbf1; color: var(--pd-brand-primary-dark); 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: var(--pd-sea);
    background-image: radial-gradient(circle at 82% 30%, rgba(245, 158, 11, 0.26) 0%, transparent 52%);  /* haz dorado */
    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, #0d9488, #0f766e);
    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(13, 148, 136, 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(13, 148, 136, 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: var(--pd-sea);
    background-image:
        radial-gradient(circle at 84% 8%, rgba(245, 158, 11, 0.28) 0%, transparent 52%),
        radial-gradient(circle at 10% 92%, rgba(45, 212, 191, 0.18) 0%, transparent 52%);
    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(13, 148, 136, 0.08); }
.pd-case-card:target { border-color: var(--pd-brand-primary); box-shadow: 0 0 0 3px rgba(13, 148, 136, 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(13, 148, 136, 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 teal y borde DORADO (la luz). */
.pd-case-value {
    background: rgba(13, 148, 136, 0.05);
    border-left: 3px solid var(--pd-accent);
    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: #fef3c7; color: #92660b; }   /* chip alterno en dorado (antes verde) */

/* 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(13, 148, 136, 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; }

/* Ancho del contenido alineado al mockup (1140px), más angosto que el container xxl de Bootstrap (1320). */
.container { max-width: 1140px; }

/* ===== Navbar OSCURO, marca directa sobre el fondo (ver lighthouse-mockup.html) — SIN caja ===== */
.navbar-pd-dark {
    background: rgba(8, 34, 43, 0.95) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.18);
    box-shadow: none !important;
}
.navbar-pd-dark .navbar-brand,
.navbar-pd-dark .navbar-brand.text-primary { color: #fff !important; font-weight: 700; font-size: 1.3rem; }
/* El faro inline: el tema fuerza height:1em en los <svg> (feather) y lo aplasta a 38x16.
   Fijamos el tamaño real con !important y evitamos que el flex lo encoja. */
.navbar-pd-dark .navbar-brand svg { width: 48px !important; height: 48px !important; flex: 0 0 auto; }
.navbar-pd-dark .nav-link { color: #cfe9e4 !important; font-weight: 500; }
.navbar-pd-dark .nav-link:hover,
.navbar-pd-dark .nav-link.active { color: #fff !important; }
.navbar-pd-dark .btn-outline-light { border-color: rgba(255, 255, 255, 0.55) !important; color: #fff !important; }
.navbar-pd-dark .btn-outline-light:hover { background: rgba(255, 255, 255, 0.12) !important; color: #fff !important; }
.navbar-pd-dark .navbar-toggler { color: #cfe9e4; border-color: rgba(255, 255, 255, 0.25); }
