﻿/* --- REGLA DE ORO PARA EVITAR DESBORDAMIENTOS --- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Variables CSS para la paleta de colores (Estandarizado a var(--primary-color)) */
:root {
    --primary-color: #9D162E;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f4f7f6;
    --footer-bg: #222222;
}

/* Estilos Globales */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Barra de Navegación (Fondo blanco por defecto) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(255, 255, 255, 0.95); /* Fondo blanco casi sólido */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Pequeña sombra inicial */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
}

    .navbar .navbar-brand {
        height: 72px;
        width: 207px;
    }

.navbar-nav {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

    .nav-link:hover {
        color: var(--primary-color);
    }

/* ==========================================
   ESTILOS DEL HERO (COMPLETAMENTE CENTRADO)
========================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* MEJORA: Centra el bloque horizontalmente */
    padding: 0 5%;
    color: white;
    overflow: hidden; /* Importante para que no se salgan las imágenes */
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Al fondo */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Efecto de desvanecimiento suave */
}

    .carousel-slide.active {
        opacity: 1; /* Solo la activa se ve */
    }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Capa oscura para leer texto */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* Texto hasta arriba */
    text-align: center; /* MEJORA: Alinea los textos al centro */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Obliga al divisor, subtítulo y botón a centrarse en su propio eje */
}

.hero-title {
    color: #ffffff;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 1.5rem auto; /* El "auto" a los lados lo centra */
}

.hero-subtitle {
    color: #f0f0f0;
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 1rem;
    max-width: 600px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-description {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* MEDIA QUERY IMPORTANTE: Para que no se rompa en celulares */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem; /* Fuente más chica en celular */
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .map-section {
        flex-direction: column;
    }
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
}

    .btn-primary:hover {
        background-color: #7a1123; /* Un rojo un poco más oscuro al pasar el mouse */
        transform: translateY(-2px);
    }

/* Sección del Mapa */
.map-section {
    display: flex;
    padding: 5rem 5%;
    background-color: var(--bg-light);
    align-items: center;
    gap: 4rem;
}

.map-container {
    flex: 3;
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.plants-list-container {
    flex: 2;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.plants-list {
    list-style: none;
    padding: 0;
}

    .plants-list li {
        margin-bottom: 1rem;
        font-size: 1.2rem;
        position: relative;
        padding-left: 2rem;
        font-weight: 500;
    }

        .plants-list li::before {
            content: '\f3c5'; /* Código del icono de pin de Font Awesome */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: var(--primary-color);
            position: absolute;
            left: 0;
            top: 2px;
        }

/* --- ESTILOS INTERACTIVOS DEL MAPA --- */
.plant-item {
    cursor: pointer;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    list-style: none; /* Asegura que no tenga puntos de lista */
}

    .plant-item:hover {
        background-color: #f0f0f0;
        color: var(--primary-color);
        padding-left: 25px; /* Pequeño desplazamiento a la derecha */
    }

    /* Estado activo (planta seleccionada) */
    .plant-item.active {
        background-color: #ffebee; /* Fondo rojo muy suave */
        color: var(--primary-color);
        font-weight: 800;
        border-left: 4px solid var(--primary-color); /* Línea indicadora a la izquierda */
    }

/* ==========================================
   ESTILOS DEL FOOTER (BANNER CON DISEÑO CLARO)
========================================== */
.footer {
    position: relative;
    background-image: url('/images/footer-tachis.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3rem 5% 2rem 5%;
    margin-top: 3rem;
    color: #222222;
    text-shadow: none;
}

/* Solo para asegurar que el contenedor interno se alinee bien */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    z-index: 2; /* Mantiene el texto por encima del fondo */
}

.footer-brand {
    height: 50px;
    width: 215px;
}

/* Eslogan ajustado a gris para contraste en fondo blanco */
.footer-tagline {
    color: #555555;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: left;
}

/* Iconos de redes sociales ajustados a color corporativo */
.footer-icons {
    text-align: left; /* Alineados a la izquierda */
}

    .footer-icons a {
        color: var(--primary-color);
        font-size: 1.4rem;
        margin-right: 20px;
        margin-left: 0;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .footer-icons a:hover {
            color: #7a1123;
            transform: translateY(-3px);
        }

/* Sección Derecha (Certificaciones) */
.footer-certifications-wrapper {
    text-align: right;
}

/* Label ajustado a gris para contraste */
.cert-label {
    display: block;
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-certifications {
    display: flex;
    gap: 12px;
    justify-content: flex-end; /* Alinea los badges a la derecha */
    flex-wrap: wrap;
}

/* Estilo de los "Badges" o etiquetas */
.cert-badge {
    background-color: #f8f9fa;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.badge-gold {
    background-color: #ffc107; /* Dorado para ESR */
    border-color: #e0a800;
}

/* Copyright */
.footer-copy {
    border-top: 1px solid #ccc; /* Línea divisoria suave */
    padding-top: 25px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* --- Ajuste para Celulares --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* Apila verticalmente */
        align-items: center;
        text-align: center;
    }

    .footer-section-left,
    .footer-logo-text,
    .footer-tagline,
    .footer-icons,
    .footer-certifications-wrapper {
        text-align: center; /* Centra todo en celular */
        width: 100%;
    }

        .footer-icons a {
            margin: 0 15px; /* Distribuye los iconos parejo en celular */
        }

    .footer-certifications {
        justify-content: center;
    }
}

/* SECCIÓN DE BIENVENIDA */
.welcome-section {
    padding: 5rem 5%;
    background-color: #ffffff;
    text-align: center;
}

.section-title-dark {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

    /* Pequeña línea roja decorativa bajo el título */
    .section-title-dark::after {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background-color: var(--primary-color);
        margin: 10px auto 0;
    }

.welcome-text {
    font-size: 1.1rem;
    color: #555;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

.values-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

    .value-item i {
        font-size: 2.5rem;
    }

    .value-item span {
        font-weight: bold;
        text-transform: uppercase;
        color: #333;
    }

/* SECCIÓN DE PRODUCTOS */
.products-section {
    padding: 5rem 5%;
    background-color: #f8f9fa; /* Un gris muy clarito para diferenciar del fondo blanco */
    text-align: center;
}

.section-subtitle {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

    .product-item:hover {
        transform: translateY(-10px); /* La tarjeta flota al pasar el mouse */
    }

.product-image-wrapper {
    height: 200px;
    overflow: hidden;
}

    .product-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
        transition: transform 0.5s ease;
    }

.product-item:hover .product-image-wrapper img {
    transform: scale(1.1); /* Efecto zoom en la imagen */
}

.product-item h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
}

.product-item p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

/* El selector de idioma */
.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 3rem !important;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    padding-left: 1.5rem;
}

.lang-option {
    text-decoration: none;
    color: #666666;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
}

    .lang-option:hover {
        color: #333333;
        background-color: rgba(0, 0, 0, 0.05); /* Sombreado sutil */
        text-shadow: none;
    }

    .lang-option.active {
        color: var(--primary-color);
        font-weight: 800;
    }

.lang-separator {
    color: rgba(0, 0, 0, 0.3); /* Separador oscuro */
    font-size: 0.8rem;
}

/* Ajuste para móviles (para que no se vea raro en el celular) */
@media (max-width: 768px) {
    .language-switch {
        margin-left: 2rem !important;
        border-left: none;
        padding-left: 0;
        margin-top: 1rem;
    }
}

/* SECCIÓN DE VACANTES */
.careers-section {
    padding: 5rem 5%;
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

.careers-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.careers-text {
    flex: 1; /* Ocupa la mitad del espacio */
}

.careers-image {
    flex: 1; /* Ocupa la otra mitad */
}

    .careers-image img {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

    .benefits-list li {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #555;
    }

        .benefits-list li i {
            color: var(--primary-color);
        }

/* Ajuste para celular */
@media (max-width: 768px) {
    .careers-content {
        flex-direction: column;
    }
}

/* --- SECCIÓN DE CONTACTO --- */
.contact-section {
    padding: 5rem 5%;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1000px;
    margin: 3rem auto 0;
    justify-content: center;
}

/* Info (Izquierda) */
.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

    .contact-info h3 {
        color: var(--primary-color);
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

    .contact-info p {
        color: #666;
        margin-bottom: 2rem;
    }

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

    .info-item i {
        color: var(--primary-color);
        font-size: 1.2rem;
        margin-top: 4px;
    }

    .info-item strong {
        display: block;
        color: #333;
        margin-bottom: 2px;
    }

    .info-item p {
        margin: 0;
        font-size: 0.95rem;
    }

/* Formulario (Derecha) */
.contact-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.2rem;
}

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-family: inherit;
        font-size: 0.95rem;
        transition: border-color 0.3s;
        box-sizing: border-box;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Botón Volver Arriba */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}

    #scrollTopBtn:hover {
        background-color: #7a1123;
        transform: translateY(-5px);
    }

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
}

    .read-more:hover {
        text-decoration: underline;
    }

/* --- ANIMACIONES AL HACER SCROLL (REVEAL) --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* --- ESTILOS PÁGINA LOGIN --- */
.login-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f7f6;
    padding: 2rem 5%;
}

.login-card {
    max-width: 400px;
    width: 100%;
    animation: fadeIn 0.8s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.forgot-password {
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
}

    .forgot-password:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.95rem;
    color: #666;
}

.register-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    margin-left: 5px;
}

    .register-link:hover {
        text-decoration: underline;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .login-card {
        max-width: 450px;
    }
}

/* --- ESTILOS SECCIÓN VACANTES --- */
.vacantes-header-section {
    padding: 5rem 5% 2rem;
    background-color: #f4f7f6;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.search-bar-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    gap: 1rem;
    max-width: 900px;
    margin: 2rem auto 0;
    align-items: center;
}

.search-input, .search-select {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

.search-btn {
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.vacantes-list-section {
    padding: 4rem 5%;
    background-color: #ffffff;
    min-height: 60vh;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.job-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .job-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border-color: #e0e0e0;
    }

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.job-type {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.job-location {
    color: #777;
}

.job-title {
    margin: 0 0 1rem;
    color: #222;
    font-size: 1.3rem;
    font-weight: 700;
}

.job-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.job-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: #f5f5f5;
    color: #666;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.job-btn {
    width: 100%;
    text-align: center;
    border: none;
    margin-top: auto;
}

@media (max-width: 768px) {
    .search-bar-container {
        flex-direction: column;
    }

    .search-input, .search-select, .search-btn {
        width: 100%;
    }
}

/* --- ESTILOS PERFIL DE USUARIO --- */
.profile-section {
    padding: 120px 5% 4rem;
    background-color: #f4f7f6;
    min-height: 85vh;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background-color: #eee;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-name {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
}

.profile-role {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.profile-info-list {
    text-align: left;
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: #666;
    font-size: 0.9rem;
}

    .info-row i {
        color: var(--primary-color);
        width: 20px;
        text-align: center;
    }

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 1.5rem 0;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

    .btn-outline-danger:hover {
        background: #dc3545;
        color: white;
    }

.content-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    margin-bottom: 2rem;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

    .card-header-flex h3, .content-card h3 {
        margin: 0;
        color: #333;
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.last-update {
    font-size: 0.8rem;
    color: #888;
}

.cv-upload-area {
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 1.5rem;
}

.current-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.file-icon {
    font-size: 2rem;
    color: #dc3545;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.filename {
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
}

.filesize {
    font-size: 0.8rem;
    color: #888;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

.upload-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .upload-actions p {
        margin: 0;
        font-size: 0.9rem;
        color: #666;
    }

.upload-btn {
    cursor: pointer;
    margin: 0;
}

.application-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid #eee;
}

    .application-item:last-child {
        border-bottom: none;
    }

.app-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.app-location, .app-date {
    display: block;
    font-size: 0.85rem;
    color: #777;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-review {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.status-interview {
    background-color: #fff3cd;
    color: #856404;
}

.status-closed {
    background-color: #f8f9fa;
    color: #6c757d;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .application-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .app-status {
        align-self: flex-end;
    }
}

/* --- ESTILOS DASHBOARD RH --- */
.admin-section {
    padding: 120px 2% 3rem;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #eee;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.stat-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.admin-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    overflow: hidden;
}

.panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .panel-header h3 {
        margin: 0;
        font-size: 1.2rem;
        color: #333;
    }

.search-box {
    position: relative;
}

    .search-box input {
        padding: 8px 10px 8px 35px;
        border: 1px solid #ddd;
        border-radius: 20px;
        font-size: 0.9rem;
        width: 250px;
    }

    .search-box i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
    }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th {
        background: #f9f9f9;
        padding: 1rem;
        text-align: left;
        font-size: 0.85rem;
        color: #666;
        text-transform: uppercase;
        font-weight: 600;
        border-bottom: 2px solid #eee;
    }

    .admin-table td {
        padding: 1rem;
        border-bottom: 1px solid #eee;
        color: #333;
        vertical-align: middle;
    }

    .admin-table tr:hover {
        background-color: #fcfcfc;
    }

.candidate-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-avatar {
    width: 40px;
    height: 40px;
    background: #ffebee;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.candidate-info small {
    display: block;
    color: #888;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
    transition: transform 0.2s;
    margin-right: 5px;
}

    .btn-icon:hover {
        transform: scale(1.2);
    }

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.text-primary {
    color: #007bff;
}

.pdf-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

    .pdf-link:hover {
        text-decoration: underline;
    }

/* --- ESTILOS FORMULARIO VACANTE --- */
.btn-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

    .btn-icon-circle:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    grid-column: span 2;
}

.admin-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.3s;
    background-color: #fcfcfc;
}

    .admin-input:focus {
        outline: none;
        border-color: var(--primary-color);
        background-color: white;
    }

.form-actions-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-secondary {
    background: white;
    border: 1px solid #ccc;
    color: #666;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

    .btn-secondary:hover {
        background: #f0f0f0;
        color: #333;
    }

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}

/* --- ESTILOS DETALLE VACANTE --- */
.job-detail-section {
    padding: 120px 5% 4rem;
    background-color: #f9f9f9;
    min-height: 100vh;
}

.breadcrumbs {
    margin-bottom: 2rem;
}

    .breadcrumbs a {
        color: #666;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

        .breadcrumbs a:hover {
            color: var(--primary-color);
        }

.job-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.job-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.job-main-title {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.job-meta-row {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

    .job-meta-row i {
        color: var(--primary-color);
        margin-right: 5px;
    }

.job-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #222;
    font-size: 1.3rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.job-body p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
    padding: 0;
}

    .check-list li {
        position: relative;
        padding-left: 25px;
        margin-bottom: 10px;
        color: #555;
        line-height: 1.6;
    }

        .check-list li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            color: var(--primary-color);
        }

.apply-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.apply-header {
    background: #f4f4f4;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

    .apply-header h3 {
        margin: 0;
        font-size: 1.1rem;
        color: #333;
    }

.apply-body {
    padding: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

    .summary-item strong {
        color: #333;
    }

    .summary-item span {
        color: #666;
        text-align: right;
    }

.divider-small {
    border: 0;
    border-top: 1px solid #eee;
    margin: 1.5rem 0;
}

.full-width-btn {
    width: 100%;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apply-note {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin-top: 1rem;
}

.share-card {
    margin-top: 2rem;
    text-align: center;
}

.share-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

    .share-icons a {
        color: #ccc;
        font-size: 1.8rem;
        transition: color 0.3s;
    }

        .share-icons a:hover {
            color: var(--primary-color);
        }

@media (max-width: 768px) {
    .job-detail-grid {
        grid-template-columns: 1fr;
    }

    .job-content {
        padding: 1.5rem;
    }

    .apply-card {
        position: static;
    }
}

/* --- ESTILOS BANDEJA DE ENTRADA --- */
.inbox-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 70vh;
    overflow: hidden;
}

.inbox-list {
    border-right: 1px solid #eee;
    overflow-y: auto;
    background: #fdfdfd;
}

.message-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

    .message-item:hover {
        background: #f0f0f0;
    }

    .message-item.active {
        background: #e3f2fd;
        border-left: 4px solid #007bff;
    }

    .message-item.unread {
        font-weight: bold;
        background: #fff;
    }

.msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.msg-date {
    font-size: 0.75rem;
    color: #888;
}

.msg-subject {
    margin: 0;
    color: #333;
}

.msg-preview {
    margin: 5px 0 0;
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-reader {
    padding: 2rem;
    overflow-y: auto;
}

.reader-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.reader-meta {
    display: flex;
    flex-direction: column;
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

.reader-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
}

.reader-actions {
    display: flex;
    gap: 1rem;
}

/* --- ESTILOS PESTAÑAS ADMIN --- */
.tabs-nav {
    display: flex;
    gap: 5px;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}

.tab-btn {
    background: #e0e0e0;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: background 0.3s;
}

    .tab-btn.active {
        background: white;
        color: var(--primary-color);
        border: 1px solid #eee;
        border-bottom: 1px solid white;
    }

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

    .tab-content.active {
        display: block;
    }

.carousel-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.carousel-admin-item {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

    .carousel-admin-item img {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }

.c-admin-info {
    padding: 10px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .inbox-container {
        grid-template-columns: 1fr;
    }

    .inbox-list {
        height: 30vh;
        border-bottom: 1px solid #eee;
    }

    .inbox-reader {
        height: auto;
    }
}

/* --- MENÚ MÓVIL (HAMBURGUESA) --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333333;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 1rem 0;
        text-align: center;
    }

        .navbar-nav.active {
            display: flex;
            animation: slideDown 0.3s ease;
        }

    .nav-item {
        margin: 1rem 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ESTILOS DE MODALES (VENTANAS EMERGENTES) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .modal-overlay.open {
        display: flex;
        opacity: 1;
    }

.modal-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

    .close-btn:hover {
        color: #333;
    }

/* Formulario dentro del modal */
.form-group {
    margin-bottom: 1rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #555;
    }

    .form-group input, .form-group textarea, .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

/* ==========================================
   MINI PESTAÑAS PARA MULTILENGUAJE (ADMIN)
========================================== */
.mini-tab-nav {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #eee;
    margin-bottom: 15px;
}

.mini-tab {
    background: none;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: color 0.3s ease;
}

    .mini-tab:hover {
        color: #333;
    }

    .mini-tab.active {
        color: var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
        margin-bottom: -2px;
    }

.mini-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

    .mini-content.active {
        display: block;
    }

/* ==========================================
   UTILIDADES PARA BOTONES Y ESTADOS (PANEL RH)
========================================== */
.btn-outline-action {
    background: transparent;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .btn-outline-action.success {
        border: 1px solid #28a745;
        color: #28a745;
    }

        .btn-outline-action.success:hover {
            background: #28a745;
            color: white;
        }

    .btn-outline-action.danger {
        border: 1px solid #dc3545;
        color: #dc3545;
    }

        .btn-outline-action.danger:hover {
            background: #dc3545;
            color: white;
        }

/* Estilos para Misión y Visión - Tachi-S México */
.corporate-statement {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.statement-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #222;
}

.statement-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 3.5rem; /* Espacio mayor para separar Misión de Visión */
    color: #555;
    font-weight: 300;
}

    /* Ajuste final para el último párrafo */
    .statement-text:last-child {
        margin-bottom: 0;
    }

/* --- IMAGEN DE HISTORIA (INDEX) --- */
.history-container {
    width: 100%;
    max-width: 1000px; /* Alineado con el diseño de corporate-statement */
    margin: 3rem auto 4rem auto; /* Espaciado superior e inferior para respirar */
    text-align: center;
}

.history-img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Evita que la imagen se estire o deforme */
    /* border-radius: 8px; (Descomenta esto si quieres que las esquinas sean redondeadas) */
}

/* --- TARJETA DE PROVEEDORES EN CONTACTO --- */
.supplier-contact-card {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: #fdfdfd;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
}

    .supplier-contact-card h4 {
        margin-top: 0;
        margin-bottom: 0.6rem;
        color: #333;
        font-size: 1.15rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .supplier-contact-card h4 i {
            color: var(--primary-color);
        }

    .supplier-contact-card p {
        color: #666;
        font-size: 0.88rem;
        line-height: 1.4;
        margin-bottom: 1.2rem;
    }

.btn-supplier {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-supplier:hover {
        background-color: var(--primary-color);
        color: #fff;
        transform: translateY(-2px);
    }

/* ==========================================================================
   MÓDULO DE LABORATORIO ENTERPRISE LAYOUT
   ========================================================================== */
.lab-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.lab-section {
    padding: 5rem 0;
}

/* HERO INTERNO */
.lab-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.85)), url('/images/lab-hero-background.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 6rem 0;
}

.lab-badge {
    background-color: var(--primary-color, #9D162E);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 1rem;
}

.lab-title {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.lab-subtitle {
    font-size: 1.15rem;
    max-width: 800px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
}

.lab-acreditacion-box {
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--primary-color, #9D162E);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    max-width: 900px;
    backdrop-filter: blur(5px);
}

.acred-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-color, #9D162E);
}

.acred-text-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
}

/* SERVO SLED INTERFAZ SPLIT */
.sled-section {
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.section-tag {
    color: var(--primary-color, #9D162E);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.tag-divider {
    width: 50px;
    height: 3px;
    background-color: var(--primary-color, #9D162E);
    margin-bottom: 1.5rem;
}

.split-layout h2 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    color: #222;
}

.sled-p {
    color: #555;
    line-height: 1.6;
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
}

.image-frame {
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

    .image-frame img {
        width: 100%;
        display: block;
    }

.frame-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    font-weight: bold;
}

/* CARDS DE MAQUINARIA GRID */
.center-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

    .center-header h2 {
        font-size: 2rem;
        font-weight: 900;
        color: #222;
        margin: 0;
    }

.title-bar {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color, #9D162E);
    margin: 1rem auto 0 auto;
}

.machinery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
}

.machine-card {
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .machine-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    }

.card-img-wrapper {
    height: 230px;
    overflow: hidden;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .card-img-wrapper img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        padding: 15px;
    }

.card-info {
    padding: 1.5rem;
}

    .card-info h3 {
        margin: 0 0 0.8rem 0;
        font-size: 1.05rem;
        font-weight: 900;
        color: #222;
        letter-spacing: 0.3px;
    }

    .card-info p {
        margin: 0;
        font-size: 0.88rem;
        color: #666;
        line-height: 1.5;
    }

/* CONTACT CTA TERMINAL */
.lab-cta {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 4.5rem 2rem;
}

    .lab-cta h2 {
        font-size: 1.8rem;
        font-weight: 900;
        margin: 0 0 0.5rem 0;
    }

    .lab-cta p {
        font-size: 1rem;
        color: #aaa;
        max-width: 700px;
        margin: 0 auto 2rem auto;
    }

.btn-lab-cta {
    display: inline-block;
    background-color: var(--primary-color, #9D162E);
    color: #fff !important;
    text-decoration: none;
    padding: 12px 32px;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

    .btn-lab-cta:hover {
        background-color: #bc1b37;
    }

/* RESPONSIVIDAD MAESTRA */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .lab-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .machinery-grid {
        grid-template-columns: 1fr;
    }

    .lab-acreditacion-box {
        flex-direction: column;
        text-align: center;
    }
}