/* --- HOME V2 ESTILOS --- */

/* 1. HERO HÍBRIDO */
.hero-split {
    position: relative;
    background-color: #0d1b2a;
    /* Color de fondo mientras carga */
    color: white;
    padding: 140px 20px 160px;
    /* Aumenté un poco el padding para mejor visualización del video */
    text-align: center;
    margin-top: 60px;
    /* Header spacing */
    overflow: hidden;
    /* Importante para que el video no se salga */
}

/* Estilos del Video */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    /* Centrado perfecto */
    object-fit: cover;
    /* Asegura que cubra todo sin deformarse */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradiente para que el texto sea legible sobre el video */
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.7) 0%, rgba(13, 27, 42, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Texto encima del overlay */
    max-width: 900px;
    margin: 0 auto;
}

/* ... (El resto de estilos badge, h1, etc. se mantienen igual) ... */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #4fc3f7;
    backdrop-filter: blur(5px);
    /* Efecto vidrio bonito */
}

.hero-split h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-highlight {
    color: #4fc3f7;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.trust-bar-hero {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.95rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

/* 2. CROSSROADS SECTION */
.crossroads-section {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    /* Efecto solapado sobre el hero */
    margin-bottom: 60px;
}

.crossroads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cross-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    min-height: 280px;
    transition: transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cross-card:hover {
    transform: translateY(-10px);
}

.cc-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cc-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.cc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.cross-card:hover .cc-image img {
    transform: scale(1.1);
}

/* Estilos Específicos Tienda vs Lab */
.shop-mode h3 {
    color: #0d47a1;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.lab-mode h3 {
    color: #1565c0;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.btn-cross {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
}

.btn-shop {
    background: #0d47a1;
    color: white;
}

.btn-shop:hover {
    background: #002171;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-lab {
    background: #1565c0;
    color: white;
}

.btn-lab-outline {
    border: 2px solid #1565c0;
    color: #1565c0;
}

.btn-lab:hover {
    background: #0d47a1;
}

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

/* 3. PRODUCT GRID (Simplified from Shop) */
.home-products-section {
    padding: 60px 0;
    background: #fff;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-image-wrapper {
    height: 200px;
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
}

.stock-badge.in-stock {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-info {
    padding: 15px;
}

.product-brand {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.product-ref {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 1rem;
    margin: 0 0 10px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.product-info h3 a {
    color: #333;
    text-decoration: none;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    color: #0d47a1;
    font-size: 1.1rem;
}

.btn-add-mini {
    background: #f0f4f8;
    color: #0d47a1;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    padding: 3px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-add-mini:hover {
    background: #0d47a1;
    color: white;
}

/* 4. SERVICES GRID */
.home-services-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.services-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.svc-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.svc-card:hover {
    transform: translateY(-5px);
    border-color: #0d47a1;
}

.svc-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.svc-card h4 {
    margin: 0 0 10px;
    color: #0d47a1;
}

.svc-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.center-btn-wrapper {
    text-align: center;
}

.section-header-container {
    max-width: 80%;
}

/* --- TRUST BAR (ICONOS DE CONFIANZA) --- */
.trust-bar-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    /* Espacio entre elementos */
    margin-top: 40px;
    flex-wrap: wrap;
    /* Para que bajen en móvil */
}

.tb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Espacio entre icono y texto */
    font-size: 0.95rem;
    color: #cbd5e1;
    /* Color gris claro por defecto */
    font-weight: 500;
}

.tb-item svg {
    stroke: #4fc3f7;
    /* Color Cyan de los iconos */
    min-width: 24px;
}

/* --- ESTILO DESTACADO (ENVÍO GRATIS) --- */
.tb-highlight {
    background: rgba(79, 195, 247, 0.15);
    /* Fondo Cyan muy transparente */
    border: 1px solid #4fc3f7;
    /* Borde Cyan brillante */
    padding: 8px 20px;
    border-radius: 50px;
    color: #fff;
    /* Texto blanco brillante */
    font-weight: 700;
    /* Texto más grueso */
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.2);
    /* Resplandor suave */
    transform: scale(1.05);
    /* Un poquito más grande que los demás */
}

/* Responsive */
@media (max-width: 768px) {
    .trust-bar-hero {
        flex-direction: column;
        gap: 15px;
    }

    /* En móvil que todos tengan el mismo tamaño para alinear */
    .tb-highlight {
        transform: scale(1);
        width: calc(100% - 50px);
        justify-content: center;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .crossroads-grid {
        grid-template-columns: 1fr;
    }

    .services-home-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .cc-image {
        display: none;
    }

    /* Opcional: ocultar imagen en tarjeta móvil para ahorrar espacio */
}