/*
Theme Name: Lebiom
Theme URI: https://tusitio.com
Author: Tu Nombre
Author URI: https://tusitio.com
Description: Tema personalizado Premium para LEBIOM.
Version: 1.0
Text Domain: lebiom
*/

:root {
    --primary: #34c759; /* Verde premium tipo Apple/Salud */
    --primary-dark: #248a3d;
    --bg-main: #ffffff;
    --bg-light: #f5f5f7; /* Gris claro característico de Apple */
    --text-dark: #1d1d1f;
    --text-gray: #86868b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    overflow-x: hidden;
    line-height: 1.6;
}

body.locked { overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; margin-bottom: 40px; font-size: 2.5rem; letter-spacing: -1px;}

/* ================= SPLASH SCREEN ================= */
#splash-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.splash-content { text-align: center; }
.splash-logo { font-size: 3rem; color: var(--primary); letter-spacing: 2px; margin-bottom: 10px; }
.splash-subtitle { color: var(--text-gray); margin-bottom: 30px; font-size: 1.1rem; }
.language-buttons button {
    padding: 15px 30px; margin: 0 10px; font-size: 1rem; cursor: pointer;
    background: white; border: 1px solid #d2d2d7; border-radius: 30px;
    transition: all 0.3s ease; color: var(--text-dark); font-weight: 500;
}
.language-buttons button:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.05); }

/* ================= NAVBAR ================= */
#navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0;
    transition: all 0.4s ease; background: transparent;
}
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.8); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05); padding: 15px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* ================= BOTONES ================= */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block; padding: 14px 30px; border-radius: 30px; text-decoration: none;
    font-weight: 600; transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(52, 199, 89, 0.2); }
.btn-secondary { background: var(--text-dark); color: white; }
.btn-secondary:hover { background: #000; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--text-dark); color: var(--text-dark); margin: 0 10px; }
.btn-outline:hover { background: var(--text-dark); color: white; }

/* ================= HERO SECTION (VIDEO FULL SCREEN Y RESPONSIVO) ================= */
.hero-video-section {
    position: relative;
    width: 100%;
    /* Altura dinámica: 100% de la pantalla, pero con un tope para que no se vea gigante en PC */
    height: 100vh;
    max-height: 800px; 
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

/* El video: Manera moderna y limpia de centrarlo sin que se deforme */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Funciona como un "recorte inteligente" para llenar el fondo */
    object-position: center center; /* Mantiene el centro del video siempre visible */
    z-index: -2;
}

/* Capa oscura (opacidad 40%) para que se lea el texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: -1;
}

/* El contenedor del texto */
.hero-content-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    margin-top: 60px; /* Separación del menú */
}

/* Letras de Computadora */
.hero-content-inner h1 {
    font-size: 4rem; /* Redujimos un poco el tamaño original */
    color: #ffffff;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-content-inner h1 span {
    color: var(--primary);
}

.hero-content-inner p {
    font-size: 1.25rem;
    color: #f5f5f7;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.5;
}

/* Botones sobre el video */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ================= ADAPTACIÓN PARA TELÉFONOS (RESPONSIVO) ================= */
@media (max-width: 768px) {
    .hero-video-section {
        height: 85vh; /* Un poco más corto en celular para que el usuario sepa que hay más contenido abajo */
        max-height: none;
    }

    .hero-content-inner h1 {
        font-size: 2.2rem; /* Letra mucho más adecuada para pantallas pequeñas */
        margin-bottom: 15px;
    }

    .hero-content-inner p {
        font-size: 1rem; /* Texto más fácil de leer en celular */
        margin-bottom: 30px;
    }

    /* Los botones en celular se apilan uno encima del otro */
    .hero-buttons {
        flex-direction: column;
        padding: 0 20px;
        gap: 10px;
    }

    .hero-buttons .btn-primary, 
    .hero-buttons .btn-secondary {
        width: 100%;
        margin-left: 0 !important; /* Quitamos el margen que tenían en PC */
    }
}

/* ================= SPLIT LAYOUT (Oportunidad) ================= */
.opportunity-section { padding: 100px 0; }
.split-layout { display: flex; align-items: center; gap: 60px; }
.split-text { flex: 1; }
.split-text h2 { font-size: 3rem; letter-spacing: -1px; margin-bottom: 20px; }
.split-text p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 20px; }
.split-image { flex: 1; }
.split-image img { width: 100%; border-radius: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* ================= PRODUCTOS (ROLLOVER EFECTO) ================= */
.products-section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; letter-spacing: -1px; }
.section-header p { font-size: 1.2rem; color: var(--text-gray); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 60px; }

/* Tarjeta estilo Apple */
.product-card { background: white; border-radius: 20px; overflow: hidden; padding: 20px; text-align: center; transition: box-shadow 0.4s ease; cursor: pointer; }
.product-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.06); }

/* Contenedor de imagen para el Rollover */
.product-img-wrapper { position: relative; width: 100%; height: 250px; overflow: hidden; border-radius: 15px; margin-bottom: 20px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; }
.product-img-wrapper img { max-width: 80%; max-height: 80%; object-fit: contain; transition: transform 0.6s ease; }

/* El botón que aparece al pasar el ratón (Rollover) */
.rollover-action { position: absolute; bottom: -60px; left: 0; width: 100%; display: flex; justify-content: center; padding-bottom: 20px; transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-cart { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border: none; padding: 10px 20px; border-radius: 20px; font-weight: 600; color: var(--text-dark); box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; transition: background 0.3s; }
.btn-cart:hover { background: var(--primary); color: white; }

/* Acciones Hover */
.product-card:hover .product-img-wrapper img { transform: scale(1.05) translateY(-10px); }
.product-card:hover .rollover-action { bottom: 0; }

.product-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; }
.product-info .price { color: var(--text-gray); font-size: 1.1rem; }

.catalog-buttons { text-align: center; padding: 40px 0; background: var(--bg-light); border-radius: 30px; margin-top: 40px;}
.catalog-buttons h3 { margin-bottom: 20px; font-size: 1.5rem; }

/* ================= BLOG ================= */
.blog-section { padding: 100px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.blog-card { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.03); transition: transform 0.3s; }
.blog-card:hover { transform: translateY(-5px); }
.blog-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.blog-card p { color: var(--text-gray); margin-bottom: 20px; font-size: 0.95rem; }
.blog-card a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ================= FOOTER ================= */
footer { background: var(--text-dark); color: white; padding: 80px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-logo { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
footer h4 { margin-bottom: 20px; color: #fff; }
footer p, footer a { color: #a1a1a6; text-decoration: none; font-size: 0.9rem; margin-bottom: 10px; display: block; }
footer a:hover { color: white; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #a1a1a6; font-size: 0.8rem; }

/* ================= ANIMACIONES DE SCROLL ================= */
.fade-up-section { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.fade-up-section.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .split-layout { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
}


/* ================= EFECTO VIDEO DE FONDO (Hero) ================= */
.video-background-section {
    position: relative;
    overflow: hidden;
    /* Ajustamos el padding para centrar mejor el texto sobre el video */
    padding: 200px 20px 150px; 
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2; /* Lo manda hasta atrás */
    object-fit: cover; /* Asegura que cubra toda la pantalla sin deformarse */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Filtro negro al 50% de opacidad */
    z-index: -1;
}

/* Forzamos que el texto sobre el video sea blanco para que contraste */
.video-background-section .hero-content {
    position: relative;
    z-index: 1;
}

.video-background-section h1 {
    color: #ffffff !important;
}

.video-background-section p {
    color: #e5e5ea !important;
}


/* ================= VIDEO DE FONDO GLOBAL ================= */
.global-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2; /* Lo manda al fondo absoluto */
}

/* Capa semi-transparente sobre el video para que el texto sea legible */
.global-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.4); /* Blanco al 40% */
    z-index: -1;
}

/* ================= EFECTO CRISTAL (Glassmorphism) ================= */
/* Hacemos el fondo del cuerpo transparente para ver el video */
body {
    background-color: transparent !important;
}

/* Las secciones grises ahora son cristalinas */
.bg-light {
    background-color: rgba(245, 245, 247, 0.6) !important;
    backdrop-filter: blur(15px); /* Efecto cristal desenfocado */
    -webkit-backdrop-filter: blur(15px);
}

/* Las tarjetas de productos y blog ahora son de cristal blanco */
.product-card, .blog-card, .catalog-buttons {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5); /* Borde sutil brillante */
}

/* Ajustes para el Footer */
footer {
    background: rgba(29, 29, 31, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* El Hero (Nosotros) necesita un ajuste si el video es claro */
.hero h1, .hero p {
    text-shadow: 0 4px 15px rgba(255,255,255,0.8); /* Ayuda a que el texto resalte sobre el video */
}