/* ================================================
   CALEB Group – Microsoft Fluent Design System
   ================================================ */

/* ── Design tokens ── */
:root {
    --ms-blue:        #0067b8;
    --ms-blue-hover:  #005a9e;
    --ms-blue-light:  #eff6fc;
    --ms-black:       #000000;
    --ms-near-black:  #1b1b1b;
    --ms-dark:        #242424;
    --ms-mid:         #404040;
    --ms-muted:       #616161;
    --ms-border:      #d2d2d2;
    --ms-gray-bg:     #f2f2f2;
    --ms-white:       #ffffff;
    --ms-cyan:        #00d4ff;          /* kept for obs block */
    --header-h:       48px;
    --ease:           cubic-bezier(.16,1,.3,1);
    --shadow-2:       0 2px 4px rgba(0,0,0,.12);
    --shadow-4:       0 4px 8px rgba(0,0,0,.14);
    --shadow-8:       0 8px 16px rgba(0,0,0,.14);
    --radius-sm:      4px;
    --radius-md:      8px;

    /* ── Legacy aliases (interior page <style> blocks) ── */
    --primary:        #0067b8;
    --hover:          #005a9e;
    --accent:         #0067b8;
    --dark:           #242424;
    --text-muted:     #616161;
    --white:          #ffffff;
    --silver:         #f2f2f2;
    --shadow:         0 2px 4px rgba(0,0,0,.12);
    --header-height:  48px;
    --transition:     0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system,
                 BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    background: var(--ms-white);
    color: var(--ms-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

/* ── Container ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════
   HEADER  — Microsoft dark nav bar
═══════════════════════════════════════════ */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--ms-black);
    z-index: 1000;
    border-bottom: 1px solid #2b2b2b;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);   /* white logo on dark bar */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-links li a {
    display: block;
    padding: 0 16px;
    height: var(--header-h);
    line-height: var(--header-h);
    font-size: 14px;
    font-weight: 400;
    color: #d9d9d9;
    letter-spacing: .01em;
    transition: color .15s ease, background .15s ease;
    white-space: nowrap;
}

.nav-links li a:hover {
    color: var(--ms-white);
    background: #1f1f1f;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
    display: inline-block;
    padding: 11px 24px;
    background: var(--ms-blue);
    color: var(--ms-white);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--ms-blue);
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease;
    line-height: 1.4;
}

.btn-primary:hover {
    background: var(--ms-blue-hover);
    box-shadow: var(--shadow-4);
}

.btn-secondary {
    display: inline-block;
    padding: 11px 24px;
    background: transparent;
    color: var(--ms-dark);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--ms-dark);
    cursor: pointer;
    transition: background .15s ease;
    line-height: 1.4;
}

.btn-secondary:hover {
    background: var(--ms-gray-bg);
}

/* white variant used inside hero */
.hero .btn-secondary {
    color: var(--ms-white);
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.08);
}
.hero .btn-secondary:hover {
    background: rgba(255,255,255,.18);
}

/* ═══════════════════════════════════════════
   SECTION UTILS
═══════════════════════════════════════════ */
section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--ms-near-black);
    line-height: 1.15;
    margin-bottom: 14px;
}

.line {
    width: 40px;
    height: 3px;
    background: var(--ms-blue);
    border-radius: 2px;
    /* not centered — left-aligned like MS */
}

/* center variant used on some sections */
.section-title.centered,
.clients .section-title,
.contact .section-title {
    text-align: center;
}
.section-title.centered .line,
.clients .section-title .line,
.contact .section-title .line {
    margin: 0 auto;
}

/* ═══════════════════════════════════════════
   HERO — Full bleed video/image
═══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    margin-top: var(--header-h);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--ms-near-black);
    background-image:
        radial-gradient(ellipse 900px 600px at 10% 40%, rgba(0,103,184,.35) 0%, transparent 60%),
        url("slideprincipal.png");
    background-size: cover;
    background-position: center;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: .55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0,0,0,.72) 0%,
        rgba(0,0,0,.45) 50%,
        rgba(0,0,0,.10) 100%
    );
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--ms-white);
    margin-bottom: 20px;
    letter-spacing: -.02em;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,.85);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.65;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about {
    background: var(--ms-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--ms-mid);
    line-height: 1.75;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-8);
}

/* ═══════════════════════════════════════════
   SERVICES CARDS — Microsoft product card style
═══════════════════════════════════════════ */
.services {
    background: var(--ms-gray-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--ms-white);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid var(--ms-border);
    box-shadow: var(--shadow-2);
    transition: box-shadow .2s var(--ease), transform .2s var(--ease);
    display: block;
    color: var(--ms-dark);
}

.service-card:hover {
    box-shadow: var(--shadow-8);
    transform: translateY(-3px);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ms-near-black);
    margin-bottom: 10px;
}

.service-card p {
    font-size: .9rem;
    color: var(--ms-muted);
    line-height: 1.6;
}

/* Top accent bar on highlighted card */
.service-card[style*="border-top"] {
    border-top: 3px solid var(--ms-blue) !important;
}

/* ═══════════════════════════════════════════
   SOLUTIONS — Alternating feature blocks
═══════════════════════════════════════════ */
.solutions {
    background: var(--ms-white);
}

.solution-block {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-bottom: 88px;
    padding-bottom: 88px;
    border-bottom: 1px solid var(--ms-border);
}

.solution-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.solution-block.reverse {
    flex-direction: row-reverse;
}

.solution-media,
.solution-info {
    flex: 1;
}

.solution-media img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-8);
    aspect-ratio: 16/10;
    object-fit: cover;
}

.solution-info h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--ms-near-black);
    line-height: 1.2;
    margin-bottom: 16px;
}

.solution-info p {
    font-size: .98rem;
    color: var(--ms-mid);
    line-height: 1.75;
    margin-bottom: 28px;
}

/* Inline link style (arrow) */
.solution-info .btn-primary {
    font-size: .92rem;
    padding: 10px 22px;
}

/* ═══════════════════════════════════════════
   CLIENTS
═══════════════════════════════════════════ */
.clients {
    background: var(--ms-gray-bg);
    padding: 80px 0;
    text-align: center;
}

.clients-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 40px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 820px;
    width: 100%;
    transition: filter .2s ease, opacity .2s ease;
    filter: grayscale(100%);
    opacity: .65;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    object-fit: contain;
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact {
    background: var(--ms-white);
}

.contact .section-title {
    text-align: center;
}

.contact .section-title .line {
    margin: 0 auto;
}

.contact-card {
    background: var(--ms-gray-bg);
    border: 1px solid var(--ms-border);
    border-radius: var(--radius-md);
    padding: 56px 48px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-4);
}

.contact-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ms-near-black);
    margin-bottom: 8px;
}

.contact-card > p {
    color: var(--ms-muted);
    font-size: .95rem;
    margin-bottom: 32px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

input,
textarea {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--ms-border);
    background: var(--ms-white);
    color: var(--ms-dark);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--ms-blue);
    box-shadow: 0 0 0 2px rgba(0,103,184,.25);
}

input::placeholder,
textarea::placeholder {
    color: var(--ms-muted);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ═══════════════════════════════════════════
   FOOTER — Dark Microsoft-style
═══════════════════════════════════════════ */
footer {
    background: var(--ms-near-black);
    color: #a0a0a0;
    text-align: center;
    padding: 40px 24px;
    font-size: .82rem;
    border-top: 1px solid #2b2b2b;
}

footer p { line-height: 1.8; }

/* ═══════════════════════════════════════════
   PAGE SUBHEADER (interior pages)
═══════════════════════════════════════════ */
.page-header {
    background: var(--ms-gray-bg);
    padding: 80px 0 56px;
    margin-top: var(--header-h);
    border-bottom: 1px solid var(--ms-border);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--ms-near-black);
    line-height: 1.15;
}

/* ═══════════════════════════════════════════
   OBS & CIBERSEGURIDAD BLOCK (dark card)
═══════════════════════════════════════════ */
.obs-cyber-block {
    flex-direction: column !important;
    background: #0d1b2a;
    border-radius: var(--radius-md);
    padding: 48px 44px;
    gap: 0;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.obs-cyber-info h3 {
    font-size: 2rem;
    color: var(--ms-cyan);
    margin-bottom: 10px;
}

.obs-cyber-info > p {
    color: #aac4d8;
    font-size: 1rem;
    margin-bottom: 32px;
}

.obs-stats-bar {
    display: flex;
    align-items: center;
    background: rgba(0,103,184,.18);
    border: 1px solid rgba(0,212,255,.22);
    border-radius: var(--radius-sm);
    padding: 20px 28px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    row-gap: 16px;
}

.obs-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 100px;
}

.obs-stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ms-cyan);
    letter-spacing: -.02em;
}

.obs-stat-label {
    font-size: .62rem;
    color: #7ba8c4;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 4px;
}

.obs-stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(0,212,255,.22);
    flex-shrink: 0;
}

.obs-capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.obs-cap-item {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(0,212,255,.15);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    transition: border-color .2s ease;
}

.obs-cap-item:hover { border-color: rgba(0,212,255,.4); }

.obs-cap-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--ms-cyan);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,212,255,.2);
}

.obs-cap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.obs-cap-tags span {
    background: rgba(0,103,184,.22);
    color: #c8dff0;
    font-size: .73rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0,103,184,.38);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
    .solution-block,
    .solution-block.reverse {
        flex-direction: column;
        gap: 36px;
    }

    .solution-media img { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
    :root { --header-h: 48px; }

    .nav-links { display: none; }     /* mobile: hide links (no hamburger scope) */

    section { padding: 56px 0; }

    .hero { min-height: 90vh; }
    .hero h1 { font-size: 2rem; }

    .obs-capabilities-grid { grid-template-columns: 1fr; }
    .obs-stat-sep { display: none; }
    .obs-cyber-block { padding: 28px 18px; }

    .contact-card { padding: 36px 24px; }
}