:root {
            --bg: #f8fafc;
            --surface: #ffffff;
            --border: #e2e8f0;
            --primary: #2563eb;
            --primary-light: #eff6ff;
            --text-main: #0f172a;
            --text-dim: #64748b;
            --success: #16a34a;
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05);
        }

        * { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
        body {
            background-color: var(--bg);
            color: var(--text-main);
            font-family: 'Plus Jakarta Sans', sans-serif;
            margin: 0;
        }

        .navbar {
            padding: 16px 20px;
            background: rgba(255, 255, 255, 0.9);
            border-bottom: 1px solid var(--border);
            backdrop-filter: blur(12px);
            position: sticky; top: 0; z-index: 100;
        }
        .nav-content {
            max-width: 1200px; margin: 0 auto;
            display: flex; justify-content: space-between; align-items: center;
        }
        .logo {
            display: flex; align-items: center; gap: 10px;
            font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px;
        }

        /* Hero */
        .hero {
            text-align: center;
            padding: 70px 20px 40px;
            max-width: 850px;
            margin: 0 auto;
        }
        .badge-hero {
            background: var(--primary-light);
            border: 1px solid #bfdbfe;
            color: var(--primary);
            padding: 6px 16px; border-radius: 50px;
            font-size: 13px; font-weight: 700; display: inline-block; margin-bottom: 16px;
        }
        .hero h1 {
            font-size: clamp(32px, 5vw, 48px);
            font-weight: 800; line-height: 1.15;
            letter-spacing: -1px; margin: 0 0 16px;
        }
        .hero p {
            color: var(--text-dim); font-size: 18px; line-height: 1.6; margin: 0 0 30px;
        }

        /* Buscador */
        .search-box {
            max-width: 500px; margin: 0 auto 50px; position: relative;
        }
        .search-input {
            width: 100%; padding: 16px 20px 16px 48px;
            border-radius: 12px; border: 1px solid var(--border);
            font-size: 16px; outline: none; background: var(--surface);
            box-shadow: var(--shadow-sm); transition: 0.2s;
        }
        .search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
        .search-icon { position: absolute; left: 16px; top: 18px; stroke: var(--text-dim); }

        /* Grid por Categorías */
        .catalog-container { max-width: 1200px; margin: 0 auto 80px; padding: 0 20px; }
        .category-title {
            font-size: 22px; font-weight: 800; margin: 40px 0 20px;
            display: flex; align-items: center; gap: 10px;
        }
        
        .careers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 24px;
        }

        .career-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            text-decoration: none; color: inherit;
            transition: all 0.2s ease;
            display: flex; flex-direction: column; justify-content: space-between;
        }
        .career-card:hover {
            transform: translateY(-4px);
            border-color: var(--primary);
            box-shadow: var(--shadow-md);
        }

        /* Contenedor de la Imagen / Placeholder */
        .career-img-wrapper {
            width: 100%;
            height: 160px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-bottom: 1px solid var(--border);
            position: relative;
            overflow: hidden;
        }
        .career-img-wrapper img {
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        .career-card:hover .career-img-wrapper img {
            transform: scale(1.05);
        }
        .placeholder-icon {
            opacity: 0.3;
            color: var(--text-dim);
        }

        .career-content {
            padding: 20px;
            display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between;
        }
        
        .career-badge {
            font-size: 11px; font-weight: 700; color: var(--primary);
            background: var(--primary-light); padding: 4px 8px; border-radius: 6px; width: fit-content;
        }
        .career-card h3 { font-size: 18px; font-weight: 700; margin: 12px 0 6px; }
        .career-card p { font-size: 13px; color: var(--text-dim); margin: 0 0 16px; line-height: 1.4; }
        .career-link {
            font-size: 13px; font-weight: 700; color: var(--primary);
            display: flex; align-items: center; gap: 6px; margin-top: auto;
        }

        /* Banner de Confianza */
        .trust-banner {
            background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
            padding: 40px 20px; text-align: center;
        }
        .stats-grid {
            max-width: 1000px; margin: 0 auto;
            display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
        }
        .stat-item h4 { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; color: var(--primary); margin: 0; }
        .stat-item p { font-size: 13px; color: var(--text-dim); margin: 4px 0 0; }

        footer { padding: 40px 20px; text-align: center; color: var(--text-dim); font-size: 13px; background: #f1f5f9; }
        /* ==========================================
   AJUSTES PARA MÓVILES (Agregado al final)
   ========================================== */

/* 1. Corrección del Buscador en Móvil */
.search-box {
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 0 10px;
}

.search-input {
    font-size: 16px !important; /* Previene el zoom automático molesto en iPhone */
    padding: 14px 16px 14px 44px;
    -webkit-appearance: none;
}

.search-icon {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* 2. Adaptación de la Cuadrícula y Texto */
@media (max-width: 768px) {
    .hero {
        padding: 40px 16px 20px;
    }

    .hero h1 {
        font-size: 28px; /* Evita que el título se desborde */
        letter-spacing: -0.5px;
    }

    .hero p {
        font-size: 15px;
    }

    .catalog-container {
        padding: 0 16px;
    }

    /* Hace que las tarjetas ocupen el 100% del ancho en pantalla chica */
    .careers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .career-card {
        margin-bottom: 8px;
    }
}