/* =========================================================
   TALENTA REGNI HR - LANDING BASE CSS
   ---------------------------------------------------------
   USO:
   - Este archivo controla:
     1. Reset/base
     2. Header global
     3. Hero slider de la landing
     4. Sección de servicios
     5. Footer global
     6. Botón flotante WhatsApp
     7. Responsive general

   IMPORTANTE:
   - NO poner aquí estilos exclusivos de empleos.php
   - Los estilos de la bolsa deben vivir en empleos.css
   - Header y footer son compartidos entre páginas
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0f172a;
    --primary-soft: #1e293b;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;

    --bg-body: #f8fafc;
    --card-bg: #ffffff;

    --text-main: #334155;
    --text-soft: #64748b;

    --line: #e2e8f0;
    --line-soft: #f1f5f9;

    --footer-text: #94a3b8;

    --whatsapp: #25D366;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.10);
}

/* =========================================================
   1. RESET / BASE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    top: 0 !important;
    position: static !important;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================================
   2. HEADER GLOBAL
   ---------------------------------------------------------
   Compartido por:
   - index.php
   - empleos.php
   - futuras páginas públicas
   ========================================================= */

.navbar {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.95rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 5000;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.65);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-soft);
    transition: 0.3s;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--accent);
}

/* link activo del menú */
.nav-links a.active-link {
    color: var(--accent);
    font-weight: 700;
}

.btn-portal {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--line);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-portal:hover {
    background: #e2e8f0;
    border-color: var(--accent);
    color: var(--primary) !important;
}

/* =========================================================
   3. HERO SLIDER - SOLO LANDING
   ---------------------------------------------------------
   Si luego quieres cambiar solo el slider, busca este bloque.
   ========================================================= */

.hero-slider {
    position: relative;
    height: 650px;
    width: 100%;
    overflow: hidden;
    background-color: #cbd5e1;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.overlay {
    background: linear-gradient(rgba(15, 23, 42, 0.40), rgba(15, 23, 42, 0.70));
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.30);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.2rem;
    color: #f8fafc;
    font-weight: 500;
}

.cta-btn {
    padding: 15px 34px;
    background: var(--accent);
    color: var(--primary);
    font-weight: 800;
    border-radius: 999px;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.45);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.cta-btn:hover {
    transform: scale(1.04);
    background: #fff;
    color: var(--accent);
}

/* =========================================================
   4. SECCIONES GENERALES LANDING
   ---------------------------------------------------------
   Si luego agregas nuevas secciones a la landing, reutiliza:
   - .section-padding
   - .section-title
   ========================================================= */

.section-padding {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-soft);
    font-weight: 500;
    font-size: 1.05rem;
}

/* =========================================================
   5. TARJETAS DE SERVICIOS - LANDING
   ---------------------------------------------------------
   Ajustadas para verse más compactas y horizontales.
   ========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
    margin-top: 40px;
    align-items: stretch;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line-soft);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.card-img {
    height: 190px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}

.card-content {
    padding: 1.5rem 1.4rem 1.7rem;
    text-align: center;
}

.card h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
}

.card p {
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 0.93rem;
}

/* =========================================================
   6. FOOTER GLOBAL
   ---------------------------------------------------------
   Compartido por:
   - index.php
   - empleos.php
   - futuras páginas públicas
   ========================================================= */

.site-footer {
    background: var(--primary);
    color: white;
    padding: 1.4rem 5%;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-title {
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 1rem;
    line-height: 1.2;
}

.footer-sub {
    color: var(--footer-text);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.25s;
}

.footer-social a:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.30);
    transform: translateY(-2px);
}

.footer-copy {
    text-align: right;
    color: var(--footer-text);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* =========================================================
   7. BOTÓN FLOTANTE WHATSAPP
   ---------------------------------------------------------
   Compartido globalmente.
   ========================================================= */

.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 6000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.20);
    transition: 0.3s;
}

.wa {
    background: var(--whatsapp);
}

.float-btn:hover {
    transform: scale(1.1);
}

/* =========================================================
   8. ALERTAS BÁSICAS REUTILIZABLES
   ---------------------------------------------------------
   Se usan también en páginas públicas si hace falta.
   ========================================================= */

.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* =========================================================
   9. RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-copy {
        text-align: left;
        white-space: normal;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        padding: 1rem 1.2rem;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero-slider {
        height: 560px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .floating-container {
        bottom: 20px;
        right: 20px;
    }

    .float-btn {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
}

@media (max-width: 520px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero-slider {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .cta-btn {
        font-size: 0.95rem;
        padding: 13px 18px;
    }

    .section-padding {
        padding: 60px 5%;
    }
}