/* 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 0.6s 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: radial-gradient(circle at top, #1b2735 0, #090a0f 55%, #05060a 100%);
    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;
}

/* 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: 12px;
    color: #fff;
    line-height: 1.22;
}

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

/* 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-2.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;
}

.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, 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 {
    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;
}

/* 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;
}

/* Botón comprar */
.btn-comprar {
    align-self: flex-end;
    margin-top: 4px;
    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 {
    color: #cfd8ff;
    text-decoration: none;
}

.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-contacto {
        padding-top: 38px;
        padding-bottom: 38px;
        overflow-y: hidden;
    }

    .panel-contacto .contacto-glass {
        padding-top: 32px;
        padding-bottom: 28px;
    }

    .panel-contacto .contacto-glass > p {
        margin-bottom: 22px;
    }

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

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

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

    .panel-contacto .btn-wsp {
        margin-top: 14px;
    }
}

/* 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.86rem;
    }
}


/* BOTÓN FLOTANTE WHATSAPP
   Usa el archivo local logo-whatsapp.png para que el logo pueda reemplazarse sin tocar código. */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9000;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

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

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 34px rgba(37, 211, 102, 0.48);
    filter: brightness(1.04);
}

.whatsapp-float:active {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 768px) {
    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 420px) {
    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 50px;
        height: 50px;
    }
}


.instagram-float {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 8999;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffd86a 0%, #f77737 28%, #e1306c 58%, #833ab4 100%);
    box-shadow: 0 12px 28px rgba(225, 48, 108, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

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

.instagram-float:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 34px rgba(225, 48, 108, 0.45);
    filter: brightness(1.04);
}

.instagram-float:active {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 768px) {
    .instagram-float {
        right: 18px;
        bottom: 82px;
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 420px) {
    .instagram-float {
        right: 14px;
        bottom: 74px;
        width: 50px;
        height: 50px;
    }
}

/* 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.85);
    cursor: zoom-out;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

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;
    }
}

/* 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 {
        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;
    }
}
