/* ==========================
   Blaconnect – main.css
   Estilo corporativo base
   (Tema claro azul + blanco)
   ========================== */

:root {
    --bc-bg: #ffffff;
    --bc-bg-alt: #f3f6ff;
    --bc-primary: #003B8E;               /* Azul corporativo */
    --bc-primary-soft: rgba(0, 59, 142, 0.08);
    --bc-accent: #007bff;                /* Azul acento */
    --bc-text: #09101f;
    --bc-text-muted: #6b7280;
    --bc-border: #d1d5db;
    --bc-danger: #ef3c26;

    --bc-radius-lg: 18px;
    --bc-radius-md: 12px;
    --bc-radius-pill: 999px;

    --bc-shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.10);
    --bc-shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08);
}

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

html,
body {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at top, #f3f6ff 0, #ffffff 45%, #eef2ff 100%);
    color: var(--bc-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

/* CONTENEDOR GENERAL */
.bc-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================
   HEADER / NAVBAR
   ========================== */

.bc-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.bc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.bc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bc-logo img {
    height:45px;
    width: auto;
}

.bc-logo span {
    font-weight: 650;
    letter-spacing: 0.04em;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--bc-primary);
}

/* NAV DESKTOP */
.bc-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}

.bc-nav a {
    text-decoration: none;
    color: var(--bc-text-muted);
    font-size: 0.92rem;
    padding: 6px 4px;
    position: relative;
    transition: color 0.2s ease;
}

.bc-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--bc-primary), var(--bc-accent));
    transition: width 0.2s ease;
}

.bc-nav a:hover {
    color: var(--bc-primary);
}

.bc-nav a:hover::after,
.bc-nav a.active::after {
    width: 100%;
}

/* BURGER MENU (MÓVIL) */
.bc-burger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.bc-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--bc-primary);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bc-burger.bc-burger-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.bc-burger.bc-burger-open span:nth-child(2) {
    opacity: 0;
}

.bc-burger.bc-burger-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* NAV MÓVIL */
@media (max-width: 768px) {
    .bc-burger {
        display: flex;
    }

    .bc-nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--bc-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .bc-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px 16px;
        gap: 10px;
    }

    .bc-nav.bc-nav-open {
        max-height: 260px;
    }
}

/* ==========================
   HERO
   ========================== */

.bc-hero {
    padding: 72px 0 64px;
}

.bc-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 32px;
    align-items: center;
}

.bc-hero-text h1 {
    font-size: 2.4rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
    color: var(--bc-primary);
}

.bc-hero-text h1 span {
    font-size: 1.6rem;
    font-weight: 500;
    display: block;
    margin-top: 10px;
    color: var(--bc-accent);
}

.bc-hero-text p {
    max-width: 560px;
    color: var(--bc-text-muted);
    font-size: 0.98rem;
    margin-bottom: 20px;
}

.bc-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--bc-radius-pill);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

.bc-btn-primary {
    background: linear-gradient(135deg, var(--bc-primary), #001f4f);
    color: #fff;
    box-shadow: var(--bc-shadow-soft);
}

.bc-btn-primary:hover {
    transform: translateY(-1px);
}

.bc-btn-outline {
    border-color: rgba(30, 64, 175, 0.45);
    color: var(--bc-primary);
    background: #ffffff;
}

.bc-btn-outline:hover {
    border-color: var(--bc-primary);
    background: var(--bc-primary-soft);
}

.bc-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bc-hero-badges span {
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: var(--bc-primary);
}

/* Panel derecho del hero */
.bc-hero-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bc-hero-card {
    background: #ffffff;
    border-radius: var(--bc-radius-lg);
    padding: 16px 18px 16px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: var(--bc-shadow-card);
    font-size: 0.9rem;
}

.bc-hero-card h3,
.bc-hero-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--bc-primary);
}

.bc-hero-card ul {
    margin-left: 18px;
    margin-top: 4px;
    color: var(--bc-text-muted);
}

.bc-hero-card-secondary {
    background: #f3f6ff;
}

/* RESPONSIVE HERO */
@media (max-width: 960px) {
    .bc-hero-inner {
        grid-template-columns: 1fr;
    }

    .bc-hero {
        padding-top: 48px;
    }

    .bc-hero-panel {
        max-width: 480px;
        margin-top: 6px;
    }
}

/* ==========================
   SECCIONES GENERALES
   ========================== */

.bc-section {
    padding: 60px 0;
}

.bc-section-alt {
    background: var(--bc-bg-alt);
}

.bc-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.bc-section-header h2 {
    font-size: 1.7rem;
    margin-bottom: 4px;
    color: var(--bc-primary);
}

.bc-section-header p {
    color: var(--bc-text-muted);
    font-size: 0.95rem;
}

/* GRIDS */
.bc-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 28px;
}

.bc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 960px) {
    .bc-grid-2 {
        grid-template-columns: 1fr;
    }
    .bc-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================
   TARJETAS / CARDS
   ========================== */

.bc-card {
    padding: 16px 16px 18px;
    border-radius: var(--bc-radius-lg);
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: var(--bc-shadow-card);
    font-size: 0.9rem;
}

.bc-card h3 {
    margin-bottom: 4px;
    font-size: 1.1rem;
    color: var(--bc-primary);
}

.bc-card-tag {
    font-size: 0.8rem;
    color: var(--bc-accent);
    margin-bottom: 8px;
}

.bc-card p {
    color: var(--bc-text-muted);
    margin-bottom: 8px;
}

.bc-list {
    list-style: disc;
    margin-left: 18px;
    margin-bottom: 10px;
    color: var(--bc-text-muted);
}

.bc-card-link {
    font-size: 0.9rem;
    color: var(--bc-primary);
    text-decoration: none;
}

.bc-card-link:hover {
    text-decoration: underline;
}

/* Servicios simples */
.bc-service {
    padding: 16px 16px 18px;
    border-radius: var(--bc-radius-md);
    border: 1px solid rgba(209, 213, 219, 0.9);
    background: #ffffff;
    font-size: 0.9rem;
    box-shadow: var(--bc-shadow-soft);
}

.bc-service h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--bc-primary);
}

/* ==========================
   ORGANIGRAMA BLOQUE
   ========================== */

.bc-organigrama {
    margin-top: 26px;
    padding: 16px;
    border-radius: var(--bc-radius-md);
    background: #ffffff;
    border: 1px dashed rgba(148, 163, 184, 0.9);
    font-size: 0.85rem;
    color: var(--bc-text-muted);
}

.bc-organigrama pre {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: pre;
    overflow-x: auto;
}

/* ==========================
   DOCUMENTACIÓN
   ========================== */

.bc-doc-list {
    list-style: disc;
    margin-left: 18px;
    color: var(--bc-text-muted);
}

.bc-doc-list li {
    margin-bottom: 8px;
}

/* ==========================
   FORMULARIO DE CONTACTO
   ========================== */

.bc-contact-grid {
    align-items: flex-start;
}

.bc-form {
    background: #ffffff;
    border-radius: var(--bc-radius-lg);
    border: 1px solid rgba(209, 213, 219, 0.9);
    padding: 16px 16px 18px;
    box-shadow: var(--bc-shadow-card);
}

.bc-form-group {
    margin-bottom: 12px;
}

.bc-form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--bc-text);
}

.bc-form-group input,
.bc-form-group textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--bc-border);
    padding: 8px 10px;
    background: #ffffff;
    color: var(--bc-text);
    font-size: 0.9rem;
    outline: none;
}

.bc-form-group input:focus,
.bc-form-group textarea:focus {
    border-color: var(--bc-primary);
    box-shadow: 0 0 0 1px var(--bc-primary-soft);
}

.bc-form-note {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--bc-text-muted);
}

/* ==========================
   IMÁGENES GENERALES
   ========================== */

/* Imágenes dentro de tarjetas (bc-card, hero-card, servicios) */
.bc-card-img,
.bc-service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--bc-radius-md);
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

/* Hero – imágenes dentro del panel derecho */
.bc-hero-card .bc-card-img {
    height: 150px;
    border-radius: var(--bc-radius-md);
    object-fit: cover;
}

/* Imágenes estándar dentro de secciones (nosotros, misión, visión) */
.bc-image {
    width: 100%;
    height: auto;
    border-radius: var(--bc-radius-lg);
    margin-bottom: 14px;
    box-shadow: var(--bc-shadow-soft);
}

/* Imágenes grandes tipo banner (documentación, contacto) */
.bc-image-full {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--bc-radius-lg);
    box-shadow: var(--bc-shadow-card);
    margin: 0 auto 28px;
}

/* Servicios corporativos — imágenes */
.bc-service-img {
    height: 160px;
    object-fit: cover;
    border-radius: var(--bc-radius-md);
}

/* ==========================
   RESPONSIVE IMAGES
   ========================== */

/* Tablet */
@media (max-width: 960px) {
    .bc-card-img,
    .bc-service-img {
        height: 160px;
    }

    .bc-image-full {
        height: 280px;
    }
}

/* Móvil */
@media (max-width: 600px) {
    .bc-card-img,
    .bc-service-img {
        height: 140px;
    }

    .bc-hero-card .bc-card-img {
        height: 130px;
    }

    .bc-image-full {
        height: 220px;
    }
}


/* ==========================
   FOOTER
   ========================== */

.bc-footer {
    border-top: 1px solid var(--bc-border);
    padding: 18px 0;
    background: #031633;
    color: #e5e7eb;
}

.bc-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.bc-footer-small {
    font-size: 0.78rem;
    margin-top: 2px;
    color: #cbd5f5;
}

.bc-footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.bc-footer-links a {
    text-decoration: none;
    color: #cbd5f5;
    font-size: 0.82rem;
}

.bc-footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .bc-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
