/* --- ESTILOS PÁGINA LABORATORIO --- */

.lab-page {
    font-family: 'Inter', sans-serif;
    color: #333;
    margin-top: 80px;
    /* Espacio para header fijo */
}

/* 1. HERO SECTION */
.lab-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    background: #f4f8fb;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(13, 71, 161, 0.15);
}

.badge-iso {
    display: inline-block;
    background: #e3f2fd;
    color: #0d47a1;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.lab-hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.text-highlight {
    color: #0d47a1;
}

.lab-hero p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-primary-lab {
    background: #0d47a1;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary-lab:hover {
    background: #002171;
}

.btn-outline-lab {
    border: 2px solid #0d47a1;
    color: #0d47a1;
    padding: 13px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-lab:hover {
    background: #e3f2fd;
}

/* 2. INTRO */
.lab-intro {
    padding: 80px 5%;
    background: white;
    text-align: center;
}

.intro-container {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text h2 {
    font-size: 2.2rem;
    color: #0d47a1;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

.intro-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.badge-item .icon {
    font-size: 2.5rem;
    background: #f0f7ff;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.badge-item span {
    font-weight: 600;
    color: #333;
}

/* 3. SERVICIOS */
.lab-services {
    padding: 80px 5%;
    background: #fff;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #0d47a1;
}

.sc-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0d47a1;
}

.sc-desc {
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.sc-list {
    list-style: none;
    padding: 0;
    color: #555;
}

.sc-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.sc-list li::before {
    content: "•";
    color: #0d47a1;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.services-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-text-arrow {
    color: #0d47a1;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
}

.btn-text-arrow:hover {
    text-decoration: underline;
}

/* 4. FAQ */
.lab-faq {
    padding: 80px 5%;
    background: #f9fafb;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-container h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.faq-item h4 {
    font-size: 1.2rem;
    color: #0d47a1;
    margin-bottom: 10px;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* 5. CTA FINAL */
.lab-cta-final {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-white-lg {
    background: white;
    color: #0d47a1;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-white-lg:hover {
    transform: scale(1.05);
}

/* --- NUEVO: ESTILOS CARRUSEL --- */
.lab-gallery {
    padding: 60px 0;
    background: #fff;
    overflow: hidden;
    /* Ocultar scrollbar feo fuera del contenedor */
}

.gallery-container h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 5%;
    /* Padding lateral para que no se pegue al borde */
    padding-bottom: 20px;
    /* Espacio para scrollbar nativo si aparece */
    scrollbar-width: thin;
    /* Firefox: scrollbar delgado */
}

/* Scrollbar styling para Webkit (Chrome/Safari) */
.gallery-track::-webkit-scrollbar {
    height: 8px;
}

.gallery-track::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.gallery-track::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.gallery-item {
    min-width: 280px;
    /* Ancho mínimo en móvil */
    flex: 0 0 calc(25% - 15px);
    /* Escritorio: 4 items (25% cada uno menos el gap) */
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
    /* Zoom suave al pasar mouse */
}

/* RESPONSIVE CARRUSEL */
@media (max-width: 1024px) {
    .gallery-item {
        flex: 0 0 40%;
        /* Tablets: ven 2.5 fotos */
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 85%;
        /* Móvil: ven 1 foto casi completa + borde de la siguiente */
    }
}


/* --- CAMBIOS EN CTA FINAL (BOTONES DOBLES) --- */
.cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    /* Para que bajen en móvil muy pequeño */
}

/* Botón Blanco Sólido (Existente) */
.btn-white-lg {
    background: white;
    color: #0d47a1;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.btn-white-lg:hover {
    transform: translateY(-3px);
}

/* Nuevo Botón Borde Blanco */
.btn-white-outline-lg {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 13px 33px;
    /* Ajuste por el borde */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-white-outline-lg:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .lab-hero {
        flex-direction: column;
        padding: 60px 20px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .lab-hero h1 {
        font-size: 2.2rem;
    }
}