/* === REDESIGN B — Limpio y profesional === */
:root {
    --primary:   #012641;
    --accent:    #0DCAF0;
    --accent-dk: #0aa8cc;
    --bg:        #f0f4f8;
    --card-bg:   #ffffff;
    --text:      #1a2a3a;
    --muted:     #6c7a89;
    --border:    rgba(13,202,240,0.25);
    --shadow:    0 4px 24px rgba(1,38,67,0.10);
}

/* ---------- Base ---------- */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: Comfortaa, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1; }

/* ---------- Navbar ---------- */
.nb {
    background-color: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 2px 16px rgba(1,38,67,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nb .brand-name {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}
.nb .brand-sub {
    font-size: 0.62rem;
    color: var(--muted);
    display: block;
    letter-spacing: 1px;
}
.nb .nav-link {
    color: var(--primary) !important;
    font-weight: bold;
    padding: 0.45rem 1rem !important;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
}
.nb .nav-link:hover,
.nb .nav-link.nb-active {
    background-color: rgba(13,202,240,0.13);
    color: var(--accent-dk) !important;
}

/* ---------- Hero ---------- */
.hero-b {
    background: linear-gradient(135deg, #012641 0%, #0a3d62 55%, #0bbed8 100%);
    color: #fff;
    padding: 5rem 0 6rem;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.hero-b h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: bold;
    margin-bottom: 1rem;
}
.hero-b p {
    font-size: 1.1rem;
    opacity: 0.88;
    max-width: 540px;
    margin-bottom: 1.8rem;
}
.hero-b .tech-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 20px;
    padding: 3px 13px;
    font-size: 0.76rem;
    margin: 3px 2px;
}

/* ---------- Section heading ---------- */
.sec-label {
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-dk);
    margin-bottom: 0.3rem;
}
.sec-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.4rem;
}
.sec-sub {
    color: var(--muted);
    font-size: 0.97rem;
    max-width: 520px;
}
.divider-accent {
    height: 4px;
    width: 44px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ---------- Cards ---------- */
.card-b {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 1.8rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-b:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(1,38,67,0.14);
}
.card-b .card-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent-dk));
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
}
.card-b h5 { color: var(--primary); font-weight: bold; margin-bottom: 0.5rem; }
.card-b p  { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---------- PsiHistory highlight ---------- */
.psi-highlight {
    background: linear-gradient(135deg, rgba(1,38,67,0.12), rgba(13,202,240,0.16));
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.psi-highlight:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 22px rgba(13,202,240,0.16);
    color: var(--text);
}
.psi-badge-label {
    font-size: 0.64rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0877a0;
    margin-bottom: 3px;
}

/* ---------- About ---------- */
.about-block {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.8rem;
    margin-bottom: 1.4rem;
}
.about-block h5 {
    color: var(--accent-dk);
    font-weight: bold;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.team-member {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(13,202,240,0.12);
}
.team-member:last-child { border-bottom: none; }
.avatar-b {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent-dk));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.tm-name { font-weight: bold; color: var(--primary); font-size: 0.97rem; }
.tm-role { font-size: 0.8rem; color: var(--muted); }

/* ---------- Servicios ---------- */
.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}
.service-item:last-child { border-bottom: none; }
.si-icon { color: var(--accent-dk); font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.si-title { font-weight: bold; color: var(--primary); margin-bottom: 2px; }
.si-desc  { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
textarea.cb-textarea {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem;
    font-family: Comfortaa, sans-serif;
    resize: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: var(--text);
    width: 100%;
}
textarea.cb-textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,202,240,0.14);
}

/* ---------- Buttons ---------- */
.btn-b-primary {
    background: linear-gradient(135deg, var(--primary), #0a3d62);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.8rem;
    font-family: Comfortaa, sans-serif;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}
.btn-b-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-b-accent {
    background-color: var(--accent);
    color: var(--primary) !important;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.8rem;
    font-family: Comfortaa, sans-serif;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.btn-b-accent:hover { background-color: var(--accent-dk); transform: translateY(-1px); }

/* ---------- Footer ---------- */
.footer-b {
    background-color: var(--primary);
    color: rgba(255,255,255,0.75);
    padding: 1.2rem 0;
    font-size: 0.86rem;
    margin-top: auto;
}
.footer-b .fb-brand { font-weight: bold; color: #fff; }
.footer-b a { color: var(--accent); text-decoration: none; }
.footer-b a:hover { color: #fff; }
