/* =================================================================== */
/* === WORKLIVE - LANDING PAGE CSS (Light Mode con Hero Emocional) === */
/* =================================================================== */

/* --- 1. Variables Globales y Reseteo --- */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --color-background: #f5f5f7; 
    --color-surface: #ffffff;    
    --color-text-dark: #1d1d1f;    
    --color-text-secondary: #515154; 
    --color-link: #0066cc;
    --color-link-hover: #0077ed;
    --color-border: #d2d2d7;
    --border-radius: 12px;
    --header-height: 52px;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--color-surface);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 2. Encabezado (Header) --- */
.landing-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--header-height);
}
.logo { 
    font-weight: 600; 
    font-size: 1.2rem; 
    color: var(--color-text-dark); 
}
.main-nav { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}
.main-nav a { 
    text-decoration: none; 
    color: var(--color-link); 
    font-size: 0.9rem; 
    font-weight: 500; 
    padding: 0.5rem 1rem; 
    border-radius: 99px; 
    transition: background-color 0.2s, color 0.2s; 
}
.main-nav a:hover { 
    background-color: #f0f8ff; 
}
.main-nav .button-primary { 
    background-color: var(--color-link); 
    color: white; 
}
.main-nav .button-primary:hover { 
    background-color: var(--color-link-hover); 
}

/* --- 3. Secciones y Tipografía --- */
.content-section {
    padding: 6rem 2rem;
    max-width: 980px;
    margin: 0 auto;
}
.text-center { 
    text-align: center; 
}
.large-text { 
    font-size: 1.75rem; 
    line-height: 1.5; 
    color: var(--color-text-dark); 
    max-width: 800px; 
    margin: 1.5rem auto; 
    font-weight: 500; 
}

/* --- 4. Hero Section --- */
/* --- 4. Hero Section --- */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    color: white;
    /* background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2071'); */
    background-image: url('/img/wl8.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto parallax en escritorio */
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: white;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}
.hero-content p {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.button-cta {
    display: inline-block;
    background-color: var(--color-link);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 2.5rem;
    border-radius: 99px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.button-cta:hover { 
    transform: scale(1.05); 
    background-color: var(--color-link-hover); 
}
.login-link { 
    display: block; 
    margin-top: 1.5rem; 
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}
.login-link:hover { color: white; }

/* --- 5. Features Grid --- */
.features-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}
.feature-item { 
    text-align: center;
    padding: 2.5rem; 
    background-color: var(--color-background);
    border-radius: 20px; 
}
.feature-item img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}
.feature-item h3 { 
    margin-top: 0; 
    font-size: 1.3rem; 
}
.feature-item p { 
    color: var(--color-text-secondary); 
    font-size: 1rem; 
}

/* --- 6. Dark Section (para el equipo) --- */
.dark-section-content { 
    background-color: var(--color-text-dark); 
    color: var(--color-text-light);
    border-radius: 20px; /* Mantenemos las esquinas redondeadas */
    padding: 4rem 2rem; /* El padding se aplica aquí dentro */
}

.dark-section-content h2 { 
    color: white; /* ¡Forzamos el color blanco para el h2! */
    border-color: #444; /* Un borde inferior más sutil para el tema oscuro */
}

.dark-section-content p { 
    color: #ccc; 
}

/* css/landing.css */

/* --- 7. Footer (Estilo Apple) --- */
.landing-footer {
    padding: 2rem 2rem 1.5rem 2rem;
    background-color: var(--color-background); /* Fondo gris claro */
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}
.footer-content {
    max-width: 980px;
    margin: 0 auto;
}
.footer-copyright {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}
.footer-links {
    display: flex;
    flex-wrap: wrap; /* Para que se adapte en móvil */
    justify-content: flex-start;
    gap: 0.5rem 1.5rem; /* Espacio vertical y horizontal */
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}
.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    border-right: 1px solid var(--color-border);
    padding-right: 1.5rem;
}
.footer-links a:last-child {
    border-right: none; /* El último enlace no tiene separador */
    padding-right: 0;
}
.footer-links a:hover {
    color: var(--color-link);
    text-decoration: underline;
}
.footer-language-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.language-switcher-footer a {
    color: var(--color-text-secondary);
    padding: 0 0.25rem; /* Aumentamos un poco el padding para más espacio */
    text-decoration: underline; /* Subrayado para indicar que son enlaces */
}

/* ===== NUEVA REGLA PARA LOS SEPARADORES ===== */
.footer-separator {
    color: var(--color-border); /* Usamos el mismo color gris claro de los bordes */
    margin: 0 0.25rem; /* Un pequeño margen para que no se pegue a los enlaces */
}
/* ========================================= */

/* Responsive para el footer */
@media (max-width: 768px) {
    .footer-links {
        justify-content: center;
        text-align: center;
        gap: 0.5rem 1rem;
    }
    .footer-links a {
        border-right: 1px solid var(--color-border);
        padding-right: 1rem;
    }
    .footer-language-selector {
        flex-direction: column;
        align-items: center;
    }
}

/* --- 8. Animaciones --- */
.fade-in { animation: fadeIn 1s 0.2s ease-out forwards; opacity: 0; }
.fade-in-delay1 { animation: fadeIn 1s 0.5s ease-out forwards; opacity: 0; }
.fade-in-delay2 { animation: fadeIn 1s 0.8s ease-out forwards; opacity: 0; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* --- 9. Responsive para móvil --- */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-content { padding: 0 1rem; }
    .content-section { padding: 4rem 1.5rem; }
    .large-text { font-size: 1.25rem; }
    
    .hero-section {
        min-height: 70vh;
        height: auto;
        background-attachment: scroll; 
    }
    .hero-content h1 {
        font-size: 2.2rem; 
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    /* ===== INICIO DE LA NUEVA REGLA ===== */
    
    .dark-section-content {
        /* Reducimos el padding vertical para que se vea mejor en pantallas pequeñas */
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    /* ===== FIN DE LA NUEVA REGLA ===== */
}

/* === Estilos para el Botón 'Volver Arriba' === */
#back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    
    background-color: rgba(0, 86, 179, 0.85); /* Un color que combine con tu landing page */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);

    /* Oculto por defecto, con transición */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(10px);
}

#back-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top-btn:hover {
    background-color: rgba(0, 102, 204, 1);
}


/* css/landing.css */

.logo { 
    /* Esta regla ya no es necesaria, la controlaremos en el 'img' */
    /* font-weight: 600; font-size: 1.2rem; color: var(--color-text-dark); */
}

/* ===== NUEVAS REGLAS PARA EL LOGO Y LA IMAGEN ===== */

.logo a {
    display: inline-block; /* Importante para que el enlace se comporte bien */
    line-height: 0; /* Evita espacios extra debajo de la imagen */
}

.logo img {
    height: 36px; /* Altura fija para el logo. Ajústala según tus necesidades. */
    width: auto;  /* El ancho se ajusta automáticamente para mantener la proporción. */
    vertical-align: middle; /* Ayuda a una mejor alineación vertical. */
}

/* ================================================= */