/**
 * DevSoft Build — tema claro profesional (override)
 */
:root {
    --ds-brand: #003333;
    --ds-brand-mid: #0a5252;
    --ds-brand-light: #0d6e6e;
    --ds-accent: #0891b2;
    --ds-accent-bright: #00e5ff;
    --ds-surface: #ffffff;
    --ds-surface-muted: #f0f7f7;
    --ds-surface-alt: #e8f2f2;
    --ds-border: rgba(0, 51, 51, 0.1);
    --ds-shadow: 0 8px 32px rgba(0, 51, 51, 0.08);
    --ds-shadow-sm: 0 4px 16px rgba(0, 51, 51, 0.06);
    --text-body: #475569;
    --text-heading: #0f172a;
    --text-muted: #64748b;

    --color-primary-dark: var(--ds-surface-muted);
    --color-primary-medium: var(--ds-surface-alt);
    --color-primary-light: #dce8e8;
    --color-accent: var(--ds-accent);
    --color-accent-hover: #0e7490;
    --color-accent-light: #06b6d4;
    --color-white: var(--text-heading);
    --color-gray-light: #f1f5f9;
    --color-gray-medium: var(--text-muted);
    --color-gray-dark: #334155;
}

/* ── Base ── */
body.central-site {
    color: var(--text-body);
    background: linear-gradient(165deg, #e4f0f0 0%, #eef4f8 30%, #f4f7fb 60%, #e9eff5 100%);
    background-attachment: fixed;
}

body.central-site #main-content {
    position: relative;
}

body.central-site #main-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 10% 0%, rgba(0, 229, 255, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 30%, rgba(0, 51, 51, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(8, 145, 178, 0.04) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

body.central-site #main-content > * {
    position: relative;
    z-index: 1;
}

body.central-site h1,
body.central-site h2,
body.central-site h3,
body.central-site h4,
body.central-site .section-title {
    color: var(--text-heading);
}

/* ── Header fijo ── */
.header,
.header .navbar,
#navbar {
    background: var(--ds-brand) !important;
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    box-shadow: 0 2px 16px rgba(0, 51, 51, 0.22) !important;
    backdrop-filter: none;
}

.navbar-brand .logo,
.nav-link {
    color: #ffffff !important;
}

.nav-link.active,
.nav-link:hover {
    color: var(--ds-accent-bright) !important;
}

.mobile-menu-toggle span {
    background: #ffffff;
}

/* ── Botones ── */
.btn-primary {
    background: linear-gradient(135deg, var(--ds-accent) 0%, #06b6d4 100%);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0e7490 0%, var(--ds-accent) 100%);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.45);
    transform: translateY(-1px);
}

.btn-outline {
    color: var(--ds-accent);
    border-color: var(--ds-accent);
    background: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
    background: var(--ds-accent);
    color: #fff !important;
    border-color: var(--ds-accent);
}

/* ── Hero home ── */
.hero-section .hero-default {
    background:
        linear-gradient(135deg, var(--ds-brand) 0%, var(--ds-brand-mid) 45%, var(--ds-brand-light) 100%);
}

.hero-overlay {
    background:
        radial-gradient(ellipse 70% 55% at 75% 15%, rgba(0, 229, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 15% 85%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0, 51, 51, 0.15) 0%, rgba(0, 51, 51, 0.75) 100%);
}

.hero-title {
    color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    color: var(--ds-accent-bright) !important;
}

.hero-description {
    color: rgba(255, 255, 255, 0.88) !important;
}

.hero-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
    color: #fff !important;
}

/* ── Page hero (inner pages) ── */
.page-hero {
    background: linear-gradient(135deg, var(--ds-brand) 0%, var(--ds-brand-mid) 55%, #055f6e 100%);
    border-bottom: 1px solid rgba(0, 229, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 229, 255, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-title {
    color: #ffffff !important;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* ── Secciones ── */
.section {
    background: transparent;
}

.section-dark,
.process-section,
.testimonials-section,
.technologies-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(232, 242, 242, 0.85) 100%);
    border-top: 1px solid var(--ds-border);
    border-bottom: 1px solid var(--ds-border);
}

.section-light {
    background: transparent;
}

.section-description {
    color: var(--text-muted);
}

.section-header .section-title {
    position: relative;
    display: inline-block;
}

.section-header .section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--ds-accent), var(--ds-accent-bright));
    border-radius: 2px;
    margin: 0.65rem auto 0;
}

/* ── Stats band ── */
.stats-section {
    background: linear-gradient(135deg, var(--ds-brand) 0%, var(--ds-brand-mid) 100%);
    border-top: none;
    border-bottom: none;
    box-shadow: 0 4px 24px rgba(0, 51, 51, 0.15);
}

.stats-section .stat-value,
.stats-section .stat-title {
    color: #ffffff !important;
}

.stats-section .stat-description {
    color: rgba(255, 255, 255, 0.72) !important;
}

.stats-section .stat-icon {
    color: var(--ds-accent-bright) !important;
}

.stats-section .stat-suffix {
    color: var(--ds-accent-bright) !important;
}

/* ── Cards ── */
.service-card,
.project-card,
.stat-card,
.testimonial-card,
.process-card,
.process-item,
.tech-card,
.blog-card,
.kit-card,
.mission-vision-item,
.value-item,
.quote-sidebar-card,
.quote-process-item {
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    box-shadow: var(--ds-shadow-sm);
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.project-card:hover,
.testimonial-card:hover,
.process-item:hover,
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ds-shadow);
    border-color: rgba(8, 145, 178, 0.25);
}

.service-card {
    border-top: 3px solid var(--ds-accent);
}

.service-title,
.process-title,
.project-title,
.testimonial-name,
.blog-card__title,
.about-text h2,
.contact-info h2,
.contact-details h3,
.mission-vision-item h3,
.value-item h3,
.empty-state h3 {
    color: var(--text-heading) !important;
}

.service-description,
.process-description,
.project-description,
.testimonial-text,
.about-text p,
.mission-vision-item p {
    color: var(--text-body) !important;
}

.service-icon,
.process-number,
.mv-icon {
    color: var(--ds-accent) !important;
}

.process-number {
    background: linear-gradient(135deg, var(--ds-accent), #06b6d4) !important;
    color: #fff !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    margin: 0 auto 0.5rem !important;
}

.process-item__head {
    height: 108px !important;
    min-height: 108px !important;
    max-height: 108px !important;
}

.process-icon {
    color: var(--ds-accent) !important;
}

.process-item {
    border-top: 3px solid var(--ds-accent);
}

.process-item .process-title {
    min-height: 3rem;
    align-items: flex-start !important;
}

.process-item .process-description {
    text-align: center;
}

.service-link {
    color: var(--ds-accent);
}
}

/* ── Projects ── */
.project-card {
    overflow: hidden;
}

.project-card__body {
    background: var(--ds-surface);
}

/* ── Testimonials ── */
.testimonials-section {
    background: linear-gradient(180deg, rgba(232, 242, 242, 0.9) 0%, rgba(255, 255, 255, 0.75) 100%);
}

.testimonial-card__quote {
    color: var(--ds-accent);
}

/* ── Technologies ── */
.tech-category {
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    box-shadow: var(--ds-shadow-sm);
}

.tech-category-title {
    color: var(--ds-accent) !important;
}

.tech-item {
    background: var(--ds-surface-muted);
    color: var(--text-heading) !important;
    border: 1px solid var(--ds-border);
}

/* ── FAQ ── */
.faq-item {
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    box-shadow: var(--ds-shadow-sm);
}

.faq-question {
    color: var(--text-heading);
}

.faq-answer p {
    color: var(--text-body);
}

.faq-cta {
    color: var(--text-muted);
}

.faq-cta a {
    color: var(--ds-accent);
}

/* ── CTA ── */
.cta-section {
    background: linear-gradient(135deg, var(--ds-brand) 0%, var(--ds-brand-mid) 40%, var(--ds-accent) 100%);
    border-top: 1px solid rgba(0, 229, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta-title {
    color: #ffffff !important;
}

.cta-description {
    color: rgba(255, 255, 255, 0.85) !important;
}

.cta-section .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: transparent;
}

.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

/* ── Forms & contact ── */
.contact-form,
.quote-form {
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    box-shadow: var(--ds-shadow);
}

.quote-sidebar-card {
    background: linear-gradient(145deg, var(--ds-brand) 0%, var(--ds-brand-mid) 100%);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.quote-sidebar-card h2,
.quote-benefit strong {
    color: #ffffff !important;
}

.quote-benefit span {
    color: rgba(255, 255, 255, 0.78) !important;
}

.quote-benefit-icon {
    background: rgba(0, 229, 255, 0.15);
    color: var(--ds-accent-bright);
}

.quote-form-header h2 {
    color: var(--text-heading) !important;
}

.quote-form-header p {
    color: var(--text-muted);
}

.quote-process-item {
    background: var(--ds-surface);
}

.quote-process-item h3 {
    color: var(--text-heading) !important;
}

.quote-process-item p {
    color: var(--text-body);
}

.contact-icon {
    background: rgba(8, 145, 178, 0.12);
    color: var(--ds-accent) !important;
}

.contact-details a {
    color: var(--ds-accent);
}

/* ── Blog ── */
.blog-list-section {
    background: transparent;
}

.blog-card__meta {
    color: var(--text-muted);
}

.blog-card__excerpt {
    color: var(--text-body);
}

.blog-detail-hero {
    background: linear-gradient(135deg, var(--ds-brand) 0%, var(--ds-brand-mid) 100%);
}

.blog-detail-hero__title,
.blog-detail-hero__lead {
    color: #fff !important;
}

.blog-detail-article {
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    box-shadow: var(--ds-shadow-sm);
}

.blog-detail-prose p {
    color: var(--text-body);
}

/* ── Empty state ── */
.empty-state {
    background: var(--ds-surface);
    border: 1px dashed var(--ds-border);
    border-radius: 16px;
    padding: 3rem 2rem;
}

.empty-state p {
    color: var(--text-muted);
}

/* ── Footer ── */
.footer.footer-pro {
    background: linear-gradient(180deg, #0f172a 0%, #051a1a 100%);
    color: #e2e8f0;
    border-top: 1px solid rgba(0, 229, 255, 0.12);
}

.footer.footer-pro a {
    color: #e2e8f0;
}

.footer-pro__desc,
.footer-pro__meta-label {
    color: #94a3b8;
}

/* ── Flash ── */
.flash-message {
    background: linear-gradient(90deg, #ecfeff 0%, #cffafe 100%);
    color: #0e7490;
    border-bottom: 1px solid #a5f3fc;
}

/* ── Kits hero (override inline kits css) ── */
.kits-hero {
    background: linear-gradient(135deg, var(--ds-brand) 0%, var(--ds-brand-mid) 55%, #055f6e 100%) !important;
    color: #fff;
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

.kit-detail-page {
    background: transparent !important;
    padding-top: calc(80px + 1.5rem);
    padding-bottom: 2rem;
}

.kits-hero .section-title,
.kits-hero .page-title,
.kits-hero .page-subtitle {
    color: #fff !important;
}

.kits-hero .section-description,
.kits-hero .page-subtitle {
    color: rgba(255, 255, 255, 0.82) !important;
}

.kits-hero .section-title::after {
    background: linear-gradient(90deg, #00e5ff, rgba(255, 255, 255, 0.6));
}

.kit-detail-page h1 {
    color: var(--text-heading, #0f172a) !important;
}

.kits-filter {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.kits-filter.is-active,
.kits-filter:hover {
    background: var(--ds-accent-bright);
    border-color: var(--ds-accent-bright);
    color: var(--ds-brand);
}

.kit-detail-page .container--wide {
    max-width: 1380px;
}

.mission-vision-item,
.value-item {
    padding: 2rem 1.5rem;
}

.value-item i {
    color: var(--ds-accent) !important;
}

/* ── Project detail ── */
.project-detail-hero {
    background: linear-gradient(135deg, var(--ds-brand) 0%, var(--ds-brand-mid) 100%);
}

.project-detail-hero__title {
    color: #fff !important;
}

.project-detail-article,
.project-fact {
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    box-shadow: var(--ds-shadow-sm);
}

.project-fact__label {
    color: var(--text-muted);
}

.project-fact__value {
    color: var(--text-heading);
}

.project-detail-article__head h2 {
    color: var(--text-heading) !important;
}

.project-detail-prose p {
    color: var(--text-body);
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
    .navbar-menu.active {
        background: var(--ds-brand);
        border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    }
}
