/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #05060a;
    color: #f5f5f5;
    overflow: hidden; /* desktop: controlado por slider/paneles */
}

/* MENÚ */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 56px;
    background: rgba(5, 6, 10, 0.95);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* ✅ centrado real */
    padding: 0 12px;
    gap: 12px;
}

/* Para que el botón hamburguesa no rompa el centrado */
@media (max-width: 768px) {
    .menu-inner {
        justify-content: space-between; /* ✅ solo en móvil */
    }
}
.menu-logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-brand {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #cfd8ff;
    opacity: 0.9;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #f5f5f5;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

/* Contenedor de links */
.menu-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.menu-links button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f5f5f5;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
}

.menu-links button:hover {
    background: #00c6ff;
    border-color: #00c6ff;
    color: #05060a;
}

/* SLIDER HORIZONTAL (desktop) */
.slider {
    position: fixed;
    top: 56px;
    left: 0;
    width: 500vw;
    height: calc(100vh - 56px);
    display: flex;
    transition: transform 1.05s ease-in-out;
}

/* PANEL GENERAL */
.panel {
    width: 100vw;
    height: 100%;
    padding: 32px 7vw;
    overflow-y: auto;
}

/* SCROLLBAR */
.panel::-webkit-scrollbar {
    width: 8px;
}
.panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}
.panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

/* INICIO */
.panel-inicio {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(90deg, rgba(3, 6, 12, 0.92) 0%, rgba(3, 6, 12, 0.78) 42%, rgba(3, 6, 12, 0.62) 100%),
        url("img/inicio-bg-laboratorio-integral.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #f5f5f5;
}

.hero {
    max-width: 720px;
    text-align: left;
}

.hero-header {
    margin-bottom: 10px;
}

.hero-main {
    font-size: 3rem;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 400;
    color: #cfd8ff;
}

.hero-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin: 18px 0 20px;
}

/* Representantes: PerBet y Servimed */
.hero-representantes {
    margin-top: 80px;
    text-align: left;
}

.hero-rep-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(207, 216, 255, 0.8);
    margin-bottom: 10px;
}

/* Contenedor de logos + textos */
.hero-rep-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;          /* sin relleno */
    background: none;    /* sin fondo */
    border: none;        /* sin borde */
}

/* Cada bloque (logo + texto) */
.rep-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Logos corregidos */
.rep-logo {
    width: 40px;
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0,198,255,0.25));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.rep-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 10px rgba(0,198,255,0.45));
}

/* Texto al lado de cada logo */
.rep-text {
    font-size: 0.85rem;
    color: #dfe6ff;
    opacity: 0.9;
}

/* Separador */
.hero-rep-separator {
    font-size: 1.2rem;
    color: rgba(207,216,255,0.6);
}

.btn-cta {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
    color: #05060a;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0, 198, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 198, 255, 0.5);
}

/* ============================
   SERVICIOS PRO
============================ */

.panel-servicios {
    position: relative;
    overflow: hidden;
    padding: 120px 7vw;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* Fondo Parallax */
.servicios-parallax {
    position: absolute;
    inset: 0;
    background-image: url("img/servicios-bg.jpg");
    background-size: cover;
    background-position: center;
    filter: brightness(0.35) saturate(1.2);
    transform: translateY(0);
    will-change: transform;
    z-index: 1;
}

/* Capa oscura */
.servicios-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.85));
    z-index: 2;
}

/* Contenido */
.servicios-wrapper {
    position: relative;
    z-index: 5;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.servicios-title {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.servicios-subtitle {
    font-size: 1.2rem;
    color: #d0d8ff;
    margin-bottom: 50px;
}

/* GRID PRO */
.servicios-grid-pro {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* Tarjetas PRO */
.servicio-pro {
    background: rgba(255,255,255,0.06);
    border-radius: 22px;
    padding: 26px 22px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.55);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Icono */
.servicio-icono {
    font-size: 2.35rem;
    margin-bottom: 14px;
    opacity: 0.9;
}

/* Hover PRO */
.servicio-pro:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
    border-color: rgba(0,198,255,0.35);
}

/* Títulos */
.servicio-pro h2 {
    font-size: 1.22rem;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.22;
}

/* Texto */
.servicio-pro p {
    font-size: 0.92rem;
    color: #d0d0d0;
    line-height: 1.58;
    flex: 1 1 auto;
}


.servicio-pro-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.servicio-pro-btn:focus-visible {
    outline: 2px solid #00c6ff;
    outline-offset: 5px;
}

.servicio-ver-mas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    min-height: 50px;
    min-width: 156px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 198, 255, 0.32);
    color: #bdefff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.18;
    text-transform: uppercase;
    background: rgba(0, 198, 255, 0.08);
}

.servicio-pro-btn:hover .servicio-ver-mas,
.servicio-pro-btn:focus-visible .servicio-ver-mas {
    background: rgba(0, 198, 255, 0.18);
    color: #ffffff;
}

/* ============================
   MODALES SERVICIOS
============================ */

body.service-modal-open {
    overflow: hidden;
}

.service-modal[hidden] {
    display: none;
}

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 1.8vw, 22px);
}

.service-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 198, 255, 0.16), transparent 36%),
        rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
}

.service-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    display: grid;
    grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.16fr);
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(8, 13, 24, 0.97), rgba(5, 8, 14, 0.98)),
        rgba(5, 6, 10, 0.98);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.78), 0 0 55px rgba(0, 198, 255, 0.11);
}

.service-modal__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 198, 255, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%);
}

.service-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(5, 6, 10, 0.76);
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.service-modal__close:hover,
.service-modal__close:focus-visible {
    transform: scale(1.05);
    background: rgba(0, 198, 255, 0.18);
    border-color: rgba(0, 198, 255, 0.45);
}

.service-modal__media {
    min-height: 100%;
    background: #05060a;
    position: relative;
}

.service-modal__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 58%, rgba(5, 8, 14, 0.88));
    pointer-events: none;
}

.service-modal__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
    filter: brightness(0.82) saturate(1.08) contrast(1.04);
}

.service-modal__content {
    position: relative;
    z-index: 2;
    padding: 42px 48px 32px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    color: #f5f7ff;
}

.service-modal__content::-webkit-scrollbar {
    width: 10px;
}

.service-modal__content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.service-modal__content::-webkit-scrollbar-thumb {
    background: rgba(0, 198, 255, 0.36);
    border-radius: 999px;
}

.service-modal__eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: #7fe8ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-modal__content h2 {
    margin-bottom: 14px;
    font-size: clamp(1.85rem, 3vw, 2.75rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.service-modal__content p {
    color: #d7dcef;
    line-height: 1.62;
    font-size: 0.96rem;
    margin-bottom: 12px;
}

.service-modal__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 22px;
}

.service-modal__cols section {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 15px 16px 14px;
    background: rgba(255, 255, 255, 0.045);
}

.service-modal__cols h3 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 1rem;
}

.service-modal__cols ul {
    padding-left: 18px;
}

.service-modal__cols li {
    color: #ccd5ed;
    line-height: 1.48;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.service-modal__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    color: #041014;
    background: linear-gradient(135deg, #00c6ff, #86f7ff);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.03em;
    box-shadow: 0 14px 30px rgba(0, 198, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-modal__cta:hover,
.service-modal__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 198, 255, 0.42);
}

@media (max-width: 860px) {
    .service-modal {
        padding: 18px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .service-modal__dialog {
        grid-template-columns: 1fr;
        max-height: none;
        margin: 18px 0;
    }

    .service-modal__media img {
        min-height: 230px;
        height: 32vh;
    }

    .service-modal__media::after {
        background: linear-gradient(180deg, transparent 40%, rgba(5, 8, 14, 0.92));
    }

    .service-modal__content {
        padding: 34px 24px 28px;
        max-height: none;
        overflow: visible;
    }

    .service-modal__cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .service-modal {
        padding: 10px;
    }

    .service-modal__dialog {
        border-radius: 22px;
        margin: 10px 0;
    }

    .service-modal__close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 1.55rem;
    }

    .service-modal__content {
        padding: 30px 18px 24px;
    }

    .service-modal__content p {
        font-size: 0.95rem;
    }

    .service-modal__cta {
        width: 100%;
    }
}

/* LABORATORIO */
.laboratorio-panel {
    position: relative;
    overflow: hidden;
    padding: 60px 7vw;
    color: #fff;
}

.lab-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    filter: brightness(0.65);
}

.lab-bg-audio {
    background-image:
        linear-gradient(120deg, rgba(0,0,0,0.75), rgba(0,0,40,0.85)),
        url("img/laboratorio-diagnostico-electronico.jpg");
}

.lab-bg-med {
    background-image:
        linear-gradient(120deg, rgba(0,20,10,0.8), rgba(0,60,40,0.9)),
        url("img/electromedicina-laboratorio-tecnico.jpg");
}

.lab-bg-software {
    background-image:
        linear-gradient(120deg, rgba(0,0,0,0.78), rgba(0,40,70,0.88)),
        url("img/software-desarrollo-1.jpg");
}

.lab-bg.visible {
    opacity: 1;
}

.lab-content {
    position: relative;
    z-index: 5;
    max-width: 980px;
    margin: 0 auto;
}

.lab-header h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.lab-subtitle {
    font-size: 1.1rem;
    max-width: 800px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.lab-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    background: rgba(0,0,0,0.5);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
}

.lab-tab {
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    color: #d0d8ff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lab-tab.activo {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #000;
}

.lab-views-wrapper {
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.lab-views {
    display: flex;
    width: 300%;
    transition: transform 0.6s ease-in-out;
}

.lab-view {
    width: 33.3333%;
    padding: 18px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lab-view.activo {
    opacity: 1;
    transform: translateX(0);
}

.lab-glass {
    background: rgba(0,0,0,0.55);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.lab-glass-med {
    background: rgba(0,40,20,0.55);
    border-color: rgba(120,255,200,0.25);
    color: #eafff5;
}

.lab-glass-software {
    background: rgba(0, 20, 36, 0.62);
    border-color: rgba(0, 198, 255, 0.28);
    color: #eef8ff;
}

.lab-proof {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.lab-proof-card {
    position: relative;
    min-height: 104px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.13);
    background: rgba(0,0,0,0.32);
    box-shadow: 0 14px 28px rgba(0,0,0,0.38);
}

.lab-proof-card img {
    width: 100%;
    height: 100%;
    min-height: 104px;
    display: block;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.04) brightness(0.88);
    transform: scale(1.01);
}

.lab-proof-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.68));
    pointer-events: none;
}

.lab-proof-card figcaption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    color: #f5f7ff;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0,0,0,0.72);
}

.lab-proof-card--main figcaption {
    font-size: 0.86rem;
}

/* TIENDA */
.tienda-panel {
    background: radial-gradient(circle at top, #101522 0, #05060a 55%, #020308 100%);
    color: #f5f5f5;
    overflow-y: auto;
    overflow-x: hidden;
}

.tienda-subtitle {
    margin-bottom: 16px;
    color: #cfd8ff;
}

.tienda-menu {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    background: rgba(5, 6, 10, 0.85);
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 100%;
}

.tienda-menu button {
    background: transparent;
    border: none;
    color: #cfd8ff;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.tienda-menu button.activo {
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    color: #05060a;
}

@media (max-width: 768px) {
    .tienda-menu {
        border-radius: 22px;
        padding: 6px;
        width: min(100%, 520px);
        margin-left: auto;
        margin-right: auto;
    }

    .tienda-menu button {
        flex: 1 1 190px;
        max-width: 240px;
    }
}

@media (max-width: 430px) {
    .tienda-menu button {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.subpanel {
    display: none;
    margin-top: 10px;
}

.subpanel.activo {
    display: block;
}

.productos-grid {
    margin-top: 10px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .productos-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 14px;
    }

    .producto {
        flex: 0 1 calc(33.333% - 14px);
        width: calc(33.333% - 14px);
        max-width: 320px;
    }
}

@media (max-width: 900px) {
    .producto {
        flex: 0 1 calc(50% - 14px);
        width: calc(50% - 14px);
        max-width: 320px;
    }
}

@media (max-width: 600px) {
    .productos-grid {
        justify-content: center;
    }

    .producto {
        flex: 0 1 min(100%, 320px);
        width: min(100%, 320px);
        max-width: 320px;
    }
}

.producto {
    position: relative;
    background: rgba(10, 12, 20, 0.9);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.producto-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 7;
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--producto-estado-bg, #ffcc00);
    color: var(--producto-estado-text, #1b1300);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0,0,0,0.38), 0 0 14px rgba(255,204,0,0.2);
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.14);
}

.producto-badge--agotado,
.producto-badge--oferta,
.producto-badge--proximamente,
.producto-badge--consultar {
    background: var(--producto-estado-bg, #ffcc00);
    color: var(--producto-estado-text, #1b1300);
}

/* CARRUSEL SIMPLE */
.carousel {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at top, #1a1f2b 0, #05060a 70%);
}

/* TRACK */
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
    width: 100%;
}

/* IMÁGENES */
.carousel-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #0a0b10;
}

/* BOTONES DE NAVEGACIÓN */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.85);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

/* DOTS DE NAVEGACIÓN */
.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.carousel-dots button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
}

.carousel-dots button.activo {
    background: #00c6ff;
}

/* Precio visible + botón de producto */
.producto-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.producto-precio {
    color: var(--producto-precio-color, #ffcc00);
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 204, 0, 0.12);
    white-space: nowrap;
    transition: transform 0.18s ease, text-shadow 0.18s ease, color 0.18s ease;
}

.producto:hover .producto-precio {
    color: var(--producto-precio-color, #ffd84d);
    transform: translateY(-1px) scale(1.03);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 204, 0, 0.38);
}

.producto-precio[hidden] {
    display: none;
}

.btn-comprar {
    flex: 0 0 auto;
    margin-left: auto;
    background: #000;
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-comprar:hover {
    background: #0072ff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 114, 255, 0.6);
}

.producto h3 {
    font-size: 1rem;
    margin-top: 4px;
}

.producto p {
    font-size: 0.9rem;
    color: #cfd8ff;
}

/* CONTACTO */
.panel-contacto {
    background: radial-gradient(circle at top, #0b0e16 0, #05060a 55%, #020308 100%);
    color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 7vw;
}

.contacto-glass {
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    padding: 40px;
    max-width: 900px;
    width: 100%;
}

.contacto-glass h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.contacto-glass p {
    font-size: 1.05rem;
    color: #dcdcdc;
    margin-bottom: 30px;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contacto-form label {
    font-size: 0.95rem;
    color: #cfd8ff;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.contacto-form textarea {
    height: 140px;
    resize: none;
}

.btn-enviar {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
    padding: 14px;
    border-radius: 999px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: 0.25s ease;
}

.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,198,255,0.35);
}

.contacto-extra {
    margin-top: 40px;
    text-align: center;
}

.contacto-extra p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.link-wsp {
    color: #4ecb71;
    font-weight: 700;
    text-decoration: none;
}

.link-fono,
.link-mail {
    color: #cfd8ff;
    text-decoration: none;
}

.link-mail:hover {
    text-decoration: underline;
}

.footer-link {
    color: inherit;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.btn-wsp {
    display: inline-block;
    margin-top: 20px;
    background: #25D366;
    color: #000;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.05rem;
    box-shadow: 0 10px 25px rgba(37,211,102,0.35);
    transition: 0.25s ease;
}

.btn-wsp:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37,211,102,0.5);
}


/* FOOTER */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(245, 245, 245, 0.78);
    text-align: center;
}

.site-footer__mark {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 198, 255, 0.45);
    border-radius: 50%;
    color: #00c6ff;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(0, 198, 255, 0.12);
}

.contacto-glass .site-footer p {
    margin-bottom: 0;
}

.site-footer__credit {
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(245, 245, 245, 0.82);
}

.site-footer__credit strong {
    color: #cfd8ff;
    font-weight: 800;
}


@media (min-width: 769px) {
    .panel-servicios {
        min-height: 100%;
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .servicios-title {
        font-size: 2.45rem;
        margin-bottom: 8px;
    }

    .servicios-subtitle {
        font-size: 1.02rem;
        margin-bottom: 26px;
    }

    .servicios-grid-pro {
        gap: 14px;
    }

    .servicio-pro {
        padding: 18px 16px;
    }

    .servicio-icono {
        font-size: 1.95rem;
        margin-bottom: 8px;
    }

    .servicio-pro h2 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .servicio-pro p {
        font-size: 0.82rem;
        line-height: 1.44;
    }

    .servicio-ver-mas {
        min-height: 40px;
        min-width: 142px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .laboratorio-panel {
        padding-top: 28px;
        padding-bottom: 28px;
        overflow-y: hidden;
    }

    .lab-header h1 {
        font-size: 2.15rem;
        margin-bottom: 8px;
    }

    .lab-subtitle {
        font-size: 0.98rem;
        line-height: 1.48;
        margin-bottom: 14px;
    }

    .lab-tab {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .lab-views-wrapper {
        margin-top: 14px;
    }

    .lab-view {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .lab-glass {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .lab-glass h2 {
        font-size: 1.34rem;
        line-height: 1.18;
        margin-bottom: 8px;
    }

    .lab-glass p {
        font-size: 0.9rem;
        line-height: 1.42;
    }

    .lab-proof {
        gap: 10px;
        margin-top: 10px;
    }

    .lab-proof-card,
    .lab-proof-card img {
        min-height: 82px;
    }

    .lab-proof-card figcaption {
        bottom: 8px;
        font-size: 0.76rem;
    }

    .tienda-panel {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .tienda-subtitle {
        margin-bottom: 10px;
    }

    .tienda-menu {
        margin-bottom: 10px;
    }

    .productos-grid {
        gap: 10px;
    }

    .producto {
        padding: 10px;
        gap: 6px;
    }

    .carousel {
        height: 230px;
    }

    .producto h3 {
        font-size: 0.95rem;
        margin-top: 2px;
    }

    .producto p {
        font-size: 0.84rem;
    }

    .btn-comprar {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .panel-contacto {
        padding-top: 18px;
        padding-bottom: 18px;
        overflow-y: hidden;
    }

    .panel-contacto .contacto-glass {
        padding: 14px 28px;
    }

    .panel-contacto .contacto-glass h1 {
        font-size: 1.82rem;
        margin-bottom: 4px;
    }

    .panel-contacto .contacto-glass > p {
        font-size: 0.88rem;
        line-height: 1.28;
        margin-bottom: 6px;
    }

    .panel-contacto .contacto-form {
        gap: 5px;
    }

    .panel-contacto .form-group {
        gap: 2px;
    }

    .panel-contacto .contacto-form label {
        font-size: 0.82rem;
    }

    .panel-contacto .contacto-form input,
    .panel-contacto .contacto-form textarea {
        padding-top: 6px;
        padding-bottom: 6px;
        font-size: 0.86rem;
    }

    .panel-contacto .contacto-form textarea {
        height: 58px;
    }

    .panel-contacto .btn-enviar {
        padding-top: 8px;
        padding-bottom: 8px;
        margin-top: 4px;
    }

    .panel-contacto .contacto-extra {
        margin-top: 8px;
    }

    .panel-contacto .contacto-extra p {
        font-size: 0.82rem;
        line-height: 1.2;
        margin-bottom: 3px;
    }

    .panel-contacto .btn-wsp {
        margin-top: 6px;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 0.9rem;
    }

    .panel-contacto .site-footer {
        margin-top: 7px;
        padding-top: 6px;
        gap: 6px;
    }

    .panel-contacto .site-footer__mark {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .panel-contacto .site-footer__credit {
        font-size: 0.76rem;
        line-height: 1.2;
    }
}

/* Efecto de brillo en Ignacio Soluciones */
.efecto-brillo {
    background: linear-gradient(90deg, #00c6ff, #0072ff, #00c6ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brillo 4s linear infinite;
}

@keyframes brillo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Logo principal Ignacio Soluciones */
.logo-ignacio {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0,198,255,0.25));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-ignacio:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 18px rgba(0,198,255,0.45));
}

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

@media (max-width: 900px) {
    .panel-servicios {
        padding: 80px 6vw;
    }
}

@media (max-width: 1180px) {
    .servicios-grid-pro {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 22px;
    }

    .servicio-pro {
        flex: 0 1 calc(33.333% - 22px);
        width: calc(33.333% - 22px);
        max-width: 330px;
    }
}

@media (max-width: 900px) {
    .servicio-pro {
        flex: 0 1 calc(50% - 22px);
        width: calc(50% - 22px);
        max-width: 330px;
    }
}

@media (max-width: 600px) {
    .servicios-grid-pro {
        justify-content: center;
    }

    .servicio-pro {
        flex: 0 1 min(100%, 330px);
        width: min(100%, 330px);
        max-width: 330px;
    }
}

/* MÓVIL: menú hamburguesa + scroll vertical real */
@media (max-width: 768px) {

    body {
        overflow: auto; /* ya no bloqueamos scroll global */
    }

    .menu-inner {
        padding: 0 10px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .menu-links {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(5,6,10,0.98);
        flex-direction: column;
        padding: 10px 12px 14px;
        gap: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        display: none;
    }

    .menu-links button {
        width: 100%;
        justify-content: center;
    }

    .menu.open .menu-links {
        display: flex;
    }

    /* Slider deja de ser fijo y horizontal */
    .slider {
        position: relative;
        top: 56px;
        width: 100vw;
        height: auto;
        flex-direction: column;
        transform: none !important; /* el JS no manda en móvil */
    }

    .panel {
        width: 100vw;
        min-height: calc(100vh - 56px);
        padding: 80px 6vw 40px;
        overflow: visible;
    }

    .panel-inicio {
        align-items: flex-start;
        padding-top: 90px;
    }

    .panel-servicios {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .laboratorio-panel {
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .panel-contacto {
        align-items: flex-start;
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .hero-main {
        font-size: 2.2rem;
    }

    .contacto-glass {
        padding: 30px;
    }

    .site-footer {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
        margin-top: 28px;
        padding-top: 20px;
    }

    .site-footer__mark {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .site-footer__credit {
        max-width: 280px;
        font-size: 0.82rem;
    }
}


/* REDES SOCIALES FLOTANTES
   Iconos propios de Ignacio Soluciones: sobrios, sin marco externo y sobre fondo transparente. */
.social-float-stack {
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-float {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    text-decoration: none;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42));
    transition: transform 0.22s ease, filter 0.22s ease, opacity 0.22s ease;
}

.social-float img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.social-float:hover {
    transform: translateX(-3px) scale(1.07);
    filter: drop-shadow(0 14px 24px rgba(0, 198, 255, 0.28));
}

.social-float:active {
    transform: translateX(0) scale(0.97);
}

@media (max-width: 768px) {
    .social-float-stack {
        right: 16px;
        bottom: 16px;
        gap: 8px;
    }

    .social-float {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 420px) {
    .social-float-stack {
        right: 12px;
        bottom: 12px;
        gap: 7px;
    }

    .social-float {
        width: 46px;
        height: 46px;
    }
}

/* MODAL DE IMAGEN CREADO POR SCRIPT */
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
    padding: 22px;
}

.image-modal img {
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    object-fit: contain;
    cursor: default;
}

.image-modal__close,
.image-modal__btn {
    position: absolute;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-modal__close:hover,
.image-modal__btn:hover {
    background: rgba(0, 114, 255, 0.86);
    transform: scale(1.04);
}

.image-modal__close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 2rem;
    line-height: 1;
}

.image-modal__btn {
    top: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.7rem;
}

.image-modal__btn--prev {
    left: 18px;
}

.image-modal__btn--next {
    right: 18px;
}

.image-modal__count {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 800;
    font-size: 0.86rem;
}

@media (max-width: 600px) {
    .image-modal {
        padding: 12px;
    }

    .image-modal__btn {
        width: 40px;
        height: 40px;
        font-size: 1.35rem;
    }

    .image-modal__btn--prev {
        left: 10px;
    }

    .image-modal__btn--next {
        right: 10px;
    }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #00c6ff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Mantiene el desplazamiento principal de la web sin afectar la estructura. */
    .slider,
    .lab-views {
        transition-property: transform !important;
        transition-duration: 1.05s !important;
        transition-timing-function: ease-in-out !important;
    }

    html {
        scroll-behavior: smooth !important;
    }
}

/* SEO/PWA/FORM HARDENING
   Campos técnicos ocultos para honeypot anti-spam. */
.anti-spam-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    display: none;
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: #cfd8ff;
}

.form-status:not(:empty) {
    display: block;
}

.form-status.is-error {
    color: #ffb4b4;
}

.form-status.is-ok {
    color: #8fffc1;
}


@media (max-width: 1100px) {
    .lab-proof {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 12px;
    }

    .lab-proof-card {
        flex: 0 1 calc(33.333% - 12px);
        width: calc(33.333% - 12px);
        max-width: 300px;
    }
}

@media (max-width: 700px) {
    .lab-proof {
        gap: 12px;
        margin-top: 16px;
    }

    .lab-proof-card {
        flex: 0 1 calc(50% - 12px);
        width: calc(50% - 12px);
        max-width: 240px;
    }

    .lab-proof-card,
    .lab-proof-card img {
        min-height: 130px;
    }
}

@media (max-width: 430px) {
    .lab-proof {
        justify-content: center;
    }

    .lab-proof-card {
        flex: 0 1 min(100%, 280px);
        width: min(100%, 280px);
        max-width: 280px;
    }
}


/* AJUSTE TABLET: permitir scroll interno en paneles altos */
@media (min-width: 769px) and (max-width: 1180px) {
    .panel-servicios,
    .laboratorio-panel,
    .tienda-panel,
    .panel-contacto {
        overflow-y: auto;
        overflow-x: hidden;
        height: 100%;
        max-height: calc(100vh - 56px);
        -webkit-overflow-scrolling: touch;
    }

    .panel-servicios {
        justify-content: flex-start;
        min-height: 100%;
        padding-top: 90px;
        padding-bottom: 70px;
    }

    .laboratorio-panel {
        min-height: 100%;
        padding-top: 80px;
        padding-bottom: 70px;
    }

    .tienda-panel {
        padding-top: 80px;
        padding-bottom: 70px;
    }
}

/* Fondo inicio integral - ajuste móvil */
@media (max-width: 768px) {
    .panel-inicio {
        background-image:
            linear-gradient(180deg, rgba(3, 6, 12, 0.94) 0%, rgba(3, 6, 12, 0.82) 55%, rgba(3, 6, 12, 0.92) 100%),
            url("img/inicio-bg-laboratorio-integral.jpg");
        background-position: center center;
    }
}

/* BLOQUE 3 — SELECTOR MULTILENGUAJE */
.lang-switcher {
    position: fixed;
    top: 66px;
    right: 24px;
    z-index: 9100;
    font-family: inherit;
}

.lang-current {
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(5, 6, 10, .92);
    color: #f5f5f5;
    padding: 8px 12px;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,.32);
    backdrop-filter: blur(10px);
}

.lang-current:hover {
    border-color: #00c6ff;
    color: #00c6ff;
}

.lang-options {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 154px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(5, 6, 10, .96);
    box-shadow: 0 18px 42px rgba(0,0,0,.45);
    backdrop-filter: blur(12px);
}

.lang-options button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #f5f5f5;
    padding: 9px 10px;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

.lang-options button:hover,
.lang-options button.activo {
    background: #00c6ff;
    color: #05060a;
}

@media (max-width: 768px) {
    .lang-switcher {
        top: 62px;
        right: 14px;
    }
    .lang-current {
        padding: 7px 10px;
        font-size: .85rem;
    }
    .lang-options {
        min-width: 142px;
    }
}

@media (max-width: 420px) {
    .lang-switcher {
        right: 10px;
        top: 60px;
    }
}
