:root {
    --lab-blue: #1565c0;
    --lab-blue-dark: #0d47a1;
    --lab-blue-light: #e3f2fd;
    --lab-accent: #29b6f6;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
}

/* Navbar */
.navbar-brand img {
    width: auto;
    filter: brightness(0) invert(1);
    height: 90px;
}

.navbar-lab {
    background-color: var(--lab-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.navbar-lab .navbar-nav .nav-link {
    color: rgba(255,255,255,.88) !important;
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .9rem;
    border-radius: 4px;
    transition: background .2s;
}

.navbar-lab .navbar-nav .nav-link:hover,
.navbar-lab .navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255,255,255,.15);
}

/* Hero */
.hero-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    object-position: center top;
}

/* Page header */
.page-header {
    background: var(--lab-blue);
    color: #fff;
    padding: 1.2rem 0 1rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
}

/* Content */
.content-section {
    min-height: 60vh;
    padding-bottom: 3rem;
}

.section-title {
    color: var(--lab-blue);
    font-weight: 700;
    border-left: 4px solid var(--lab-accent);
    padding-left: .75rem;
    margin-bottom: 1rem;
}

/* Coberturas */
.cobertura-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: .9rem .75rem;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}

.cobertura-card:hover {
    box-shadow: 0 4px 12px rgba(21,101,192,.15);
    border-color: var(--lab-accent);
}

.cobertura-logo-wrap {
    width: 100%;
    height: 90px;
    overflow: hidden !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.cobertura-logo {
    display: block !important;
    width: 100% !important;
    height: 64px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    filter: grayscale(20%);
    transition: filter .2s;
}

.cobertura-card:hover .cobertura-logo {
    filter: grayscale(0%);
}

.cobertura-name {
    font-weight: 700;
    color: var(--lab-blue);
    font-size: .88rem;
}

/* Info list */
.info-item {
    padding: .75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    font-weight: 600;
    color: var(--lab-blue);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.horario-badge {
    background: var(--lab-blue);
    color: #fff;
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: 1.05rem;
    font-weight: 600;
    display: inline-block;
}

/* Análisis */
.analisis-item {
    margin-bottom: 1.75rem;
}

.analisis-titulo {
    background: var(--lab-blue-light);
    color: var(--lab-blue-dark);
    font-weight: 700;
    padding: .5rem .9rem;
    border-radius: 6px;
    margin-bottom: .6rem;
}

/* Determinaciones */
.letras-index a {
    display: inline-block;
    padding: .25rem .5rem;
    margin: .15rem;
    border-radius: 4px;
    background: #f5f5f5;
    color: var(--lab-blue);
    text-decoration: none;
    font-weight: 600;
    transition: background .15s;
}

.letras-index a:hover,
.letras-index a.activa {
    background: var(--lab-blue);
    color: #fff;
}

.letras-index .letra-sin-datos {
    display: inline-block;
    padding: .25rem .5rem;
    margin: .15rem;
    color: #bbb;
    font-weight: 600;
}

.det-item {
    padding: .6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.det-nombre {
    font-weight: 600;
    color: #222;
}

.det-desc {
    color: #666;
    font-size: .9rem;
}

/* Contacto */
.contact-form .form-label {
    font-weight: 600;
    font-size: .9rem;
}

.btn-lab {
    background: var(--lab-blue);
    border-color: var(--lab-blue);
    color: #fff;
    font-weight: 600;
    padding: .5rem 2rem;
}

.btn-lab:hover {
    background: var(--lab-blue-dark);
    border-color: var(--lab-blue-dark);
    color: #fff;
}

.btn-labonline {
    background: #e91e8c;
    color: #fff !important;
    font-weight: 700;
    padding: .4rem 1.2rem;
    border-radius: 6px;
    font-size: .92rem;
    letter-spacing: .02em;
    transition: background .2s;
    white-space: nowrap;
}

.btn-labonline:hover {
    background: #c2177a;
    color: #fff !important;
}

/* Footer */
.site-footer {
    background: #1a237e;
    color: rgba(255,255,255,.8);
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
    font-size: .9rem;
}

.site-footer a {
    color: var(--lab-accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: .5rem;
}

/* Botón flotante WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    z-index: 999;
    transition: transform .2s, box-shadow .2s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

/* Acordeón — fix mobile */
.accordion-button {
    align-items: flex-start;
}
.accordion-button > span {
    flex: 1;
    min-width: 0;
    margin-right: .5rem;
}
.accordion-button > span small {
    display: block;
    margin-left: 0 !important;
    margin-top: 2px;
    line-height: 1.3;
}
@media (max-width: 575px) {
    .accordion-button {
        padding-right: 3.5rem;
    }
}

/* Micrófono — búsqueda por voz */
#btn-mic.escuchando {
    color: #dc3545;
    border-color: #dc3545;
    background: #fff0f0;
    animation: pulso-mic .9s ease-in-out infinite;
}
#btn-mic.error-mic {
    color: #dc3545;
    border-color: #dc3545;
}
@keyframes pulso-mic {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .6; transform: scale(.92); }
}

/* ── Home cards hover ── */
.home-card {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: default;
}
.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(21,101,192,.18) !important;
    border-color: var(--lab-accent) !important;
}
